(18) Must have Utils

We want a simple system logger, and for it start by default at boot

(chroot) raspberrypi / #   emerge --ask app-admin/sysklogd
(chroot) raspberrypi / #   rc-update add sysklogd default
 * service sysklogd added to runlevel default
(chroot) raspberrypi / #

Next install the CRON daemon of your choice... Gentoo has a wiki page dedicated to CRON and compares vixie-cron, cronie, dcron, fcron, bcron and explains the optional extra anacron.

(chroot) raspberrypi / #   emerge --ask --verbose sys-process/cronie
(chroot) raspberrypi / #   rc-update add cronie default
 * service cronie added to runlevel default
(chroot) raspberrypi / #   crontab /etc/crontab
(chroot) raspberrypi / #


Make sure SSH starts by default at boot, you do not want to lock your self out...

(chroot) raspberrypi / #   rc-update add sshd default
 * service sshd added to runlevel default
(chroot) raspberrypi / #


Now, this next part is technically optional, but for most people it is effectively mandatory. Gentoo provides a special Gentoo toolkit, and just about every help doc expects you to have these tools installed.

(chroot) raspberrypi / #   emerge --ask app-portage/gentoolkit

Now we can use the Gentoo Toolkit to check the reverse dependencies to see if anything is broken. Note we use the --pretend switch ...

(chroot) raspberrypi / #   revdep-rebuild --pretend

 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done.

Another use of the Gentoo Toolkit is to manage config files generated after emerge.

(chroot) raspberrypi / #   etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)

Also we will want tools for the file systems. I used the Linux ext4 file system, so I will install sys-fs/e2fsprogs. If you choose other file systems, choose the appropriate tools. The Raspberry also has FAT partitions, by default, it is part of the firmware design - so I also installed sys-fs/dosfstools. Again these are technically optional, yet for most people, the e2fsprogs are pretty much mandatory - they should already be installed. When portage detects they are installed it will show a [R] for rebuild .. New packages are prefixed with a [N] for New.

(chroot) raspberrypi / #   emerge --ask sys-fs/e2fsprogs
(chroot) raspberrypi / #   emerge --ask sys-fs/dosfstools


Prevent the pesky message "respawning too fast" All we need to do is edit /etc/inittab and #comment out the SERIAL CONSOLES s0 like so :

(chroot) raspberrypi / #   nano /etc/inittab

# new-style single-user
su0:S:wait:/sbin/rc single

c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100


Over Clocking [optional]

See the Gentoo Raspberry Pi/Quick Install Guide for full details. It gives details on the hardware random number generator and raspberrypi-userland, which are also masked packages. These are not needed to get a minimal functional installation, but are needed to over-clock and get all the hardware extras functioning.


For more information, Gentoo has handbooks on Working with Gentoo, Working with Portage and Network configuration.

I also caution that before playing with portage, make sure the NTP-CLient is really up and running... Because should portage thinks it is Thursday 1st January 1970 you are going to get some weird results.

Next : Bootloader