Gentoo
From Dionyziz
[edit] Installing Gentoo in 48 laconic steps
This is a guide for a typical Gentoo installation. In no means does this attempt to replace the Gentoo Handbook; it's only a quick reference put in place mostly for myself and my teams. If this is the first time you're installing Gentoo this will not help you and will most likely confuse you, so use the handbook instead!
- Download 2006.1 x86 Minimal CD, burn it, make sure your BIOS is configured to boot from CD, and boot from the CD.
- ping -c3 www.google.com to check if you have Internet. If not,
- ifconfig, to check your network configuration.
- ifconfig eth0 (some systems need eth1, with eth0 being wireless!)
- net-setup eth0
- fdisk /dev/hda (or /dev/sda if on SATA)
- p to print existing partitions and d to delete them.
- n, p, 1, return, +32M for the boot partition.
- a, 1 to make it bootable.
- n, p, 2, return, +512M for the swap partition.
- t, 2, 82 to make it linux swap.
- n, p, 3, return, return for the root partition.
- w to save.
- mke2fs /dev/hda1
- mke2fs -j -O dir_index /dev/hda3 that's not a zero there
- mkswap /dev/hda2
- swapon /dev/hda2
- mount /dev/hda3 /mnt/gentoo
- mkdir /mnt/gentoo/boot
- mount /dev/hda1 /mnt/gentoo/boot
- date, to check the date. If it's incorrect,
- date MMDDhhmmYYYY to set it.
- cd /mnt/gentoo
- links http://www.gentoo.org/main/en/mirrors.xml
- Releases -> x86 -> current -> stages -> stage3-i686-2006.1.tar.bz2
- Releases -> x86 -> current -> stages -> stage3-i686-2006.1.tar.bz2.DIGESTS
- Snapshots -> portage-latest.tar.bz2
- Snapshots -> portage-latest.tar.bz2.md5sum
- md5sum -c stage3-i686-2006.1.tar.bz2.DIGESTS portage-latest.tar.bz2.md5sum
- tar xvjpf stage3-*.tar.bz2
- tar xvjf portage-latest.tar.bz2 -C /mnt/gentoo/usr
- nano -w /mnt/gentoo/etc/make.conf
- MAKEOPTS="-j2"
- USE="-gtk -gnome X qt4 kde dvd alsa cdr"
- LINGUAS="en el"
- mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
- 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
- chroot /mnt/gentoo /bin/bash
- env-update
- . /etc/profile
- export PS1="[kamibu] $PS1"
- emerge --sync
- emerge portage vim gentoo-sources
- cp /usr/share/zoneinfo/Europe/Athens /etc/localtime
- cd /usr/src/linux
- make menuconfig (go to the handbook page for kernel options if you don't remember what you need!)
- make && make modules_install
- cp arch/i386/boot/bzImage /boot/kamibu
- vim /etc/fstab
- /dev/hda1 /boot ext2 defaults,noatime 1 2
- /dev/hda2 none swap sw 0 0
- /dev/hda3 / ext3 noatime 0 1
- vim /etc/conf.d/hostname
- HOSTNAME="fred"
- vim /etc/conf.d/net
- dns_domain_lo="fidias"
- config_eth0=( "dhcp" )
- dhcp_eth0="nodns nontp nonis"
- rc-update add net.eth0 default
- passwd
- emerge syslog-ng vixie-cron slocate dhcpcd grub
- rc-update add syslog-ng default
- rc-update add vixie-cron default
- vim /boot/grub/grub.conf
- default 0
- timeout 5
- title=Gentoo
- root (hd0,0)
- kernel /boot/kamibu root=/dev/hda3
- grep -v rootfs /proc/mounts > /etc/mtab
- grub-install --no-floppy /dev/hda
- Ctrl + D
- cd ..
- umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
- Ctrl + Alt + Del (don't forget to remove the CD from the drive)


