z·eeki·sh

tech log on gentoo, linux, and random stuff

Archive for the ‘gentoo’ Category

lafilefixer, kexec

with one comment

have been troubled by the missing libogg.la for a while (sox never builds). google ‘libogg.la, gentoo’ points to a heated discussion in bugs.gentoo.org of whether or .la files should be included — apparently somebody intentionally removed it in the libogg build. No Comment! but I guess someone else stated my opinion quite clearly: a broken build a week is the best way to piss off end users. Anyway in that same thread there’s a fix: just `emerge lafilefixer` and do `lafilefixer –justfixit`

now onto a different topic. I’ve included kexec in the past several kernel builds, but never looked into it. It’s actually quite easy to use. just `emerge kexec-tools`, mod `/etc/conf.d/kexec`, and `rc-update add kexec boot`. Now the `reboot` command will just reload the kernel image specified in the conf file without rebooting the physical machine. (clearly, removing the kexec service shall return you to a normal `cold’ reboot)

Written by zsh

July 25, 2009 at 11:37 am

Posted in /etc, gentoo

using Creative WebCam Notebook (041e:401f) in Skype

leave a comment »

  
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

needs media-libs/libv4l

cf. this link

Written by zsh

July 20, 2009 at 10:02 pm

hal-0.5.12_rc1-r5 breaks X

with one comment

well actually it’s because the new default /etc/dbus-1/system.d/hal.conf doesn’t allow x to query input devices (probably). have to downgrade/upgrade again to just get the old default conf file.

never liked hal. why did i pull it in in the first place again??

Written by zsh

May 29, 2009 at 4:00 pm

Posted in gentoo

Tagged with ,

the whereabouts of kernel module configuration

leave a comment »

The salient point: just play with files inside /etc/modprobe.d/, as everything else is meant for backward compatibility.

Well this probably happens only to a dated gentoo installation where old conf files get orphaned. I was about to set some kernel module autoloading parameters, and was a bit confused seeing this:

$ ls -lad /etc/mod*
-rw-r--r-- 1 root root 3587 May  2  2008 /etc/modprobe.conf
drwxr-xr-x 2 root root  208 Mar 14 19:50 /etc/modprobe.d/
-rw-r--r-- 1 root root 2955 Dec  6  2007 /etc/modules.conf
drwxr-xr-x 2 root root   72 Jun  5  2008 /etc/modules.d/
$

The .conf files refer to two scripts, modules-update and update-modules, and the former doesn’t even exist. A man of the latter, however, clarifies everything. Here’s an excerpt from UPDATE-MODULES(8)

DESCRIPTION
       update-modules is a simple tool to manage the module config files found
       in the /etc/ directory.

       The old Linux module utilities use a single file for all their configu-
       ration.  This makes it difficult for packages to dynamically add infor-
       mation about their own modules.

       update-modules makes the dynamic addition of information easier by gen-
       erating  the  single  configuration file from the many files located in
       /etc/modules.d/.  All files in that directory are assembled together to
       form /etc/modules.conf.

       Newer Linux module utilities include support automatically for a direc-
       tory of configuration files in /etc/modprobe.d/.  However, to  maintain
       backwards  compatibility with packages that do not yet support this, we
       still need to assemble the contents of  /etc/modules.d/  and  /etc/mod-
       probe.d/  and produce the corresponding /etc/modules.conf and /etc/mod-
       probe.conf.

       Also, when  requested,  it  is  also  possible  to  generate  /etc/mod-
       ules.devfs.

Written by zsh

March 15, 2009 at 7:25 am

Posted in /etc, gentoo

Tagged with , ,