Gentoo 2006.0 Install on Thinkpad T30
Linux: Gentoo 2006.0
Thinkpad T30 2.0Ghz 512
CPU: Intel Mobile Intel(R) Pentium(R) 4 – M CPU 2.00GHz stepping 07
Memory: 513460k/523712k available (2285k kernel code, 9700k reserved, 551k data, 172k init, 0k highm$
hda: SAMSUNG MP0804H, ATA DISK drive
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 1658kB Cache, UDMA(33)
localhost home # lspci
00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #2) (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #3) (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02)
00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC’97 Audio Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC’97 Modem Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
07:00.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface
The Install
Legend:
= action
=c= config
=o= output
Boot using the minimal install CD “Gentoo 2006.0 Minimal CD/InstallCD”
On Boot:
gentoo
net-setup eth0
passwd
/etc/init.d/ssh start
ifconfig
=o=
IP for eth0
=o=
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
=partition=
/dev/hda1 /boot 512
/dev/hda2 windows
/dev/hda3 ntfs data
/dev/hda4 extention
/dev/hda5 /
/dev/hda6 swap
mke2fs /dev/hda1
mke2fs -j /dev/hda5
mkswap /dev/hda6
swapon /dev/hda6
mount /dev/hda5 /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
=c=
CFLAGS=”-march=pentium4m -Os -pipe -msse2 -mfpmath=sse”
CHOST=”i686-pc-linux-gnu”
CXXFLAGS=”${CFLAGS}”
=c=
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.52 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
ls /usr/share/zoneinfo
cp /usr/share/zoneinfo/Australia/Sydney /etc/localtime
date 081914582006 #19 August 14:58 2006
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
=c=
boot=/dev/hda1 # 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 se$
default=gentoo # When the timeout has passed, boot the “gentoo” sect$
# For genkernel users
image=/boot/kernel-genkernel-x86-2.6.17-gentoo-r4
label=gentoo
read-only
root=/dev/ram0
append=”init=/linuxrc ramdisk=8192 real_root=/dev/hda5 udev”
initrd=/boot/initramfs-genkernel-x86-2.6.17-gentoo-r4
other=/dev/hda2
label=WindowsXP
=c=
/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 xorprimeConfig Files