Main Menu
| Home |
| Linux Basics |
| Tutorials / HowTo´s |
| Video Tutorials |
| Gentoo Installation |
| FAQ´s |
| . |
| Contact Us |
| Search |
| . |
| Headache |
| Emigration |
Donate

| Gentoo Install |
|
|
|
| Written by painted | |
| Wednesday, 11 July 2007 | |
Installation BasissystemAktuelle Gentoo CD ins CD Laufwerk einlegen und den Computer neu Starten. Wer nicht weiss was die einzelnen befehle bedeuten RTFM ;) Die "#" steht für die Komandozeile!! ">" für Zeilen Innerhalb des Text .- browsers oder editors!! #passwd #mkreiserfs /dev/hda7 #swapon /dev/hda5 #mount /dev/hda7 /mnt/gentoo #date 043019392005 Downloading the Stage Tarball#cd /mnt/gentoo #links2 <a href="http://www.gentoo.org/main/en/mirrors.xml" title="http://www.gentoo.org/main/en/mirrors.xml">http://www.gentoo.org/main/en/mirrors.xml</a> mit den pfeiltasten einen server aussuchen und dann in verzeichnis
#md5sum -c stage1-x86-2005.0.tar.bz2.md5 #tar -xvjpf stage1-x86*.tar.bz2 Download and Install a Portage Snapshot#links2 <a href="http://www.gentoo.org/main/en/mirrors.xml" title="http://www.gentoo.org/main/en/mirrors.xml">http://www.gentoo.org/main/en/mirrors.xml</a> mit den pfeiltasten einen server aussuchen und dann in verzeichnis
#md5sum -c portage-20050428.tar.bz2.md5 #tar -xvjpf portage-20050428.tar.bz2 -C /mnt/gentoo/usr #nano -w /mnt/gentoo/etc/make.conf make.confInhalt der Datei "/etc/make.conf" ># These settings were set by the catalyst build script that automatically built this stage ># Please consult /etc/make.conf.example for a more detailed example >CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" >CHOST="i686-pc-linux-gnu" >CXXFLAGS="${CFLAGS}" >MAKEOPTS="-j2" >USE="-kde aalib crypt encode nls pam truetype xv X acpi alsa apm avi bzlib cdr cross crypt cscope \ dedicated divx4linux dvd encode esd ethereal firebird ftp gb gdbm gnome gnutls gpm gps gtk gtk2 \ icq ipv6 java libg++ libwww lirc mad mmap motif mozilla msn ncurses oggvorbis opengl oss pcmcia \ pdflib qt quicktime readline samba scanner snmp spell ssl tcpd trusted usb videos xml xml2 xmms zlib \ mmx sse" >GENTOO_MIRRORS="<a href="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" title="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/">ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/</a> \ <a href="http://ftp6.uni-erlangen.de/pub/mirrors/gentoo" title="http://ftp6.uni-erlangen.de/pub/mirrors/gentoo">http://ftp6.uni-erlangen.de/pub/mirrors/gentoo</a> \<a href="ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo" title="ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo">ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo</a> \ <a href="http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/" title="http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/">http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/</a>" >SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" normalerweise wird die zeile GENTOO_MIRRORS und SYNCmittels: Selecting Mirrors#mirrorselect -i -o >> /mnt/gentoo/etc/make.conf #mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf hinzugefügt. Copy DNS Info#cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf Mounting the proc Filesystem#mount -t proc none /mnt/gentoo/proc Entering the new Environment#chroot /mnt/gentoo /bin/bash #env-update #source /etc/profile Updating the Portage tree#emerge --sync Configuring the USE variable (make.conf)if you are unsure which useflags you can use try:
GLIBC Locales#echo "sys-libs/glibc userlocales" >> /etc/portage/package.use #nano /etc/locales.build >en_US/ISO-8859-1 >en_US.UTF-8/UTF-8 >de_DE/ISO-8859-1 >de_DE@euro/ISO-8859-15 Bootstrapping the System#cd /usr/portage #scripts/bootstrap.sh //Dauer: ca. 90min Building the System#emerge sync #emerge --emptytree system Timezone#ls /usr/share/zoneinfo #ln -sf /usr/share/zoneinfo/GMT /etc/localtime Choosing a Kernel#emerge gentoo-sources-2.6.11-r6 #rm /usr/src/linux #cd /usr/src #ln -s linux- linux #cd /usr/src/linux #make menuconfig Jetzt wird der Kernel gebaut: >Inhalt meiner kernel-2.6.8.1.conf <a href="http://data.darklevel.org/GentooInstall/config-2.6.8.1" title="http://data.darklevel.org/GentooInstall/config-2.6.8.1">Download</a> //ist schon etwas älter :) kernel-2.6.11-r6.conf <a href="http://data.darklevel.org/GentooInstall/config-2.6.11-r6" title="http://data.darklevel.org/GentooInstall/config-2.6.11-r6">Download</a> #make && make modules_install #cp arch/i386/boot/bzImage /boot/kernel-2.6.11-gentoo-r6 #cp System.map /boot/System.map-2.6.11-gentoo-r6 #cp .config /boot/config-2.6.11-gentoo-r6 Installing Extra Modules#emerge nvidia-kernel Configuring the Modules#find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko' #nano /etc/modules.autoload.d/kernel-2.6 >smbfs >rivafb > Creating /etc/fstab#nano /etc/fstab ># /etc/fstab: static file system information. ># $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $ ># ># noatime turns off atimes for increased performance (atimes normally aren't ># needed; notail increases performance of ReiserFS (at the expense of storage ># efficiency). It's safe to drop the noatime options if you want and to ># switch between notail and tail freely. >/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 >none /proc proc defaults 0 0 >none /dev/shm tmpfs defaults 0 0 >/dev/hda7 / reiserfs noauto,noatime 1 2 >/dev/hda5 none swap sw 0 0 >/dev/hda8 /mnt/change auto auto 0 0 >/dev/hda2 /mnt/ware auto auto,ro 0 0 >/dev/hda6 /mnt/auditor auto auto 0 0 Hostname, Domainname etc.#echo staatsfeind > /etc/hostname #echo xxx > /etc/dnsdomainname #rc-update add domainname default Configuring your Network#nano /etc/conf.d/net ># /etc/conf.d/net: ># $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $ ># Global config file for net.* rc-scripts ># This is basically the ifconfig argument without the ifconfig $iface ># >#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" >#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0" ># For DHCP set iface_eth? to "dhcp" ># For passing options to dhcpcd use dhcpcd_eth? ># >iface_eth0="dhcp" >#dhcpcd_eth0="..." ># For adding aliases to a interface ># >#alias_eth0="192.168.0.3 192.168.0.4" ># NB: The next is only used for aliases. ># ># To add a custom netmask/broadcast address to created aliases, ># uncomment and change accordingly. Leave commented to assign ># defaults for that interface. ># >#broadcast_eth0="192.168.0.255 192.168.0.255" >#netmask_eth0="255.255.255.0 255.255.255.0" ># For setting the default gateway ># >#gateway="eth0/192.168.0.1" #rc-update add net.eth0 default #nano /etc/hosts Get PCMCIA Working#USE="-X" emerge pcmcia-cs #rc-update add pcmcia default # System Information#passwd #echo "tts/0" >> /etc/securetty #nano /etc/rc.conf System Logger#emerge syslog-ng #rc-update add syslog-ng default Cron Daemon#emerge vixie-cron #rc-update add vixie-cron default File System Tools#emerge reiserfsprogs Installing a DHCP Client#emerge dhcpcd Bootloader GRUB#emerge grub #nano /boot/grub/grub.conf ># Boot automatically after 15 secs. >timeout 15 ># By default, boot the first entry. >default 0 ># Fallback to the second entry. >fallback 1 >splashimage=(hd0,6)/boot/grub/splash.xpm.gz >title Gentoo Linux 2.6.11-r6 > root (hd0,6) > kernel /boot/kernel-2.6.11-r6 root=/dev/hda7 >video=vesafb:ywrap,mtrr,1024x768-32@60 splash=silent, theme:newtheme > #initrd /initrd.img >title Debian GNU/Linux, Kernel-2.6.9-kanotix-8 > root (hd0,5) > kernel /boot/vmlinuz-2.6.9-kanotix-8 root=/dev/hda6 ro ramdisk_size=100000 init=/etc/init splash psmouse.proto=imps lang=de nodhcp noapm hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdf=scsi nowheelmouse nomce quiet vga=791 > initrd /boot/initrd.img-2.6-9-kanotix-8 > savedefault > boot ># For booting Windows NT or Windows95 >title Windows XP Prof. SP2 >rootnoverify (hd0,0) >makeactive >chainloader +1 ># For loading DOS if Windows NT is installed ># chainload /bootsect.dos ># For installing GRUB into the hard disk >title Install GRUB into the hard disk >root (hd0,0) >setup (hd0) ># Change the colors. >title Change the colors >color light-green/brown blink-red/blue #grub >>grub> root (hd0,6) >>grub> setup (hd0) >>grub> quit Rebooting the System#exit #cd #umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo #reboot hopefully the kernel is alright :) falls wie zb bei mir pcmcia nicht läuft kernel erneut mit #make menuconfig umbauen und dann mittels #make dep && make clean bzImage modules modules_install neu bauen ;) Software Installation#emerge splashutils #emerge vim Wireless LanInstallieren vom Orinoco Treiber patch#cd /usr/src #wget <a href="http://www.kismetwireless.net/code/orinoco-2.6.11-rfmon-dragorn-1.diff" title="http://www.kismetwireless.net/code/orinoco-2.6.11-rfmon-dragorn-1.diff">http://www.kismetwireless.net/code/orinoco-2.6.11-rfmon-dragorn-1.diff</a> #cd linux/drivers/net/wireless #patch -p4 --dry-run <</usr/src/orinoco-2.6.11-rfmon-dragorn-1.diff #patch -p4 <</usr/src/orinoco-2.6.11-rfmon-dragorn-1.diff #make modules modules_install Installieren vom Host-AP Treiber#emerge hostap-driver #emerge hostap-utils #emerge hostapd #emerge wpa_supplicant Installieren vom Linux-Wlan-NG Treiber#cd /usr/src #wget <a href="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.1-pre26.tar.gz" title="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.1-pre26.tar.gz">ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-0.2.1-pre26.tar.gz</a> #tar xfz linux-wlan-ng-0.2.1-pre26.tar.gz #cd linux-wlan-ng-0.2.1-pre26 #make config #make all #make install Wireless Lan Funktioniert isn´t working not with WlanNG and even not with HostAP Treibern at the moment Orinoco Card works fine <a href="http://forums.gentoo.org/viewtopic-t-332230.html" title="http://forums.gentoo.org/viewtopic-t-332230.html">http://forums.gentoo.org/viewtopic-t-332230.html</a> Kismet will find some networks but connecting is still not possible Wechseln zwischen HostAP und WlanNG Treiberswitch-to-hostap #touch /root/switch-to-hostap #vi switch-to-hostap >#rm -Rf /etc/pcmcia >#cp -R /etc/pcmcia-hostap /etc/pcmcia >rm -f /etc/pcmcia/wlan-ng* >killall -HUP cardmgr >cardctl eject >cardctl insert
#touch /opt/bin/pcmcia/wlan-ng #touch /opt/bin/pcmcia/wlan-ng.conf #vi /opt/bin/pcmcia/wlan-ng <a href="http://data.darklevel.org/GentooInstall/wlan-ng" title="http://data.darklevel.org/GentooInstall/wlan-ng">Inhalt der Datei ->Download</a> #vi /opt/bin/pcmcia/wlan-ng.conf <a href="http://data.darklevel.org/GentooInstall/wlan-ng.conf" title="http://data.darklevel.org/GentooInstall/wlan-ng.conf">Inhalt der Datei ->Download</a> #touch /root/switch-to-wlanng #vi switch-to-wlanng >#rm -Rf /etc/pcmcia >#cp -R /etc/pcmcia-wlanng /etc/pcmcia >cp /opt/bin/pcmcia/* /etc/pcmcia/ >killall -HUP cardmgr >cardctl eject >cardctl insert
Tools#emerge wireless-tool #emerge kismet //holt xorg und jede menge mehr mit runter da ich <strong>USE="-X"</strong> vergessen habe #ACCEPT_KEYWORDS="~x86" emerge kismet //für die aktuellste version
#vi /etc/kismet.conf //konfigurieren #vi /etc/kismer_drone.conf //auch konfigurieren änderungen: >suiduser=myself >source=hostap,wlan0,prism2source oder >source=wlanng,wlan0,wlanng nur in kismet.conf >logtemplate=%h/kismet/%n-%d-%i.%l
Netzwerk Tools#emerge nmap -> <a href="http://www.darklevel.org/index.php/Nmap" title="Nmap">HowToUse Nmap</a>
1st Try to build Linux Live CD - Named: R[a] Linux 2005.01pre1thinking about using Pentoo, NavynOS, Phaeronix or Gentoo RR4 as base
#cd ~ #mkdir -p livecd/source #cd livecd/source #lynx <a href="http://www.gentoo.org/main/en/mirrors.xml" title="http://www.gentoo.org/main/en/mirrors.xml">http://www.gentoo.org/main/en/mirrors.xml</a> ->stage2-x86-2005.0.tar.bz2 #tar jxvpf ~/stage2-i686-2004.2.tar.bz2 #mkdir newroot #cd livecd/source/usr/ #lynx <a href="http://www.gentoo.org/main/en/mirrors.xml" title="http://www.gentoo.org/main/en/mirrors.xml">http://www.gentoo.org/main/en/mirrors.xml</a> ->portage-20050514.tar.bz2 #tar jxvf ~/portage-20050514.tar.bz2 mv ../stage2* ~/ mv portage ~/ Anpassen der ~/livecd/source/etc/make.conf cd livecd/source chroot . /bin/bash --login env-update source /etc/profile emerge system ln -sf /usr/share/zoneinfo/<path to time zone file> /etc/localtime [edit] Important Note:**Please note: You follow all guides & tutorials at your own risk! No responsibility or liability is accepted by the authors. eine ausführliche Installationsanleitung ist auf http://www.gentoo.org/doc/en/handbook/handbook-x86.xml zu finden |
|
| Last Updated ( Wednesday, 11 July 2007 ) |
Gentoo Installation 







