Posts

Compile kernel as a normal user

I just heard this trick from my friend, rae . It is quite easy: make a dir, cd into it cp /boot/config .config (suppose you use "make install" to install kernel, :-D) make -C /usr/src/linux O=$PWD oldconfig , (and optionally make menuconfig to tweak a little bit) make && sudo make modules_install && sudo make install The trick is on step 3, ;) PS: However, there is a problem with this approach. My original intention is to avoid touching the sources in /usr/src/linux and running as root. But in fact, before you emerge kernel modules such as x11-drm, you still have to run 'make modules_prepare' in /usr/src/linux as root. Even I have used this command: sudo env KBUILD_OUTPUT=/home/zhangle/build emerge x11-drm What's worse, the hints given in the output of the above command can't solve the problem: * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /home/zhangle/build * Found sources for kernel version: *

制作中文可以拷贝的PDF

本来如果严格按照 中文Gentoo wiki 上的 这篇文章 来做的话应该是没有问题的,这篇文章使用的字符集是GBK。 不过我曾经按照及永刚大哥的 一篇文章 配置过UTF-8环境下的teTeX。 前者的主要文件放在/usr/local/share里,后者放在$HOME里。有些文件是重复的,这就有个取舍的问题,到底用的是哪个。 生成可以拷贝中文的pdf要用dvipdfmx,这个都有共识。 可是还要配置两个文件,一个是UGBK.sfd,一个是cid-x.map。 这次就栽在了后一个文件上,没有搞清楚用的是哪个。 我用strace分析了dvipdfmx运行时打开的配置文件,发现dvipdfmx依据的是$HOME里的cid-x.map。 strace dvipdfmx test.dvi 2>&1 | grep cid-x.map 然后我又发现了 FerretL的 这篇文章 ,原来有个命令可以查的 kpsewhich cid-x.map

今天重温了去年与一个Fedora Core使用者的吵架贴

有一点感悟 虽然他对Gentoo的某些指责有悖事实,但是有些话还是有些道理 以前谈到Gentoo的好,文档丰富是必须要夸赞的 可是我现在却突然感觉到 与其说那是我们的优点,倒不如说那是我们赖以生存的根本

#gentoo-cn on freenode

I registered #gentoo-cn several days ago. I am still a irc newbie op. But I am trying my best to catch up. I am playing with supybot . It is interesting. I will try to write some plugins for it. That will be more interesting! Yesterday Alastair Tse dropped in #gentoo-cn, I asked him if there are some better irc bot. To my surprise, he is the maintainer of supybot. Such a coincidents! hehe. PS: The number of people hanging on #gentoo-cn reached 23 yesterday, although 2-3 of them are bots, :).

Screenshot

Image
My friend midx's desktop

Fwd: zh_cn GWN 20060731

WOO~~ Thanks to ALL members of zh_CN GWN translations team!!!! This is not just my honur, but also everyone else's honor!!! Thank you!!! ---------- Forwarded message ---------- From: Chris Gianelloni Date: Aug 8, 2006 11:26 PM Subject: Re: zh_cn GWN 20060731 To: Zhang Le Cc: gwn-feedback AT gentoo DOT org , neysx AT gentoo DOT org On Sun, 2006-08-06 at 19:23 +0800, Zhang Le wrote: > Please help to commit, thanks! > > -- > Zhang Le, Robert They're now committed to the tree. I'm going to put you in touch with Xavier Neys, who is the Gentoo Documentation Project lead. He (or someone from his team) is going to mentor you so you can become a Gentoo staff member. This will allow you to commit your translations directly, as you and your team have been doing an excellent job, and I'm just holding you guys back now. -- Chris Gianelloni Release Engineering - Strategic Lead x86 Architecture Team Games - Developer Gentoo Linux -- Zhang Le, Robert Linux Engineer/Train

Gentoo takes you a lot of time?

I saw someone expressed this concern about Gentoo in a Chinese Linux forum. His original word is "Gentoo and LFS are only suitable for those who have a lot of time and a good machine". I replied him. Here are my main points: Maybe inevitable at the beginning, especially for Chinese users. Lots of apps need to be tuned, configured. But not necessarily afterwards, especially if the number of packages on your systme remains unchanged or fluctuates not so much. Your time maybe wasted under probably only one situation, i.e. you need a software desperately, but you haven't installed it yet. But if someone really often faces this situation, my suggestion to him is to choose something else, be it Debian or Arch. Also, I expressed one of my speculations of the future: Software compiling speed and the complexity of software, which increases faster? I think it's the former. :) But will OOo be compiled in minutes someday in the future? I am not sure.