Gentoo 2006.0 Install on Compaq Deskpro EN
Linux: Gentoo 2006.0
Compaq Despro EN Slim Form Factor
CPU0: Intel Pentium III (Coppermine) stepping 0a 1GHz
512 MB DDR Memory
hda: WDC WD200BB-60DGA0, ATA DISK drive
hdc: LITE-ON CD-ROM LTN-4891S, ATAPI CD/DVD-ROM drive
localhost home # lspci
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 04) 00:02.0 VGA compatible controller: Intel Corporation 82815 CGC [Chipset Graphics Controller] (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 02) 00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 02) 00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 02) 02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01) |
The Install
Legend:
= action
== content
Boot using the minimal install CD “Gentoo 2006.0 Minimal CD/InstallCD”
On Boot:
gentoo acpi=off agpgart nosata nosmp doapm nofirewire scandelay
net-setup eth0
passwd
SSH client: (logged as root)
useradd -m -G users xorprime
passwd xorprime
hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
==
/dev/hda1 /boot 512
/dev/hda2 swap
/dev/hda3 /
/dev/hda4 /home
==
mke2fs /dev/hda1
mke2fs -j /dev/hda3
mkswap /dev/hda2
swapon /dev/hda2
mkreiserfs /dev/hda4
mount /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
cd /mnt/gentoo
links http://www.gentoo.org/main/en/mirrors.xml
=
download stage3 and portage snapshots
=
tar xvjpf stage3-*.tar.bz2
cd /mnt/gentoo
tar xvjf /mnt/gentoo/portage-.tar.bz2 -C /mnt/gentoo/usr
nano -w /mnt/gentoo/etc/make.conf
==
CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=pentium3 -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”
==
MAKEOPTS=”-j2″
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
source /etc/profile
export PS1=”(chroot) $PS1″
emerge –sync
ls -FGg /etc/make.profile
less /usr/portage/profiles/use.desc
mkdir -p /etc/portage
echo “sys-libs/glibc userlocales” >> /etc/portage/package.use
nano -w /etc/locales.build
USE=”-doc symlink” emerge gentoo-sources
ls -l /usr/src/linux
emerge genkernel
zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
genkernel –menuconfig all
ls /boot/kernel* /boot/initramfs*
emerge coldplug
rc-update add coldplug boot
find /lib/modules// -type f -iname ‘*.o’ -or -iname ‘*.ko’
nano -w /etc/modules.autoload.d/kernel-2.6
nano -w /etc/conf.d/net
==
config_eth0=( “192.168.1.50 netmask 255.255.255.0 brd 192.168.1.255” )
routes_eth0=( “default gw 192.168.1.1” )
==
rc-update add net.eth0 default
passwd
echo “tts/0” >> /etc/securetty
nano -w /etc/rc.conf
nano -w /etc/conf.d/keymaps
nano -w /etc/conf.d/clock
emerge syslog-ng
rc-update add syslog-ng default
emerge vixie-cron
rc-update add vixie-cron default
emerge reiserfsprogs
emerge lilo
nano -w /etc/lilo.conf
==
boot=/dev/hda # Install LILO in the MBR
prompt # Give the user the chance to select another section
timeout=50 # Wait 5 (five) seconds before booting the default section
default=gentoo # When the timeout has passed, boot the “gentoo” section
# For genkernel users
image=/boot/kernel-genkernel-x86-2.6.16-gentoo-r9
label=gentoo
read-only
root=/dev/ram0
append=”init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev”
initrd=/boot/initramfs-genkernel-x86-2.6.16-gentoo-r9
==
/sbin/lilo
cd
umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
reboot
useradd -m -G users,wheel,audio -s /bin/bash xorprime
passwd xorprime
==
# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# cp /usr/share/zoneinfo/GMT /etc/localtime
date 081914582006
nano -w /etc/fstab
==
emerge ati-drivers xorg-x11 -pv
USE=”symlink” emerge -puavDN world
(Remerge libtool to avoid further potential problems)
mybox etc # emerge libtool
(Update config files, make sure you do not let etc-update
update config files you have edited)
mybox etc # etc-update
(If perl has been updated, you should run the perl-cleaner script)
mybox etc # time perl-cleaner all
real 1m6.495s
user 0m42.699s
sys 0m10.641s
(In case of a major upgrade of python, you should run the python-updater script)
mybox etc # python-updater