Installing Gentoo Linux 2005.0 on CPQ Presario 2580US Notebook
v0.1 - 6/1/05 - Gentoo Linux 2005.0 - Stage 3 Install - Base system only
v0.2 - 6/2/05 - Formating changes / added root password creation
v0.3 - 6/2/05 - Added "Past the basic system (What I have done):"
Authors Note
Install consolidated from Gentoo Linux x86 Handbook
Boot from CD.
Verify network:
- ping -c 3 www.google.com (should work by default)
Delete all partions:
- fdisk /dev/hda
- d # (until they are all gone)
- w (to write and quit)
Partion setup:
- fdisk /dev/hda
- n p 1 +64M (create /dev/hda1 for boot partition ~64mb)
- a 1 (make /dev/hda1 bootable)
- n p 2 +1000M (create /dev/hda2 swap space ~1000mb)
- t 2 82 (set partition type to swap)
- n p 3 (create /dev/hda3 for main partition rest of space)
- w (to write and quit)
Create filesystems:
- mke2fs /dev/hda1 (sets ext2 filesystem)
- mke2fs -j /dev/hda3 (sets ext3 filesystem)
- mkswap /dev/hda2 (sets swap filesystem)
- swapon /dev/hda2 (turns on swap space)
Mount partitions
- mount -t ext3 /dev/hda3 /mnt/gentoo
- mkdir /mnt/gentoo/boot
- mount /dev/hda1 /mnt/gentoo/boot
Get stage3 and portage tarball
- cd /mnt/gentoo
- links2 http://www.gentoo.org/main/en/mirrors.xml
- (FIND MIRROR AND DOWNLOAD STAGE 3 & PORTAGE TARBALL)
Unpack tarballs
- tar -xvjpf stage3-*.tar.bz2
- tar -xvjf /mnt/gentoo/portage-*.tar.bz2 -C /mnt/gentoo/usr
Add stuff to make.conf
- nano -w /mnt/gentoo/etc/make.conf
- add -pipe to CFLAGS
- add MAKEOPTS="-j2"
- ctrl-x and save file
Mirror select
- mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
- mirrorselect -i -o -r >> /mnt/gentoo/etc/make.conf
Copy dns info
- cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Mount proc filesystem
- mount -t proc none /mnt/gentoo/proc
Enter new enviornment
- chroot /mnt/gentoo /bin/bash
- env-update
- source /etc/profile
Update portage (network required)
Timezone
- ln -sf /usr/share/zoneinfo/PST8PDT /etc/localtime
Get kernel source
Configure kernel
- cd /usr/src/linux
- make menuconfig
Must set kernel options
- Code maturity level options --->
- [*] Prompt for development and/or incomplete code/drivers
- Processor type and features --->
- (Change according to your system)
- (Pentium-4/Celeron...) Processor family
- File systems --->
- Pseudo Filesystems --->
- [*] /proc file system support
- [ ] /dev file system support (OBSOLETE)
- [*] Virtual memory file system support (former shm fs)
- <*> Ext3 journalling file system support
- Device Drivers --->
- ATA/ATAPI/MFM/RLL support --->
- [*] Generic PCI bus-master DMA support
- [*] Use PCI DMA by default when available
- USB Support --->
- <*> USB Human Interface Device (full HID) support
Build / install kernel
- make && make modules_install
- cp arch/i386/boot/bzImage /boot/kernel-2.6.11-gentoo-r9
- cp System.map /boot/System.map-2.6.11-gentoo-r9
- cp .config /boot/config-2.6.11-gentoo-r9
Create fstab (make it look like this)
- nano -w /etc/fstab
- /dev/hda1 /boot ext2 defaults,noatime 1 2
- /dev/hda2 none swap sw 0 0
- /dev/hda3 / ext3 noatime 0 1
- none /proc proc defaults 0 0
- none /dev/shm tmpfs nodev,nosuid,noexec 0 0
- /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
Network info
- echo tux > /etc/hostname
- echo homenetwork > /etc/dnsdomainname
- rc-update add domainname default
- nano -w /etc/conf.d/net
- inface_eth0="dhcp"
- rc-update add net.eth0 default
- nano -w /etc/hosts
- 127.0.0.1 localhost tux
System tools
- emerge syslog-ng
- rc-update add syslog-ng default
- emerge vixie-cron
- rc-update add vixie-cron default
- emerge slocate
- emerge dhcpcd
Configure bootloader
- nano -w /boot/grub/grub.conf
- default 0
- timeout 10
- splashimage=(hd0,0)/grub/splash.xpm.gz
- title=Gentoo Linux 2.6.11-r9
- root (hd0,0)
- kernel /kernel-2.6.11-gentoo-r9 root=/dev/hda3 video=vesafb:mtrr,ywrap,1024x768-32@60
- grub --no-floppy
- grub> root (hd0,0)
- grub> setup (hd0)
- quit
Set root password
- passwd
- type password
- re-type passwrod
Reboot System
- exit
- cd
- umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
- reboot
This installs the most basic system.
Past the basic system (What I have added):