Gentoo Linux installation tutorialLet me just warn you, this install is no fun, will take a long time and may cause disappointment.I managed to get it installed, but I would rather smash my finger with a hammer, then go through that again.If I can't stop you, I suggest you try a different install method than what I went through.If your determined to do it the same way I did then please read the whole tutorial before following my steps verbatim.Here are the official Gentoo install guides:
http://www.gentoo.or...handbook-x86.xml
http://www.gentoo.or...uickinstall.xmlThe Gentoo Weekly Minimal Install CD and Stages can be found at the following link:
http://www.gentoo.or...in/en/where.xmlabout 104Meg, just download iso and burn to a CDBoot CD, I had to hit F12 while booting to redirect to CDThe fun starts right away as it asks you what kernel you want to boot, I went with the default "gentoo" kernel with no options... just hit <enter>Run lspci and take notice of what the default kernel detected
livecd ~ # lspci
Create a root password right away, just in case...
livecd ~ # passwd
Hopefully networking has already been configured and working, but it wasn't in my case, so I followed the directions:
livecd ~ # net-setup eth0It had already detected my network card, so I said <yes> to the interface <ok> My network is wired <ok> Use DHCP
it worked, I had a functioning network, which I verified by w/
livecd ~ # ifconfiglivecd ~ # ping -c 3 www.gentoo.org
Now it was time to create the Partitions, I went against the fdisk example and used cfdisk
livecd ~ # cfdisk
del existing sda1 partition so it's all free space.Now I thought I was clever with my own partitioning scheme, but that turned out to be stupid, because I could no longer follow the install guide verbatin and had to keep adjusting things in my head.
Here are my partitions: sda1 Primary Linux 83 10000.95 sda2 Primary Linux 83 8003.20 sda3 Primary Linux 82 1998.75 sda4 Boot Primary Linux 83 485.30write
Now for the filesystem, I did follow their suggestion
livecd ~ # mkfs -j /dev/sda1
-lots of useless info displayed about groups, blocks, fragments, superblocks, etc...-writing inode tables, creating journal, filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override
livecd ~ # mkfs -j /dev/sda2livecd ~ # mkswap /dev/sda3livecd ~ # mkfs /dev/sda4
Now we mount the partitions, mine are again different from the install guide.If I was smart I would go back and mimic the install guide... if I was really smart, I would stop the install and play with my dogs, but I'm not smart and kept plugging on with my "different" partitions.
livecd ~ # mount /dev/sda1 /mnt/gentoolivecd ~ # mkdir /mnt/gentoo/bootlivecd ~ # mount /dev/sda4 /mnt/gentoo/bootlivecd ~ # mkdir /mnt/gentoo/homelivecd ~ # mount /dev/sda2 /mnt/gentoo/homelivecd ~ # cd /mnt/gentoo
date & time
livecd ~ # date
omg, this looked good, nothing to do here!!Download stage3 tarball
livecd ~ # links http://www.gentoo.org/main/en/mirrors.xmlI down-arrowed to Michigan Tech. University (http)-choose /releases-choose /x86-choose /current-stage3stage3-i686-20091229.tar.bz2-d-ok<esc>-exit-yes
livecd ~ # ls
boot home lost+found stage3-i686-20091229.tar.bz2
livecd ~ # tar xvjpf stage3-i686-20091229.tar.bz2
-unpacking/installing stuff scrolls down my screen for the next 3 to 5 minutesNow I download portage (package manager tarball)
livecd ~ # cd /mnt/gentoo/usr
Try the same mirror as before:
livecd usr # links http://www.gentoo.org/main/en/mirrors.xmlconnecting...but it never does, so I go back and pick a different mirrorGeorgia Tech. (http)-choose /snapshotsportage-latest.tar.bz2-save-ok<esc>FileExitYes
livecd usr # tar xvjf portage-latest.tar.bz2
-unpacking/installing stuff scrolls by for about 10 minutes
livecd usr # cd /etc
Copy DNS Info
livecd etc # cp -L /etc/resolve.conf /mnt/gentoo/etc/
Mount /proc and /dev filesystems
livecd etc # cd /livecd / # mount -t proc proc /mnt/gentoo/proclivecd / # mount -o bind /dev /mnt/gentoo/dev
Now chroot
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update>>>Regenerating /etc/ld.so.chache...
livecd / # source /etc/profile
I would suggest you modify the command, because I ran it verbatim like the install guide and I ended up with a ridiculous prompt: (chroot) livecd / #
livecd / # export PS1="(chroot) #PS1"
At this point the guide congratulates you, because you are now in your own Linux environment.Update Portage Tree
(chroot) livecd / # emerge --sync
-stuff scrolls by for about 30 seconds
(chroot) livecd / # eselect profile list
The default is good for me
(chroot) livecd / # cd /usr/share/zoneinfo/US(chroot) livecd US # cp ./Eastern /etc/localtime
The hosts file and hostname
(chroot) livecd / # cd /etc(chroot) livecd etc # echo "127.0.0.1 gentoo.linuxbox gentoo localhost" > hosts(chroot) livecd etc # sed -i -e 's/HOSTNAME.*/HOSTNAME="gentoo"/' conf.d/hostname
(chroot) livecd etc # hostnamegentoo
(chroot) livecd etc # hostname -fgentoo.linuxbox
Now to download the kernel sources
(chroot) livecd US # emerge gentoo-sources
(chroot) livecd US # cd /usr/src
(chroot) livecd US # ls -llinux -> linux-2.6.31-gentoo-r6linux-2.6.31-gentoo-r6
Manual Kernel Config
(chroot) livecd US # emerge pciutil
-stuff scrolls by quicklyNow I use lspci and lsmod trying to record everything which didn't really help
(chroot) livecd US # lspci(chroot) livecd US # lsmod
Let's get working on that kernel
(chroot) livecd US # cd /usr/src/linux
(chroot) livecd linux # make menuconfig
Now the choices, but I'm prepared... right?, I have the lspci output which was basicallyno help. I removed the laptop stuff and the AMD stuff because my proc is intel,etc... I made about 15 changes from the already selected.Now I'm getting anxious... when can I test it?Compile the new kernel
(chroot) livecd linux # make && make modules_install
stuff scrolls down the screen for about 15 minutes or soCopy the new image to /boot
(chroot) livecd linux # cp arch/i386/boot/bzImage /boot/kerner-2.6.31-regexorcist-r6
Modules
(chroot) livecd linux # find /lib/modules/2.6.31-gentoo-r6/ -type f -iname '*.0' -or -iname '*.ko' | more
nothing I need to load?
(chroot) livecd linux # cd /etc
fstabNow I need to edit fstab, the says use nano, but I like vi/vim
(chroot) livecd etc # vi fstab (nothing happens)
whoops, I don't have vi/vim yet
(chroot) livecd etc # emerge vim
-stuff scrolls by
(chroot) livecd etc # vi fstabHere are the changes I made/dev/sda4 /boot ext2 noauto,noatime 1 2/dev/sda2 / ext3 noatime 0 1/dev/sda3 none swap sw 0 0/dev/cdrom /mnt/cdrom auto users 0 0/dev/sda1 /home ext3 noatime 0 0:wq
(chroot) livecd etc # cd conf.d(chroot) livecd conf.d # echo 'config-eth0=("dhcp")' >> netChange root password
(chroot) livecd conf.d # passwd(chroot) livecd conf.d # cd ..
(chroot) livecd etc # vi rc.confEditor="/usr/bin/vim"Xsession="Xfce4":wq
(chroot) livecd etc # emerge vixie-cron(chroot) livecd etc # emerge dhcpd(chroot) livecd etc # emerge grub
Edit Grub, had to determine where my boot partition was in grub talk (ha! ha!)
(chroot) livecd etc # vi /boot/grub/grub.confdefault 0timeout 30title Gentoo Linux 2.6.31-rexorcist-r6root(hd0,3)kernel /boot/kernel-2.6.31-regexorcist-r6 root=/dev/sda2:wq
(chroot) livecd etc # grep -v rootfs /proc/mounts > /etc/mtab(chroot) livecd etc # grub-install --no-floppy /dev/sda(chroot) livecd etc # exit
Back on the CD
livecd ~ # cdlivecd ~ # umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
DRUM ROLL PLEASElivecd ~ # reboot
The system starts to come upGrub comes up with my new kernel name selectedThe kernel starts to load...
I'm on top of the world and...stuff scrolling by and...
KERNEL PANIC something about can't load shelljust stops
I quickly fall from on top of the world to subterranean dismayWhat went wrong?Kernel options?I've learned my grub.conf should have said real_root not root, but that couldn't be it.Was it me... probably, but I'll blame Gentoo
I HATE GENTOOI had some time to reflect, so I decided to download the gentoo live DVD, boot it, make selections,emerge a few required packages like a desktop environment and I'm online in an hour.I then posted my installation success on the forum, indicating a few problems.

I didn't indicate how big my "few problems" were, but if I had you wouldn't be laughing

at this tutorial right now.Yes, I still have a sense of humor,and I have gentoo installed