/*************************************************************************** * gentoo_trouble_shoot.txt * ------------------- * info : gentoo 2007.0 for ibm lenovo R60 x86 * created : november 2007 * last_change : Friday, Feb 29, 2008 * email : y3dips@gmail.com * * $Id: gentoo_trouble_shoot.txt,v 0.01.3 2008/01/10 14:40:24 y3dips Exp $ * * ***************************************************************************/ Add sudoers to /etc/sudoers ================= y3dips ALL=(ALL) ALL ===== Edit make.conf for supporting parallel fetch ============== localhost media # edit /etc/make.conf dan tambahkan: FEATURES="parallel-fetch" GENTOO_MIRRORS="http://komo.vlsm.org/gentoo Salah satu kelebihan gentoo adalah melakukan paralel fetching pada proses installasi (portage/emerge) sehingga dapat melakukan emerge secara bersamaan terhadap beberapa aplikasi :) serta tambahkan mirror portage local Indonesia ========================== net configuration ============== --------- static ip address ------------ localhost ~ # cat /etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /etc/conf.d/net.example and save your configuration # in /etc/conf.d/net (this file :]!). config_eth0=("192.168.1.55 netmask 255.255.255.0 broadcast 192.168.1.255") routes_eth0=("default gw 192.168.1.1") gateways_eth0="192.168.1.1" dns_servers_eth0="192.168.1.1" localhost ~ # localhost ~ # /etc/init.d/net.eth0 restart ------ untuk dhcp client --------- localhost ~ # emerge net-misc/dhcpcd add di /etc/conf.d/net config_eth0=("dhcp") comment semua konfigurasi untuk static ip #/etc/init.d/net.eth0 restart ================================================================== untuk menginstall network manager dan nm-applet >> http://gentoo-wiki.com/NetworkManager#About_NetworkManager ========================== Grub modification agar windows dikenali (dual boot only) add di /boot/grub/menu.lst title=winblows rootnoverify (hd0,0) makeactive chainloader +1 ----- set user agar bisa melakukan administrasi dari panel user and groups, login menggunakan root --------- sound tinggal di unmute dan volume di perbesar maka langsung ok --------- install alsa ammar@localhost ~ $ sudo emerge media-sound/alsa-driver hal ini tidak perlu dilakukan apabila anda mengaktifkan sound dari kernel :) --------- download pidgin from source http://pidgin.im coz the default is gaim , for installing use sudo instead of changing to root (sudo -s) --------- Sound problem lspci -v | grep -i audio http://www.gentoo.org/doc/en/alsa-guide.xml ------------- cant install alsa cant find .config #compile kernel to create .config in /usr/src/linux/ ================ menyalakan service http://www.gentoo.org/doc/en/?catid=desktop rc-update add hald default ================ add hotplug emerge hotplug rc-update add hotplug default ======================== CoreDuo linux # /etc/init.d/alsasound start * Loading ALSA modules ... * Could not detect custom ALSA settings. Loading all detected alsa drivers. * Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly? * ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels ... * No mixer config in /var/lib/alsa/asound.state, you have to unmute your card! [ ok ] /var/lib/alsa/asound.state jalankan alsaconf restart /etc/init.d/alsasound restart --------------- install WIFI > madwifi http://www.aircrack-ng.org/doku.php?id=madwifi-ng&DokuWiki=51249811a01f93b1452c21d3adcbc9c1 --------------- Manual Mount ntfs ammar@localhost ~/$ sudo mount -o umask=000 -t ntfs /dev/sdb3 /tmp/sdb2 =---------------- IVMAN ---------- http://gentoo-wiki.com/HOWTO_ivman#Starting_ivman_as_root ====================== Kernel upgrade issues If your driver stops working after you have upgraded your kernel then you should reinstall fuse. Install module-rebuild, and run it every time you recompile your kernel. once: # emerge sys-kernel/module-rebuild every time after recompiling: # module-rebuild rebuild # update-modules ================================== automount cek lshal emerge -av dbus hal ivman add them to the default run level Code: for x in dbus hald ivman ; do rc-update add $x default ; done ===================== Access for non Root-Users(make ntfs partitions mountable for a normal user, unmountable for everyone else): Set the suid flag for the ntfs-3g binary and then re-emerge it: # echo sys-fs/ntfs3g suid>> /etc/portage/package.use # emerge sys-fs/ntfs3g -1 --------------------- Use ntfs-3g instead of ntfs in AutoMounting If you would like to always use ntfs-3g (especially with automounting in KDE) there are several ways to do this. Some of them might be obsolete now. [edit] Create pseudo mount.ntfs binary As root do: # ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs ================ #emerge app-laptop/configure-thinkpad #emerge app-laptop/thinkpad -========= clock -========= add at /etc/conf.d/clock CLOCK="local" ====================== PROBLEM 1. truecrypt not automatically loaded from kernel 2. battery (ACPI) =============== problem localhost ~ # genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon all /usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected /usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected eselect kernel list ls -Fla /usr/src/ equery list genkernel find /etc -iname '._cfg????_*' =============== update files on etc http://gentoo-wiki.com/HOWTO_etc-update #etc-update Error atfer etc-update, edit /etc/rc.conf ++ XSESSION="Gnome" edit /etc/conf.d/xdm ++ DISPLAYMANAGER="gdm" -------------------- truecrypt >>>>>>>>>> http://gentoo-wiki.com/HOWTO_Truecrypt # truecrypt /media/CARNAGE/carnage /media/true/ Enter password for '/media/CARNAGE/carnage': Kernel module not loaded load the module, adding it to # echo "truecrypt" >> /etc/modules.autoload.d/kernel-2.6 # modprobe truecrypt ===================== installing JRE/eric and else problems try this: Code: # echo "=sys-devel/gcc-3.3*" >> /etc/portage/package.mask # emerge virtual/libstdc++ "emerge virtual/libstdc++" should now pull in sys-libs/libstdc++-v3. -====================== installing VLC adding this to /etc/portage/package.use echo "media-video/vlc dvd ffmpeg mpeg mad wxwindows aac dts a52 ogg flac theora oggvorbis matroska freetype bidi xv svga gnutls stream vlm httpd cdda vcd cdio live" >> /etc/portage/package.use then #emerge vlc ================= madwifi athX > http://madwifi.org/wiki/UserDocs/Distro/Gentoo echo " ath_pci autocreate=ap" >> /etc/modules.autoload.d/kernel-2.6 =-================ installing skype ammar@localhost ~/pentest/exploits/framework-3.0 $ sudo emerge skype Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) net-im/skype-1.4.0.118 to / * skype-1.4.0.118.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking skype-1.4.0.118.tar.bz2 ;-) ... [ ok ] * Rebuild qt-4 with USE="accessibility dbus" or set USE=qt-static * * ERROR: net-im/skype-1.4.0.118 failed. * Call stack: * ebuild.sh, line 1717: Called dyn_setup * ebuild.sh, line 768: Called qa_call 'pkg_setup' * ebuild.sh, line 44: Called pkg_setup * skype-1.4.0.118.ebuild, line 56: Called die * The specific snippet of code: * die "USE=\"-qt-static\" only works with qt-4 built with USE=\"accessibility dbus\"." * The die message: * USE="-qt-static" only works with qt-4 built with USE="accessibility dbus". * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-im/skype-1.4.0.118/temp/build.log'. * * Messages for package net-im/skype-1.4.0.118: * Rebuild qt-4 with USE="accessibility dbus" or set USE=qt-static * * ERROR: net-im/skype-1.4.0.118 failed. * Call stack: * ebuild.sh, line 1717: Called dyn_setup * ebuild.sh, line 768: Called qa_call 'pkg_setup' * ebuild.sh, line 44: Called pkg_setup * skype-1.4.0.118.ebuild, line 56: Called die * The specific snippet of code: * die "USE=\"-qt-static\" only works with qt-4 built with USE=\"accessibility dbus\"." * The die message: * USE="-qt-static" only works with qt-4 built with USE="accessibility dbus". * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-im/skype-1.4.0.118/temp/build.log'. * ###### recompiling qt wih dbus ##########################3 localhost framework-3.0 # USE="accessibility dbus" emerge qt Calculating dependencies... done! >>> Verifying ebuild Manifests... ============ Found error after installing and running the apache =========== * Apache2 has detected a syntax error in your configuration files: /usr/sbin/apache2: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory do, revdep-rebuild -X --library libexpat.so.0 --- set only binding to 127.0.0.1 /etc/apache2/vhosts.d/00_default_vhost.conf add 127.0.0.1:80 ============ ACPID failed to start ============================== if you found this kind of error starting acpid localhost ~ # /etc/init.d/acpid restart * Caching service dependencies ... [ ok ] * Starting acpid ... acpid: can't open /proc/acpi/event: Device or resource busy [ !! ] what u need to do is to make sure it is running before hald, the simple way is adding dependency service at hald init script. localhost ~ # vi /etc/init.d/hald depend() { need dbus use logger acpid after coldplug dns nscd acpid #adding acpid } Or you could change the runlevel of acpid from default to boot (hald still with default runlevel), use rc-update show to see your runlevel #rc-update del acpid defaults #rc-update add acpid boot ============ WIFI AD-hoc / Madwifi ==================== ~ # wlanconfig ath0 destroy ~ # wlanconfig ath0 create wlandev wifi0 wlanmode adhoc ~ # iwconfig ath0 essid venom channel 2 // u can set ENC key for WEP or WPA ~ # ifconfig ath0 192.168.0.52 netmask 255.255.255.0 ~ # echo "1" > /proc/sys/net/ipv4/ip_forward Using Dnsmasq to create a dhcp server ~# emerge dnsmasq ~# vi /etc/dnsmasq.conf //Add this line to enable dhcp: dhcp-range=192.168.0.50,192.168.0.150,12h //Restrict dnsmasq to just the LAN interface interface=ath0 ~# rc-update add dnsmasq default ~# /etc/init.d/dnsmasq start =================== USING CPAN ============================= #emerge app-portage/g-cpan $sudo g-cpan -s Base32 $sudo g-cpan -i MIME:Base32 or using perl perl -MCPAN =================== Upgrading kernel ========================= emerge =gentoo-sources-2.6.23-r8 localhost pentest # eselect kernel list Available kernel symlink targets: [1] linux-2.6.19-gentoo-r5 * [2] linux-2.6.23-gentoo-r3 [3] linux-2.6.23-gentoo-r8 localhost pentest # eselect kernel set 3 #genkernel --bootloader=grub all #module-rebuild rebuild /********************************* EOF *****************************************