Gentoo

  • How to remove KDE from gentoo - list all packages in kde-base: for p in /var/db/pkg/kde-base/*; do echo $p|sed -e 's#.*/#=#'; done Uninstall / remove: for p in /var/db/pkg/kde-base/*; do echo $p|sed -e 's#.*/#=#'|xargs emerge -C; done
  • Intel HDA on Gentoo - Intel HDA is a specification, the successor to AC’97. Still requires codec. With Intel HD Audio built into kernel, with all codecs, you see the following in dmesg after boot: Advanced Linux Sound Architecture Driver Version 1.0.16. ... ALSA device li...
  • NTP daylight savings on Gentoo - So, you've followed the Gentoo Linux Localization Guide and the the NTP guide on the wiki... cp /usr/share/zoneinfo/Europe/London /etc/localtime In /etc/conf.d/clock: TIMEZONE="Europe/London" In /etc/conf.d/clock: CLOCK="UTC" CLOCK_SYSTOHC="y...
  • Gentoo Notes - Gentoo is the most recent distribution I’ve tried and I thoroughly recommend it. Gentoo have produced brilliant documentation - perhaps the best examples I’ve seen - so visit Gentoo.org before reading anything here. This page is simply my short cut to ...
  • Gentoo Links - Some links about Gentoo that may prove useful. HOWTO Use Portage Correctly – Information about portage, for example, use flag colour codes. Disk cryptography with dm-crypt – How to encrypt swap, tmp and other arbitrary locations. HOWTO Cr...
  • How to set DNS - I was having problems with my ISP’s DNS servers so I decided to set them manually to those from OpenDNS rather than relying on DHCP to set them automatically. Edit /etc/conf.d/net (on Gentoo Linux) and set the following lines: dhcp_eth0="nodns" dns_s...
  • Emerge notes - Notes on the gentoo emerge command. More notes on emerge, mainly about basic usage like installing and uninstalling packages, are in my Gentoo notes. See what is bringing in new packages If you run emerge with the --tree flag you will see a dependen...
  • Multiple versions of PHP on Gentoo - This document is a brief description of how to get two versions of PHP running on the same system, with different web sites configured to use different versions. I’ve only tried it with minor version i.e. 5.3 and 5.2, so I don’t know whether this will ...
  • How to fix "file not recognized" during emerge - Today I was updating my machine when there was a power cut. Following restoration of the power Firefox and Thunderbird would not compile, with the following error: /usr/lib64/libhunspell-1.3.so: file not recognized: File format not recognized Brows...
  • Equery notes - Some notes on equery, the package query tool provided on Gentoo systems by the gentoolkit package. More notes about equery can be found in my Gentoo notes. List all installed packages equery list equery list output From man equery: $ equery lis...
  • pure-ftpd - Notes on pure-ftpd, an FTP server, as installed on Gentoo. Installation emerge -av pure-ftpd Then edit /etc/conf.d/pure-ftpd and uncomment the following line: IS_CONFIGURED="yes" Start ftpd server with: /etc/init.d/pure-ftpd start Disk ful...
  • How to prevent a package being removed on depclean - Packages recorded in the world file (at /var/lib/portage/world) will not be removed when you clean the dependencies via emerge --depclean. Gentoo will add a package name to the world file when you install it explicitly via emerge. Dependencies automati...
  • Prevent network interface starting at boot - After updating my system, net.eth0 was started at boot despite the fact that it wasn't set to start at the boot runlevel. This was annoying because it would default to DHCP and take some time to time out, hence delaying the boot of my system. The rc-up...
  • Change your default Java VM - To see which VMs are available: java-config --list-available-vms Example: steph@localhost # java-config --list-available-vms The following VMs are available for generation-2: 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] *) Sun JDK 1....
  • Logitech QuickCam webcam on Gentoo - Enable OHCI and UHCI support and V4L2 support in kernel. Don’t enable v4l compatibility layer because it causes problems with emerging linux-uvc. Mic requires USB audio support in kernel. linux-uvc not needed, because cam supported by in-kernel drive...
  • ARCH is not set - If you get the following error when attempting to use emerge: # emerge [whatever] These are the packages that I would merge, in order: !!! ARCH is not set... Are you missing the /etc/make.profile symlink? !!! Is the symlink correct? Is your portage...
  • Gentoo CPU flags - Gentoo Linux has USE flags that tell each program what is supported by the system. Flags related to the processor / CPU now go in the CPU_FLAGS_X86 variable in /etc/make.conf. E.g: CPU_FLAGS_X86=”mmx mmxext sse sse2 sse3 ssse3” Determining CPU (...
  • Slime with SBCL and ASDF 2 on Gentoo - I’ve been using Slime recently, configured to use SBCL via (setq inferior-lisp-program "/usr/bin/sbcl") in ~/.emacs. Of my two Gentoo machines, slime on the x86 box was working fine, provided I masked >dev-lisp/sbcl-1.0.19 to prevent a “ASDF 2 is n...
  • OpenOffice help problem - The help system in OpenOffice.org 2.0 will not work if it was not compiled with java support, so you will receive the following message when opening the help: The help file for this topic is not installed. Recompile openoffice with the java USE fla...
  • Resizing boot partition to install grub 2 - After attempting to migrate to grub 2 on my gentoo machine, I hit the following problem when attempting to install it: bpc steph # grub2-install /dev/sda warning: your core.img is unusually large. It won't fit in the embedding area. (I also had som...
  • Current gcc removed by depclean - I found that one Gentoo depclean removed the version of gcc that my system was configured to use, which is required for compiling packages. I got the following output from emerge -a --depclean, after carelessly giving it the go-ahead: me@pc ~ $ sudo e...
  • No rule to make target `menuconfig` - If you receive the following error when trying to configure your kernel… bpc linux # make menuconfig make: *** No rule to make target `menuconfig'. Stop. …then you could have accidentally removed your kernel sources when you cleaned the package de...
  • How to downgrade a gentoo package - To downgrade a gentoo package you have to tell portage that the latest packages are not wanted. Do this by adding them to /etc/portage/package.mask. =www-client/mozilla-firefox-3.0.7 That will prevent firefox 3.0.7 being installed when you emerge f...
  • Wireless network problem with wpa_supplicant (wpa_cli) and ipw2200-firmware - If you are using wpa_supplicant with ipw2200-firmware and it refuses to connect with the following messages in /var/log/messages: Aug 30 13:37:02 localhost wpa_cli: interface eth1 DISCONNECTED Aug 30 13:37:02 localhost wpa_cli: interface eth1 DISCONN...
  • Clear disk space on Gentoo - Freeing up disk space on Gentoo can be complex. Read this wiki article for an introduction: Knowledge Base:Freeing disk space - Gentoo Wiki. Here’s what I do… Clean portage files Check usage: me@pc ~ $ sudo du -hs /var/tmp/portage 0 /var/tmp/portag...
  • Write and wall commands on Gentoo - The write and wall commands are provided by the sys-apps/util-linux package, but only if you have the tty-helpers use flag enabled. echo 'sys-apps/util-linux tty-helpers' >> /etc/portage/package.use Write Send a message to a specified user. ...
  • SSHFS on Gentoo - To install SSHFS on Gentoo you need to first compile your kernel with FUSE support: File systems ---> <*> FUSE (Filesystem in Userspace) support Next install the sshfs-fuse package: emerge -av sshfs-fuse You should now be able to “mo...
  • How to determine Gentoo version - See the command trail below to determine the following info: Gentoo release aka baselayout Kernel version bpc steph # cat /etc/gentoo-release Gentoo Base System release 2.2 bpc steph # uname -r 3.2.12-gentoo Or… bpc steph # equery list base...
  • Installing Gentoo Linux on an Acer Travelmate 8104WLMi - This is a rough guide for installing Gentoo Linux on an Acer Travelmate 8104 WLMi, a laptop/notebook from Acer's 8100 range. It is derived from a set of notes I took whilst attempting the installation myself, hence the reason it's written in the firs...
  • Installing apcupsd - apcupsd is a program for controlling APC UPS devices. Install on Gentoo as follows… Make sure that you have the computer plugged in to the UPS, a USB cable connecting the two, the power on and the computer booted! Install apcupsd: emerge -avDuN apcu...
  • MIME types - Some notes on MIME types in Gentoo linux (and presumably other distributions)... MIME types The app-misc/mime-types packages provides a list of mime types in /etc/mime.types (note that this package has a version number on the end - the exact version of...
  • Kernel compile udev/klibc problem after updating gentoo - Under construction localhost / # genkernel all * Gentoo Linux Genkernel; Version 3.3.11d * Running with options: all * Linux Kernel 2.6.12-gentoo-r10 for x86... * udev: >> Compiling... COMMAND: make j1 EXTRAS="extras/scsi_id extras/volume_id...

Last modified: 04/06/2007 Tags: (none)

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top