Gentoo 2006.0 Installation
From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia
The following is intended as a quick reference guid for how to install Gentoo Linux 2006.0. It is written as a copy & paste template.
#Create partitions & filesystem fdisk /dev/sda #boot partition, swap partition, root partition mke2fs /dev/sda1 #boot mke2fs -j /dev/sda3 #root mkswap /dev/sda2 #swap swapon /dev/sda2
#Mount file systems from the install CD mount /dev/sda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/sda1 /mnt/gentoo/boot
#Install stage3 tarball and portage snapshot cd /mnt/gentoo links http://www.gentoo.org/main/en/mirrors.xml tar xjpf stage3-*.tar.bz2 links http://www.gentoo.org/main/en/mirrors.xml tar xjf /mnt/gentoo/portage-<date>.tar.bz2 -C /mnt/gentoo/usr
#Additional things before entering the chroot
nano -w /mnt/gentoo/etc/make.conf
MAKEOPTS="-j5"
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
#Enter the chroot chroot /mnt/gentoo /bin/bash env-update source /etc/profile export PS1="(chroot) $PS1"
#Update portage emerge --sync nano /etc/make.conf
#Emerge and compile the kernel cp /usr/share/zoneinfo/EST5EDT /etc/localtime USE="-doc symlink" emerge gentoo-sources emerge genkernel zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6 genkernel all emerge coldplug rc-update add coldplug boot
#Configure fstab to mount filesystems automatically at boot nano /etc/fstab
#Set proper host & domain name, configure network with a fixed IP address nano -w /etc/conf.d/hostname nano -w /etc/conf.d/domainname nano -w /etc/conf.d/net rc-update add net.eth0 default nano /etc/hosts
#Miscelaneous configuration passwd emerge syslog-ng rc-update add syslog-ng default emerge vixie-cron rc-update add vixie-cron default
#Install & configure the boot loader emerge grub nano /boot/grub/grub.conf grep -v rootfs /proc/mounts > /etc/mtab grub-install /dev/sda rc-update add sshd default
#Exit chroot and reboot into the newly installed Gentoo system exit cd umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo reboot
