use this guide with the gentoo docs
Boot up off the x86 install cd
Start by partitioning the hard disk -
fdisk /dev/hda (or sda for sata)
p to display the partition
d and 1 to delete the partition if it is already there (eg a windows disk)
n / p / 1 / Enter / +100M - create boot partition
n / p / 2 / Enter / +900M - create swap partition
n / p / 3 / Enter / Enter - create main root partition (rest of disk)
t / 2 / 82 - to set the type of partition 2 to swap.
a / 1 - set boot partition to be active
p to display the partitions (you should check they look like the above setup)
w quit and write out the partition
and lets format them :
mke2fs /dev/hda1
mkswap /dev/hda2
swapon /dev/hda2
mkreiserfs /dev/hda3
and mount them :
mount /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
Check the date is right
# date
and set it if needed :
# date MMDDhhmm
cd /mnt/gentoo
More downloads needed now :
links2 http://www.gentoo.or.../en/mirrors.xml
Move down until you find a local mirror site (press enter on the name)
go to snapshots and select portage-latest.tar.bz2 and press 'D' to save to disk (should be about 20MB)
go back up one level and then into releases/x86/2008.0/stages and select stage3-i686-2008.0.tar.bz2
and press 'D' to save
Press 'Q' to quit (note it is a capital Q)
tar -xvjpf stage3-*.tar.bz2
tar -xvjf portage-*.tar.bz2 -C /mnt/gentoo/usr
if everything worked remove the two files
rm -f *.bz2
Set the nearest mirror to save time with downloads from now on :
mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
Move down to the nearest mirror and press SPACE to select and ENTER to save
Note the commands above are two seperate commands and not a typo so do both
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf copy the DNS info
Now lets climb inside the new vehicle we are building :
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
edit /etc/make.conf and add a line :
nano -w /etc/make.conf
USE="-ipv6 -kde -qt3 -qt -gtk -x -xv -X vdr mmx mpeg dvd alsa cdr"
emerge --sync
if requested to do
emerge portage
if requested to do so run etc-update. This will list files that need updating.
etc-update
if it finds any it will either merge in very minor changes or will list them. If it lists files to be merged press each number to see the changes. Press 'q' to get back to menu and '1' to update file and 'y' to confirm (then repeat for file 2, 3 etc...
at then end it says 'nothing left to do'
edit locales file :
nano -w /etc/locale.gen
en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
run : locale-gen
set the timezone :
cp /usr/share/zoneinfo/Europe/London /etc/localtime
emerge -a syslog-ng logrotate fcron slocate xfsprogs reiserfsprogs dhcpcd vim lynx wget dialog jpeg
emerge -a pciutils eix grub
[******] rc-update add syslog-ng default
[******] rc-update add fcron default
[******] crontab /etc/crontab
Now compile the kernel :
cd /usr/src/linux
make menuconfig
go into filesystems and make sure you have :
one or more of the following options as needed by your system)
<*> Second extended fs support
<*> Ext3 journalling file system support
<*> Reiserfs support
Under pseudeo make sure you have
[*] /proc file system support
[*] Virtual memory file system support (former shm fs)
Under network filesystems
(*) CifS (but only if you will be mapping to shared windows/samba drives)
Device drivers / MultiMedia
<*> DVB Driver
[*] Load and attach DVB frontend drivers as needed
<*> DVB Adapters -> select and then Press enter to pick cards
also pick frontends under this section (load these a 'M' for module).
Graphics
Console Display driver support
<*> Frame buffer console support
Support for frame buffer devices -> Select card if needed
Network Support
(Pick your network card in here)
(for me it was)
Ethernet 10/100 Drivers
[*] Eisa, VLB, PCI and on board devices
<*> Intel Pro 10/100
Press exit until you get back to exit page. Select 'yes' to save config
type :
make && make modules_install
cp arch/i386/boot/bzImage /boot/kernel
We will set the network to start on boot (handy) :
rc-update add net.eth0 default
passwd and change the passwd for root so we can log in
Now we edit the fstab file. This tells Linux which type of partitions we have. here is an example file :
nano -w /etc/fstab
/dev/hda1 /boot ext2 noauto,noatime 0 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec
edit /etc/conf.d/keymaps
(I set my keyboard to "UK" and uncommented the line about keyboard extras like Euro)
nano -w /etc/conf.d/hostname
(Set the HOSTNAME variable to your host name)
HOSTNAME="vdr1"
nano -w /boot/grub/grub.conf
Example file :
default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Linux
root (hd0,0)
kernel /boot/kernel root=/dev/hda3
grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/hda
Set root passwd :
passwd
Reboot time :
# exit
# cd /
# umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
# reboot
If the system all works then continue.
Mine didn't. This is the big test point and often leads to a fail where you have forgotten to do something or messed up the typing above.
My drive is an old IDE drive which has always been refered to a 'hda'. The new Gentoo code calls it HDA for the live CD bit above but when you boot it is called 'sda'. It remaps it as a sata drive.
I'm sure there is a module I could turn off that would cure this but the quick fix shows how to correct problems :
Boot up on Gentoo CD again.
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
chroot /mnt/gentoo bin/bash
vi /etc/fstab (change hda1 to sda1 etc for all three drive mounts)
vi /boot/grub/grub.conf (change hda3 to sda3)
exit
cd /
umount /dev/hda1
umount /dev/hda3
reboot
emerge -a vdr
rc-update add vdr default
echo "media-plugins/vdr-softdevice directfb mmx mmxext" >> /etc/portage/package.use
echo "dev-libs/DirectFB fbcon gif png jpeg v4l vfl2" >> /etc/portage/package.use
emerge -a fbset DirectFB DFB++
emerge -a vdr-softdevice
eselect vdr-plugin enable softdevice
vi /etc/conf.d/vdr.softdevice (change video to dfb and audio to alsa (uncomment it))
(if you get errors when you start about permisions on /dev/tty0 or 8) you need to add vdr user to the group 'tty' and if you still get them edit /etc/udev/rules.d/50-udev.rules
and add MODE="0660" on the tty[0-9] line (copy format off another line))
start vdr with
/etc/init.d/vdr start
Page 1 of 1
How to install VDR on Gentoo latest version - for 2009 onwards
Page 1 of 1

Sign In
Register
Help

MultiQuote