User Tools

Site Tools


gentoo

This is an old revision of the document!


Gentoo

Essential packages

These are packages I want to install on pretty most Gentoo boxes:

Fonts

Hardware monitoring

(There's no need to install these packages on virtual machines)

Networking

System

System administration

Utilities

Tips and Tricks

Enabling bash completion for portage

Single user mode with genkernel

To get into single user mode using a genkernel/initramfs, you must append init_opts=1 to the kernel boot line, rather than the usual 1.

Limiting sensord's syslog logging

In /etc/default/sensord, set the following: ALARM_INTERVAL=30h LOG_INTERVAL=30g SYSLOG_FACILITY=daemon

Stopping snmpd logging all connections

In /etc/default/snmpd, change the first part of the SNMPDOPTS line from: -Lsd to: -LS4d This will keep it logging important messages, but debugging & notice messages will be ignored.

Useful scheduled tasks

Also see Portage for more useful scheduled tasks.

Don't forget to mark these scripts as executable.

GLSA Check

Have your Gentoo box check if any installed packages are affected by known security problems using glsa-check. Add the following script to your weekly crontab directory:

/etc/cron.weekly/01-glsa-check|<code bash> #!/bin/bash /usr/bin/glsa-check --nocolor --verbose --cve --list affected 2>/dev/null | mail -s 'GLSA check' security@sihnon.net </code>

Maintenance

Kernel Upgrades

Get the new kernel sources:

Migrate the kernel configuration: <code bash> eselect kernel list eselect kernel set <num> </code>

Mount /boot, and build/install the new kernel <code bash> mount /boot genkernel --menuconfig all </code>

If necessary, modify the Grub configuration, /boot/grub/grub.conf.

Rebuild any packages with kernel-specific drivers: <code bash> module-rebuild rebuild </code>

Problems

The current Gentoo release (2008.0) shipped with a blocking problem in portage, involving direct=yes|sys-fs/e2fsprogs and direct=yes|sys-libs/ss/direct=yes|sys-libs/com_err. This appears to be fixed in the latest release candidates of portage 2.2, but on older systems, the following might be needed:

<code>0@@</code>

gentoo.1416795166.txt.gz · Last modified: 2014/11/24 02:12 by ben