Here is a basic guide to get linux up and running and ready for VDR (which is installed at the end using a menu install script)
Boot up off Gentoo disk 1
If needed run net-setup eth0
passwd to set the root password
/etc/init.d/sshd - If you wish to do this from another pc
run fdisk /dev/hda (Follow the instructions in Gentoo section 6)
For me this was -
n / p / 1 / ENTER / +50M
n / p / 2 / ENTER / +500M
t / 2 / 82
n / p / 3 / ENTER / ENTER
a / 1
p
w
Now format the partitions
mke2fs -j /dev/hda1
mkswap /dev/hda2
mke2fs -j /dev/hda3
and mount them
swapon /dev/hda2
mount -t ext3 /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount -t ext3 /dev/hda1 /mnt/gentoo/boot
Start installing:
cd /mnt/gentoo
tar -xvjpf /mnt/cdrom/stages/stage2-*.tar.bz2
mount -o bind /proc /mnt/gentoo/proc
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
Climb into your new system:
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
Get everything up to date:
emerge sync
export CONFIG_PROTECT="-*"
export USE="-* bootstrap build"
emerge portage
etc-update
unset USE
edit /etc/make.conf and set the USE line to :
USE="alsa dvd perl usb tiff gif avi jpeg mpeg -X -kde -gnome"
And now start bringing down all the system files you need :
emerge -p system
emerge system - This line will take a *long* time
Make sure it is up to date:
emerge sync
emerge -up world
emerge -u world
Set the timezone to your local time (for me this was)
ln -sf /usr/share/zoneinfo/GB /etc/localtime
Get the 2.4 Kernel source code and then compile it
emerge sys-kernel/vanilla-sources
cd /usr/src/linux
source /etc/profile
make clean
make menuconfig
(Code maturity level options / Prompt for development drivers = "*")
(add in a module for your network card as 'M')
(add in Multimedia / video for Linux as 'M')
(add in Filesystems / Ext3 + dos / MSDos + Vfat and '/dev' and 'mount at Boot' all as 'M')
make dep && make bzImage
make modules && make modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.4.26 (change name to fit version number)
Now install GRUB - the boot loader and configure it
emerge grub
grub
root (hd0,0)
setup (hd0)
quit
cd /boot/grub
nano -w grub.conf
Fill the file with -
default 0
timeout 15
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.26 root=/dev/had3
Install a system logger
emerge app-admin/metalog
rc-update add metalog default
Install Cron (runs commands at set times)
emerge sys-apps/fcron
rc-update add fcron default
Edit the FSTAB file
nano -w /etc/fstab
Change the lines to show where your drives are eg
/dev/BOOT becomes /dev/hda1
/dev/SWAP becomes /dev/hda2
/dev/ROOT becomes /dev/hda3
set root passwd
passwd
set machine hostname
echo pvr-pc > /etc/hostname
Setup the network
nano -w /etc/conf.d/net - this is where you put DHCP or your ip addresses
rc-update add net.eth0 default
rc-update add sshd default
basic setup
nano -w /etc/rc.conf - setup things like keyboard type
The system is now ready to boot and test.
etc-update
update-modules
exit
reboot
Log back in (if you have problems booting then boot off disk 1 again and go back to the 'mount' step)
Emerge useful packages
emerge lynx
emerge vim
Install ALSA from http://www.gentoo.org/doc/en/alsa-guide.xml
grep audio /proc/pci - look for the model name of the card
env ACCEPT_KEYWORDS="~x86" ALSA_CARDS='intel8x0' emerge alsa-driver - replace intel8x0 with your card
to support future recompiles add the following line to your /etc/make.conf file
ALSA_CARDS='intel8x0'
env ACCEPT_KEYWORDS="~x86" ALSA_CARDS='intel8x0' emerge alsa-oss
nano -w /etc/modules.d/alsa [b] Fill it with :
[b]env ACCEPT_KEYWORDS="~x86" emerge alsa-utils
rc-update add alsasound boot
/etc/init.d/alsasound start
amixer set Master 100 unmute
amixer set PCM 100 unmute
Emerge packages needed for the VDR install
emerge dialog
Now get the VDR install script
cd /root
wget ftp://ftp.cadsoft.de/vdr/Tools/vdr-install-script-0.5.8.run
and run it
sh *.run
Download the parts you would like and the script does the rest.