<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>I am LAZY bones ? &#187; gentoo</title>
	<atom:link href="http://luy.li/category/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://luy.li</link>
	<description>all linux</description>
	<lastBuildDate>Sun, 05 Sep 2010 14:50:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>gentoo下的pppoe拨号</title>
		<link>http://luy.li/2010/08/28/gentoo_pppoe/</link>
		<comments>http://luy.li/2010/08/28/gentoo_pppoe/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 12:59:23 +0000</pubDate>
		<dc:creator>bones7456</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[故障分析]]></category>

		<guid isPermaLink="false">http://luy.li/?p=1683</guid>
		<description><![CDATA[最近，无线路由坏了，所以只能先用自己的电脑拨adsl了。 其实这本也没什么，我的win7和ubuntu都只要稍微设置一下就OK了。 这里再稍微提一下ubuntu的pppoe设置：记得以前的版本（应该是6.xx的时候吧），NetworkManager是不直接支持pppoe的，还要自己手工设置，然后执行pon/poff来拨号，但是现在进步了，直接在NM里输一下用户名和密码就可以上了。 但是我的gentoo是用wicd来管理网络的，而wicd至今都还不支持pppoe，于是只能用原始的命令行来拨号了。 于是eix一搜，发现有个net-dialup/rp-pppoe，安上，看到有 pppoe-setup、pppoe-start、pppoe-stop。啥都不用说了，先pppoe-setup，再pppoe-start，本以为会很顺利，但是几次尝试都在最后一步出错了，而且提示的错误都没啥价值，不知道从何查起~ 正当我无计可施，想妥协安个NetworkManager的时候，忽然灵感一现，发现了可能的错误原因，那就是──内核模块。原来，之前我的gentoo内核基本上也是按需配置的，以前我一直都有路由器拨号，所以没有在内核选项里打开ppp的支持，才导致了这一郁闷的结果，哈哈，既然发现了可能的原因，那就好办了，make menuconfig 里面选上 Device Drivers &#8212;>Network device support &#8212;>PPP (point-to-point protocol) support 下面的所有项，编译完再重启。再 pppoe-start ，果然看到了 Connected!]]></description>
			<content:encoded><![CDATA[<p>最近，无线路由坏了，所以只能先用自己的电脑拨adsl了。<br />
其实这本也没什么，我的win7和ubuntu都只要稍微设置一下就OK了。<br />
这里再稍微提一下ubuntu的pppoe设置：记得以前的版本（应该是6.xx的时候吧），NetworkManager是不直接支持pppoe的，还要自己手工设置，然后执行pon/poff来拨号，但是现在进步了，直接在NM里输一下用户名和密码就可以上了。<br />
但是我的gentoo是用wicd来管理网络的，而wicd至今都还不支持pppoe，于是只能用原始的命令行来拨号了。<br />
于是eix一搜，发现有个net-dialup/rp-pppoe，安上，看到有 pppoe-setup、pppoe-start、pppoe-stop。啥都不用说了，先pppoe-setup，再pppoe-start，本以为会很顺利，但是几次尝试都在最后一步出错了，而且提示的错误都没啥价值，不知道从何查起~<br />
正当我无计可施，想妥协安个NetworkManager的时候，忽然灵感一现，发现了可能的错误原因，那就是──内核模块。原来，之前我的gentoo内核基本上也是按需配置的，以前我一直都有路由器拨号，所以没有在内核选项里打开ppp的支持，才导致了这一郁闷的结果，哈哈，既然发现了可能的原因，那就好办了，make menuconfig 里面选上 Device Drivers  &#8212;>Network device support  &#8212;>PPP (point-to-point protocol) support 下面的所有项，编译完再重启。再 pppoe-start ，果然看到了 Connected!</p>
]]></content:encoded>
			<wfw:commentRss>http://luy.li/2010/08/28/gentoo_pppoe/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>gentoo中使用dropbox</title>
		<link>http://luy.li/2010/03/31/gentoo_dropbox/</link>
		<comments>http://luy.li/2010/03/31/gentoo_dropbox/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 06:01:02 +0000</pubDate>
		<dc:creator>bones7456</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[网站收集]]></category>

		<guid isPermaLink="false">http://li2z.cn/?p=1426</guid>
		<description><![CDATA[Dropbox是一个网络在线存储服务，默认免费可以有2G的存储空间，客户端支持WIN、Linux、MAC等，甚至连没有X的环境都支持了，这个比较难得。 而且对于公开的文件还支持外链，挺不错的。 但是这个我在08年9月份注册以后，就没怎么用过了，呵呵。 然后，最近想着怎么备份我的gentoo，就又想到了这个，于是又开始折腾。 首先，肯定要在gentoo里先能用上Dropbox，这个其实不难，虽然portage里还没有dropbox，但是网上可以很方便地找到ebuild，比如这个。 加进自己的overlay（gentoo用户大多都有个自己的overlay吧？）以后，直接 emergr nautilus-dropbox 就装好了，完了以后，还需要把自己加入到 dropbox 这个组，登出再进来一次就可以打开dropbox了，输入账号密码就可以绑定机器了。默认同步会 ~/Dropbox 到网上，很不错。 接下来，就是把gentoo里需要备份的文件打包，然后放进这个目录下面，这个就很简单了，基本上就是一个tar命令放到cron里每天执行下就好了，我的如下： #!/bin/sh #gentoo备份脚本 &#160; LOCAL_PATH=&#34;/home/lily/Dropbox/gentoo.bak/&#34; #备份文件的前缀，默认自动按时间生成 PRE=`date +%F-%H-%M-%S` &#160; tar zcf &#34;$LOCAL_PATH/$PRE.tar.gz&#34; \ /usr/local/portage \ /etc/portage \ /etc/make.conf \ /usr/src/linux/.config \ /etc/hosts \ /etc/fstab \ /etc/locale.gen &#160; find &#34;$LOCAL_PATH&#34; -name &#34;*.gz&#34; -mtime +15 -exec rm &#123;&#125; \; 大家还能想出要备份什么文件的么？ PS： 如果你刚好还没注册Dropbox，又想试试的话，可以用我的这个推广链接注册，你我都会得到额外的250M空间（需要你安装了客户端并用它登录一次才有），现在通过推广，最多可以得到10G免费空间了，哈哈。]]></description>
			<content:encoded><![CDATA[<p>Dropbox是一个网络在线存储服务，默认免费可以有2G的存储空间，客户端支持WIN、Linux、MAC等，甚至连没有X的环境都支持了，这个比较难得。<br />
而且对于公开的文件还支持外链，挺不错的。<br />
但是这个我在08年9月份注册以后，就没怎么用过了，呵呵。<br />
然后，最近想着怎么备份我的gentoo，就又想到了这个，于是又开始折腾。<br />
首先，肯定要在gentoo里先能用上Dropbox，这个其实不难，虽然portage里还没有dropbox，但是网上可以很方便地找到ebuild，比如<a href="http://gpo.zugaina.org/AJAX/Ebuild/2010826">这个</a>。<br />
加进自己的overlay（gentoo用户大多都有个自己的overlay吧？）以后，直接 emergr nautilus-dropbox 就装好了，完了以后，还需要把自己加入到 dropbox 这个组，登出再进来一次就可以打开dropbox了，输入账号密码就可以绑定机器了。默认同步会 ~/Dropbox 到网上，很不错。<br />
接下来，就是把gentoo里需要备份的文件打包，然后放进这个目录下面，这个就很简单了，基本上就是一个tar命令放到cron里每天执行下就好了，我的如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#gentoo备份脚本</span>
&nbsp;
<span style="color: #007800;">LOCAL_PATH</span>=<span style="color: #ff0000;">&quot;/home/lily/Dropbox/gentoo.bak/&quot;</span>
<span style="color: #666666; font-style: italic;">#备份文件的前缀，默认自动按时间生成</span>
<span style="color: #007800;">PRE</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>F-<span style="color: #000000; font-weight: bold;">%</span>H-<span style="color: #000000; font-weight: bold;">%</span>M-<span style="color: #000000; font-weight: bold;">%</span>S<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">tar</span> zcf <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCAL_PATH</span>/<span style="color: #007800;">$PRE</span>.tar.gz&quot;</span> \
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>portage \
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage \
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>make.conf \
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>.config \
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts \
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab \
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>locale.gen
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$LOCAL_PATH</span>&quot;</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;*.gz&quot;</span> <span style="color: #660033;">-mtime</span> +<span style="color: #000000;">15</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>大家还能想出要备份什么文件的么？</p>
<p>PS： 如果你刚好还没注册Dropbox，又想试试的话，可以用我的这个<a href="https://www.dropbox.com/referrals/NTIxNTg2NTk">推广链接</a>注册，你我都会得到额外的250M空间（需要你安装了客户端并用它登录一次才有），现在通过推广，最多可以得到10G免费空间了，哈哈。</p>
]]></content:encoded>
			<wfw:commentRss>http://luy.li/2010/03/31/gentoo_dropbox/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>让ubuntu也来帮gentoo编译</title>
		<link>http://luy.li/2010/02/23/distccd/</link>
		<comments>http://luy.li/2010/02/23/distccd/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 07:29:43 +0000</pubDate>
		<dc:creator>bones7456</dc:creator>
				<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://li2z.cn/?p=1377</guid>
		<description><![CDATA[最近，貌似关于gentoo的新闻越来越多了。刚又听说，chrome OS的宿主系统已经从ubuntu转向gentoo了，其实，我对这个倒是一点都不感到意外，gentoo对于这种特定的应用，可定制性显然比ubuntu强很多，让我来选的话也会选gentoo的。只是觉得一向低调的gentoo被google这么一搞，也许以后都没有办法再低调了，哈哈。 好像有点扯远了，说到gentoo，大家肯定会想到无休止的编译，也确实，gentoo的编译是比较费时间的，尤其是在性能不怎么强悍的机器上，比如跑着chrome的上网本里。如果你另外有几台强悍些的台式机或者服务器的话，其实可以把编译的工作分担一部分给强悍的机器。这时候就要用到distcc了。 distcc是一个通过网络进行分布式编译的工具，它包含两部分，一部分是服务端程序 distccd，一部分是客户端程序 distcc。大致的原理就是，distcc连接一个或多个distccd，有编译任务的时候，distcc依次并行地把C或C++文件分发给各distccd，distccd调用它们本地的编译器编译出 .o 文件以后，再发回给distcc，另外，configure和link等工作还是由客户端自己来完成。 这样一来，对各服务端的系统也就有了一个额外的要求：必须保证服务端和客户端的gcc版本是一致的，否则出来的.o肯定link不了啊，呵呵。 如果你的客户端和服务端都装的是gentoo，采用的一样的架构和keywords，那其实这个要求还是很好满足的：两边都升到最新即可，这样配置方法可以参考官方文档。 但是如果你想用装着ubuntu、fedora、RHEL等发行版的服务端的话，就有点困难了，gentoo如果开了~x86的话，gcc的版本很容易就比这些发行版高出一大截了。 本文就是要解决这个问题的： 解决的思路，就是利用chroot，在各发行版里构建一套没有内核的gentoo系统（因为有kernel也用不着嘛），然后把里面的编译环境都升级到最新，再在里面安装运行distccd。 条件是你需要有server的root权限。 方法其实也不难，大致如下： #建立gentoo的根目录，这里最好有&#62;1.5G的硬盘空间，不然会不够用 mkdir gentoo cd gentoo #可以从 http://www.gentoo.org/main/en/mirrors.xml 这里选择速度快的mirror。 #下载你需要的架构的stage3 wget http://gentoo.cs.nctu.edu.tw/gentoo/releases/x86/current-stage3/stage3-i686-20100126.tar.bz2 #下载最新的portage树，其实不下也是可以的，不过后面emerge --sync的时候会慢些。 wget http://gentoo.cs.nctu.edu.tw/gentoo/snapshots/portage-latest.tar.bz2 #释放文件 tar xvf stage3-i686-20100126.tar.bz2 -C . tar xvf portage-latest.tar.bz2 -C usr/ #清理现场 rm stage3-i686-20100126.tar.bz2 portage-latest.tar.bz2 然后，为了方便起见，在当前目录写一个gogentoo的脚本，内容如下，加上可执行权限： #!/bin/bash &#160; &#91;&#91; $UID == 0 &#93;&#93; &#124;&#124; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>最近，貌似关于gentoo的新闻越来越多了。刚又听说，<a href="http://imtx.cn/archives/1429.html">chrome OS的宿主系统已经从ubuntu转向gentoo</a>了，其实，我对这个倒是一点都不感到意外，gentoo对于这种特定的应用，可定制性显然比ubuntu强很多，让我来选的话也会选gentoo的。只是觉得一向低调的gentoo被google这么一搞，也许以后都没有办法再低调了，哈哈。<br />
好像有点扯远了，说到gentoo，大家肯定会想到无休止的编译，也确实，gentoo的编译是比较费时间的，尤其是在性能不怎么强悍的机器上，比如跑着chrome的上网本里。如果你另外有几台强悍些的台式机或者服务器的话，其实可以把编译的工作分担一部分给强悍的机器。这时候就要用到distcc了。<br />
distcc是一个通过网络进行分布式编译的工具，它包含两部分，一部分是服务端程序 distccd，一部分是客户端程序 distcc。大致的原理就是，distcc连接一个或多个distccd，有编译任务的时候，distcc依次并行地把C或C++文件分发给各distccd，distccd调用它们本地的编译器编译出 .o 文件以后，再发回给distcc，另外，configure和link等工作还是由客户端自己来完成。<br />
这样一来，对各服务端的系统也就有了一个额外的要求：必须保证服务端和客户端的gcc版本是一致的，否则出来的.o肯定link不了啊，呵呵。<br />
如果你的客户端和服务端都装的是gentoo，采用的一样的架构和keywords，那其实这个要求还是很好满足的：两边都升到最新即可，这样配置方法可以参考<a href="http://www.gentoo.org/doc/en/distcc.xml">官方文档</a>。<br />
但是如果你想用装着ubuntu、fedora、RHEL等发行版的服务端的话，就有点困难了，gentoo如果开了~x86的话，gcc的版本很容易就比这些发行版高出一大截了。<br />
本文就是要解决这个问题的：</p>
<p><strong>解决的思路</strong>，就是利用chroot，在各发行版里构建一套没有内核的gentoo系统（因为有kernel也用不着嘛），然后把里面的编译环境都升级到最新，再在里面安装运行distccd。<br />
<strong>条件</strong>是你需要有server的root权限。<br />
<strong>方法</strong>其实也不难，大致如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#建立gentoo的根目录，这里最好有&gt;1.5G的硬盘空间，不然会不够用</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> gentoo
<span style="color: #7a0874; font-weight: bold;">cd</span> gentoo
<span style="color: #666666; font-style: italic;">#可以从 http://www.gentoo.org/main/en/mirrors.xml 这里选择速度快的mirror。</span>
<span style="color: #666666; font-style: italic;">#下载你需要的架构的stage3</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>gentoo.cs.nctu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>gentoo<span style="color: #000000; font-weight: bold;">/</span>releases<span style="color: #000000; font-weight: bold;">/</span>x86<span style="color: #000000; font-weight: bold;">/</span>current-stage3<span style="color: #000000; font-weight: bold;">/</span>stage3-i686-20100126.tar.bz2
<span style="color: #666666; font-style: italic;">#下载最新的portage树，其实不下也是可以的，不过后面emerge --sync的时候会慢些。</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>gentoo.cs.nctu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>gentoo<span style="color: #000000; font-weight: bold;">/</span>snapshots<span style="color: #000000; font-weight: bold;">/</span>portage-latest.tar.bz2
<span style="color: #666666; font-style: italic;">#释放文件</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvf stage3-i686-20100126.tar.bz2 <span style="color: #660033;">-C</span> .
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvf portage-latest.tar.bz2 <span style="color: #660033;">-C</span> usr<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;">#清理现场</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> stage3-i686-20100126.tar.bz2 portage-latest.tar.bz2</pre></div></div>

<p>然后，为了方便起见，在当前目录写一个gogentoo的脚本，内容如下，加上可执行权限：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$UID</span> == <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Must be root to go gentoo.&quot;</span>; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf etc<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> proc proc proc<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> <span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #000000; font-weight: bold;">/</span>dev dev<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">chroot</span> . <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span></pre></div></div>

<p>然后执行 sudo ./gogentoo 就进入gentoo环境了。进去以后执行：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">env-update
<span style="color: #7a0874; font-weight: bold;">source</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile
&nbsp;
<span style="color: #666666; font-style: italic;">#添加 ~x86 的keywords，请按需修改成你自己的。</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>make.conf
<span style="color: #666666; font-style: italic;">#更新系统</span>
emerge <span style="color: #660033;">--sync</span>
emerge <span style="color: #660033;">-avuDN</span> world
<span style="color: #666666; font-style: italic;">#完成以后，一般还需要gcc-config到最新的gcc版本。然后清理系统</span>
emerge <span style="color: #660033;">--depclean</span> <span style="color: #660033;">-av</span>
<span style="color: #666666; font-style: italic;">#最后安装distcc</span>
emerge distcc</pre></div></div>

<p>到了这里，服务端的软件环境就算准备完毕了，你可以对比下两边的</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">--version</span></pre></div></div>

<p>的输出，看看是否完全一致。<br />
不过，如果你在chroot环境下，直接执行 /etc/init.d/distccd start 来启动服务的话，多半是会遇到错误的，会提示什么udev有问题，我也没深究。不过既然不让启动服务的话，我手工启动总好了吧，于是执行：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">distccd <span style="color: #660033;">--port</span> <span style="color: #000000;">3632</span> <span style="color: #660033;">--log-file</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>distccd <span style="color: #660033;">--log-level</span> critical <span style="color: #660033;">--allow</span> client的IP <span style="color: #660033;">-N</span> <span style="color: #000000;">15</span></pre></div></div>

<p>这样启动的distccd也照样能工作，哈哈。<br />
以上步骤在 i686-pc-linux-gnu 的gentoo client 和 ubuntu 9.10 的server上试验通过。理论上这样做好的gentoo，应该是可以从ubuntu打包出来，到其他发行版直接用的，这样就很方便做出一个灰常强大的编译集群了，哈哈，改天试试看。</p>
<p>接下来就是配置你的client来使用这个server了，这个就和普通的没区别了，这里也先不讨论了，如有必要，另外再写一篇就好，呵呵。</p>
]]></content:encoded>
			<wfw:commentRss>http://luy.li/2010/02/23/distccd/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>perl升级引起的gentoo编译错误</title>
		<link>http://luy.li/2010/02/17/perl_update/</link>
		<comments>http://luy.li/2010/02/17/perl_update/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:41:42 +0000</pubDate>
		<dc:creator>bones7456</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[流水帐]]></category>

		<guid isPermaLink="false">http://li2z.cn/?p=1370</guid>
		<description><![CDATA[最近，gentoo portage里的perl从 5.8.8 版本升到了 5.10.1 ，导致在编译一些其他包的时候，出现一些莫名的错误，而且这些错误都和perl有关。 例如，在 emerge gnome-extra/gnome-screensaver-2.28.3 的时候，就会出现： checking for XML::Parser&#8230; configure: error: XML::Parser perl module is required for intltool 这样的错误。 解决办法是emerge一个 perl-cleaner，然后执行： sudo perl-cleaner --all 把perl相关的模块和文件都检查并修正一遍，然后再编译其他包，就不会出错了。]]></description>
			<content:encoded><![CDATA[<p>最近，gentoo portage里的perl从 5.8.8 版本升到了 <a href="http://packages.gentoo.org/package/dev-lang/perl">5.10.1</a> ，导致在编译一些其他包的时候，出现一些莫名的错误，而且这些错误都和perl有关。<br />
例如，在 emerge gnome-extra/gnome-screensaver-2.28.3 的时候，就会出现：</p>
<blockquote><p>checking for XML::Parser&#8230; configure: error: XML::Parser perl module is required for intltool</p></blockquote>
<p>这样的错误。<br />
解决办法是emerge一个 perl-cleaner，然后执行：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> perl-cleaner <span style="color: #660033;">--all</span></pre></div></div>

<p>把perl相关的模块和文件都检查并修正一遍，然后再编译其他包，就不会出错了。</p>
]]></content:encoded>
			<wfw:commentRss>http://luy.li/2010/02/17/perl_update/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>去掉wget烦人的 “eta(英国中部时间)” 提示</title>
		<link>http://luy.li/2010/02/11/wget_fix_eta/</link>
		<comments>http://luy.li/2010/02/11/wget_fix_eta/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 04:10:32 +0000</pubDate>
		<dc:creator>bones7456</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[流水帐]]></category>

		<guid isPermaLink="false">http://li2z.cn/?p=1356</guid>
		<description><![CDATA[gentoo 里的 wget ，从1.12版本开始，就一直有个不影响功能的小毛病：由于中文翻译的失误，进度提示的时候，会被拉成很多行。原因就是原来英文的ETA这3个字母，被翻译成了 “eta(英国中部时间)” 这么长，所以引起断行出错。 zh_CN.po 里，其实还是有说明的，只不过翻译人员疏忽了。如下： #. TRANSLATORS: &#34;ETA&#34; is English-centric, but this must #. be short, ideally 3 chars. Abbreviate if necessary. #: src/progress.c:805 #, c-format msgid &#34; eta %s&#34; msgstr &#34; eta(英国中部时间) %s&#34; 既然这个小毛病不影响功能，之前也就没太在意，一直在等上游更新，不过到了 1.12-r1 版本，仍旧还有这个毛病，我也渐渐的看不下去了，就决定动手自己改掉它了。 方法也很简单，用之前我介绍过的命令就可以了，具体如下： msgunfmt /usr/share/locale/zh_CN/LC_MESSAGES/wget.mo -o - &#124; sed 's/eta(英国中部时间)/ETA/' &#124; msgfmt - -o /tmp/zh_CN.mo sudo cp [...]]]></description>
			<content:encoded><![CDATA[<p>gentoo 里的 wget ，从1.12版本开始，就一直有个不影响功能的小毛病：由于中文翻译的失误，进度提示的时候，会被拉成很多行。原因就是原来英文的ETA这3个字母，被翻译成了 “eta(英国中部时间)” 这么长，所以引起断行出错。<br />
zh_CN.po 里，其实还是有说明的，只不过翻译人员疏忽了。如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#. TRANSLATORS: &quot;ETA&quot; is English-centric, but this must</span>
<span style="color: #666666; font-style: italic;">#. be short, ideally 3 chars.  Abbreviate if necessary.</span>
<span style="color: #666666; font-style: italic;">#: src/progress.c:805</span>
<span style="color: #666666; font-style: italic;">#, c-format</span>
msgid <span style="color: #ff0000;">&quot;  eta %s&quot;</span>
msgstr <span style="color: #ff0000;">&quot; eta(英国中部时间) %s&quot;</span></pre></div></div>

<p>既然这个小毛病不影响功能，之前也就没太在意，一直在等上游更新，不过到了 1.12-r1 版本，仍旧还有这个毛病，我也渐渐的看不下去了，就决定动手自己改掉它了。<br />
方法也很简单，用<a href="http://luy.li/2007/10/25/mo%e6%96%87%e4%bb%b6%e7%9a%84%e6%89%93%e5%bc%80%e6%96%b9%e6%b3%95%e5%9c%a8linux%e4%b8%8b%e5%bc%80%e5%8f%91%e5%a4%9a%e8%af%ad%e8%a8%80%e8%bd%af%e4%bb%b6%e5%bf%85%e5%a4%87%e7%9f%a5%e8%af%86/">之前我介绍过的命令</a>就可以了，具体如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">msgunfmt <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>locale<span style="color: #000000; font-weight: bold;">/</span>zh_CN<span style="color: #000000; font-weight: bold;">/</span>LC_MESSAGES<span style="color: #000000; font-weight: bold;">/</span>wget.mo <span style="color: #660033;">-o</span> - <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/eta(英国中部时间)/ETA/'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">msgfmt</span> - <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zh_CN.mo
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zh_CN.mo <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>locale<span style="color: #000000; font-weight: bold;">/</span>zh_CN<span style="color: #000000; font-weight: bold;">/</span>LC_MESSAGES<span style="color: #000000; font-weight: bold;">/</span>wget.mo</pre></div></div>

<p>搞定。</p>
]]></content:encoded>
			<wfw:commentRss>http://luy.li/2010/02/11/wget_fix_eta/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
