I install Gentoo often enough that the Gentoo Handbook is way too verbose, but not often enough to memorize the steps involved. This list is meant mainly for me, but also for anyone who is comfortable enough in Linux to know what to do with a description like "Partition disk and create file systems".
Config network, ip addr/dhcpcd
Partition Drive
Create Filesystems
mkswap
& swapon
Mount root at /mnt/gentoo
Mount boot at /mnt/gentoo/boot
date
cd /mnt/gentoo
Get stage3 and portage snapshot archives
# links http://www.gentoo.org/main/en/mirrors.xml
# tar jxvfp stage3*.tar.bz2
# tar jxvf portagesnapshot.tar.bz2 -C /mnt/gentoo/usr
Edit /mnt/gentoo/etc/make.conf
Set CHOST CFLAGS; set MAKEOPTS="-j<2*#ofCPUs>"
See http://gentoo-wiki.com/Safe_Cflags
Consider "-march=native -O2 -pipe"
Set USE flags
# mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
# mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
select locales in /etc/locale.gen
# cp /etc/resolve.conf /mnt/gentoo/etc/resolv.conf
# mount -t proc none /mnt/gentoo/proc
# mount -o rbind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# emerge --sync
# eselect profile list
# eselect profile set #
# locale-gen
# emerge vim
# emerge pciutils
Choose a timezone
# vim /etc/conf.d/clock
# mkdir /etc/portage
# cat "sys/gentoo-sources -docs symlink" > /etc/portage/package.use
# emerge gentoo-sources
config and install kernel
# make && make modules_install && make install
setup /etc/fstab
set /etc/conf.d/hostname
setup /etc/conf.d/net
# rc-update add net.eth0 default
set root passwd
# emerge syslog-ng
# rc-update add syslog-ng default
# emerge vixie-cron
# rc-update add vixie-cron default
# emerge slocate
# emerge dhcpcd
on x86 emerge grub
on x86_64 emerge grub-static
setup /boot/grub/grub.conf
:
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux Newest
root (hd0,0)
kernel /vmlinuz root=/dev/hda3 video=vesafb:mtrr:3,ywrap,1024x768-32@85
title=Gentoo Linux Previous
root (hd0,0)
kernel /vmlinuz.old root=/dev/hda3 init=/bin/bb
Configure grub bootloader:
# grub --no-floppy
grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)
# exit
# cd
# umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
# reboot