Thursday, March 15, 2007

Gentoo Linux Mini HOWTO

This a short reference guide for installing Gentoo “the classic way”.


fdisk /dev/hda


mkswap /dev/hdaX
mkfs.ex3 /dev/hdaY


swapon /dev/hdaX
mount /dev/hdaY /mnt/gentoo


cd /mnt/gentoo
wget http://mirrors.ludost.net/gentoo/releases/
x86/current/stages/stage3-i686-2006.1.tar.bz2
tar xvjpf stage3-i686-2006.1.tar.bz2


mount -o bind /proc /mnt/gentoo/proc


cp /etc/resolv.conf /mnt/gentoo/etc/


chroot /mnt/gentoo /bin/bash


env-update
source /etc/profile


emerge –sync


nano -w /etc/make.conf


ln -sf /usr/share/zoneinfo/… /etc/localtime


emerge -sf sys-kernel/gentoo-sources
cd /usr/src/linux
make menuconfig
make bzImage modules modules_instal
cp arch/i386/boot/bzImage /boot


ufed


emerge metalog
emerge dcron


rc-update add medalog default
rc-update add dcron default


passwd


nano -w /etc/fstab


grub


etc-update


exit
cd /
umount /mnt/gentoo/proc
umount /mnt/gentoo


reboot


If you don’t know what some of the commands do or how to use them check out the original Gentoo Linux x86 Quick Install Guide and Gentoo Handbook.

No comments:

Post a Comment