z·eeki·sh

tech log on gentoo, linux, and random stuff

Archive for the ‘gentoo’ Category

gentoo prefix/windows

leave a comment »

I’m recently entertaining the idea of switching to windows 7 with some sort of linux on top of the SUA infrastructure on my tablet. Currently I can see only 3 options, suacommunity.com, debian-interix.net, or gentoo prefix/windows.

suacommunity.com: packages are not up to date, and it seems like a one-man job (rodney on the forum). don’t quite like its package management

debian-interix.net: seems promising but doesn’t have a coreutils build yet (packages are on par with suacommunity).

gentoo prefix: the 20090619 iso doesn’t work on win 7. good news is a new unified release is coming with explicit win 7 support:
http://archives.gentoo.org/gentoo-alt/msg_0c118e18183f92789e215b20850ca602.xml
check out the pdf draft in the link above. don’t know how many of the packages in portage have the x86-interix keyword though. we’ll see…


Just skimmed through the gentoo/alt mail archive of last several months and it seems the gentoo port is taking an approach of making the tool-chain working under interix. AFAICT the debian approach is to get things compile without fixing the toolchain itself. Now that’s something. I’ll keep my fingers crossed. (but getting distcc to work on interix could be a problem…)


2009-08-28 Fri:
seems the dvd iso got silently uploaded to the official site. get it from here

Advertisements

Written by zsh

August 25, 2009 at 1:39 am

Posted in gentoo

Tagged with , , ,

gcc 4.4 crashes mplayer on dts audio

leave a comment »

with error message:

MPlayer interrupted by signal 11 in module: init_audio_codec

have to switch gcc profile back to 4.3.3

Written by zsh

August 21, 2009 at 2:33 pm

Posted in gentoo

Tagged with , , ,

sys-auth/pam_ssh and net-misc/keychain

with one comment

I’ve been using gentoo’s net-misc/keychain for a while now for password-less ssh. I followed gentoo doc’s recommendation and added to my ~/.zlogin the following lines:

  
keychain id_rsa id_rsa_nopass --quiet source ~/.keychain/$HOST-sh

The only beef I’m having with this setup is that after each reboot, I have to type in both my password (for login) and the keyphrase of my ssh identity file (b/c keychain), which is kind of repetitive, if you know what I mean ;)

So there’s a little “aha!” moment when I found pam_ssh in today’s updates on gentoo-portage. In fact, it’s as simple as adding ssh into the USE flags of sys-auth/pambase and emerge -1 pambase. No more repetitive password entries!

Written by zsh

July 27, 2009 at 10:40 pm

Posted in /etc, gentoo

Tagged with , ,

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 , ,