Gentoo

Problem after Upgrading GCC from 4.3.4 to 4.4.3 on Gentoo

After I upgraded GCC, revdep-rebuild complained about missing "-lstdc++". Searching all over the places, and I finally came to see this in a "config.log" file:

gcc-config error: Could not run/locate "i686-pc-linux-gnu-gcc"

Then I ran:

# gcc-config -l
 * gcc-config: Active gcc profile is invalid!
 [1] i686-pc-linux-gnu-4.4.3

To fix this problem, simple do:

dev-java/sun-jdk-1.6.0.17 (masked by: dlj-1.1 license(s))

After upgrading the portage to 2.1.7, I started to get things like below when running emerge:

Install KeepassX-0.4.1 on Gentoo

At the moment, there is a bug in keepassx-0.4.1 that prevents keepassx from installing. The problem is that qt3support doesn't have the version that matches the rest of the qt-xx packages. And as a result, we see ebuild "blocks" that we don't have a way to satisfy the dependencies.

It turned out that the solution is quiet simple. As stated in the bug report, qt3support is not needed at all. So all we need to do is to create a custom ebuild that doesn't depend on qt3support.

Accidentally Removed (Unmerge) Python

Without python, gentoo's portage is totally dead.

Here is a thread of discussion on how fix the problem. The particular solution is here: http://forums.gentoo.org/viewtopic-p-4669397.html#4669397

Detect System Hardware

On Gentoo, run

# emerge -v lshw
# lshw

Then you will see a nicely structured hardware report.

For more tools, reference this page http://www.gentoo-wiki.info/Index:Hardware

 

 

Run X on Gentoo with nVidia GeForce FX 5200

Getting X up and running

Read all of the guides below carefully and follow the instructions:

Follow them to configure the kernel, and then install the xorg and video drivers.

x11-drivers/nvidia-drivers on Gentoo

When trying to build xorg-server with an nvidia video card, we got:

 

/dev/sda1 does not have any corresponding BIOS drive

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

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.