Skip to main content

Gentoo

/dev/sda1 does not have any corresponding BIOS drive

Posted in

After a grub update, we were instrusted to do install the new version's stage1 to MBR. A first attempt failed as follow:

# grub-install hd0
/dev/sda1 does not have any corresponding BIOS drive.

(hd0 was the boot disk for this system. You can find out yours from your grub.conf file.) To fix this problem, we just needed to add the "--recheck" option:

Support dm-crypt in Linux Kernel

When you compile your own kernel, in order to enable support for dm-crypt, please make sure you check

Device Drivers --->
     [*] Multiple devices driver support (RAID and LVM) --->
        <*> Device mapper support
        <*> Crypt target support

 

X Server on ATI Rage XL

Posted in

Kernel configuration

ATI Rage XL is a  very acient video card. The hardest part was to find the correct video driver for it. After much guess and trial and searching around, I believe the correct answer is "mach64".

I first tried to use some ati drivers, such as "fglrx" and "radeon". This would bring in ati-drivers. In order to ati-drivers, I had to set the following kernel options. I haven't removed the them to find out whether I can go without them.

mount: unknown filesystem type 'ext2'

Posted in

After we compiled and installed the new Linux kernel, we found that we could no longer mount the /boot from a shell command. The computer booted fine.

In /etc/fstab, we have

/dev/sda1               /boot           ext2    noauto,noatime         1 2

Install Gentoo from Minimum Installation CD (2009)

Posted in

We are going to install Gentoo on a very old PC, with an old graphic card, and only 384MB RAM. We want to run X on it. So we decided to use Xfce as the desktop of choice.

Preparation

Download the minimum installation CD from the Gentoo download site. Don't be afraid of the command line stuff. It's not that bad if you follow closely the Gentoo guide.

Xfce on Gentoo

Posted in

Once you have X properly installed and configured, just follow  The Xfce Configuration Guide to get Xfce up and running. It is easy and straightward.

SCIM on Xfce

It's now very easy to setup SCIM on Xfce. http://wiki.xfce.org/howto/scim tells you exactly what needs be done. http://en.gentoo-wiki.com/wiki/SCIM is another reference.

First, add the following to the /etc/make.conf

Postfix with TinyCDB on Gentoo

Posted in

If you want to enable cdb support for Postfix on Gentoo, "USE=cdb emerge -v postfix" will always pull in cdb, instead of tinycdb.

Another thing to note is that tinycdb conflicts with cdb.

In order to use tinycdb in place of cdb, you can first emerge tinycdb. This will unmerge cdb for you. So, if you had cdb installed, you must find out whether you have the green light for tinycdb. Run "equery d dev-db/cdb" to check for dependencies.

Setup DCC on Gentoo

Posted in

Install and configure DCC

The current stable version for DCC in Portage is 1.3.55. That's a bit too old. You can check so by doing "emerge -pv dcc".

To get the latst DCC software, goto http://www.rhyolite.com/dcc/, and then read http://www.rhyolite.com/dcc/INSTALL.html.

Now follow My other article Setup DCC to Use Remote Public Servers.

SpamAssassin and ClamAV for Postfix on Gentoo

Install Spamassassin, ClamAV, and Amavisd-new

You can just run emerge on these packages. Note that as of today, the mail-filter/spamassassin in Portage is still version 3.2.1, which is a bit old. If you want the latest, you can find the latest dev version from Gentoo mail-filter category packages page. To install the masked mail-filter/spamassassin-3.2.5, put the following line in /etc/portage/package.keywords:

Syndicate content