Posts

make awstats support Gentoo

It makes me very uncomfortable that awstat-6.7-r2 in tree does not have support for Gentoo So I made a little patch and a little icon. http://tinyurl.com/5dj2x3 I have already tested it on www.gentoo-cn.org . It works. Hope upstream would accept it soon.

portage-2.2 preserve-libs FEATURES explained

Maybe I am not the right person to write about it. But I felt the necessity to write about it. So I will just write something about preserve-libs, leaving other FEATURES to more competent people. Portage-2.2 has already entered unstable tree. Many people has started using it. It has many new features, like preserve-libs, sets, license filter and so on. Please check README and RELEASE-NOTES for a complete list. I will only talk about preserve-libs. To understand why we need it, we have to know some background information. First of all, applications are not built from scratch. Any non trivial apps use lot of libraries. In GNU/Linux, most of them are shared libraries, i.e. .so files. You can use `ldd /usr/bin/mplayer` to check what shared libraries an app has been linked to, replace mplayer to whatever program you'd like to check. Shared libraries have versions. E.g. /usr/lib/libavformat.so.51, here 51 denotes its version. After upgrading, the version number may change. E.g. /usr/lib/...

Some updates (docs, loongson, as-needed)

1. Documentation get updates regularly as usual. http://www.gentoo-cn.org/gitweb/?p=gentoo-cn;a=summary 2. Our table now can distinguish between file owner and file last updater when the file in question need to be updated. If the last updater is the owner, there will be an email link on the name; otherwise, there will be no link, but the name will be in red. The name is in the last column. http://www.gentoo-cn.org/trads/ http://rubyurl.com/0BD4 3. I will get my loongson 2f box soon, :-D 4. Just fixed an as-needed problem: http://bugs.gentoo.org/show_bug.cgi?id=225117 http://www.gentoo.org/proj/en/qa/asneeded.xml

Old story

Although I don't know the direct cause of council's decision this time, it reminds me of an old story. http://r0bertz.blogspot.com/2007/01/be-careful-when-you-are-on-paludis.html Quote some Diego's words: Don’t think we woke up this morning and decided to get rid of any developer. We considered this for a quite long time. Over all, I think the decision was took after a too long time. You can criticise, you can joke, but if the people you joke upon don’t laugh with you at the joke, then apologise and stop it!

Some updates about loongson

1. Gcc's support for loongson is coming: http://gcc.gnu.org/ml/gcc/2008-04/msg00551.html 2. Lemote Loongson 2F box's release has been postponed to June 30. http://202.201.0.147/Html/inner/2008-4/11/201803589.html For those who want to order 2F box: I have talked to 2F box's product manager, he recommended sending email to sales@lemote.com directly. That's it, ;) PS: Lemote has Loongson laptop, too.

2008.0_beta1 is ready, so is the accompanying Simplified Chinese handbook

Releases: http://mirror.mcs.anl.gov/pub/gentoo/releases/x86/2008.0_beta1 Handbooks: http://www.gentoo.org/doc/zh_cn/handbook/handbook-x86.xml http://www.gentoo-cn.org/gitweb/?p=gentoo-cn;a=summary http://cia.vc/stats/author/r0bertz Enjoy!

How to ssh-add in cron job

EDIT: updated link in this article. ssh-add can let your ssh-agent remember the passphrase of your ssh secret key, so that you don't need to type any password when loging into a remote machine. However, it is an interactive program, you can't call it in a cron job. Even if you can, you will expose your passphrase in a file, which is not safe. The solution is actually very easy. You don't really need to ssh-add. All you need to do is letting ssh know some environment variable. First of all, I recommend you set up ssh-agent forwarding with GNU screen following instruction here: http://www.deadman.org/sshscreen.php Then in your cron job script, source ${HOME}/bin/fixssh first. Done! Enjoy ;)