<?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>Technical LeoLo &#187; Gentoo</title>
	<atom:link href="http://blog.leolo.cc/topics/os/gentoo-os/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leolo.cc</link>
	<description>My Learning note</description>
	<lastBuildDate>Thu, 12 Mar 2009 08:58:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gentoo的套件透過emerge更新時的注意事項</title>
		<link>http://blog.leolo.cc/2008/04/04/10/</link>
		<comments>http://blog.leolo.cc/2008/04/04/10/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 03:46:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/04/04/gentoo%e7%9a%84%e5%a5%97%e4%bb%b6%e9%80%8f%e9%81%8eemerge%e6%9b%b4%e6%96%b0%e6%99%82%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85/</guid>
		<description><![CDATA[根據CD長輩的教誨首先
emerge -DuN world
接著
emerge &#8211;depclean
最後
revdep-rebuild
這期間如有套件出錯，則
emerge &#8211;oneshot 套件
這樣可重編一次該套件，卻不把該套件加入world list裡。
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/04/04/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPv6, openssh, and tcp_wrappers</title>
		<link>http://blog.leolo.cc/2008/04/04/9/</link>
		<comments>http://blog.leolo.cc/2008/04/04/9/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 03:37:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tcp_wrappers]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2008/04/04/ipv6-openssh-and-tcp_wrappers/</guid>
		<description><![CDATA[在一台新重灌好的Gentoo server裡編了IPv6的支援，在開啟openssh時，會有
refused connect from 0.0.0.0
這樣的error message出現，tcp_wrappers的hosts.deny運作也不太正常。後來找到解決方法為，讓openssh只使用IPv4，在/etc/ssh/sshd_config裡做了以下設定即可
AddressFamily inet
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2008/04/04/9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不小心把python移除掉，導致emerge壞掉不能用</title>
		<link>http://blog.leolo.cc/2007/10/12/8/</link>
		<comments>http://blog.leolo.cc/2007/10/12/8/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 02:19:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[unmerge]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2007/10/12/%e4%b8%8d%e5%b0%8f%e5%bf%83%e6%8a%8apython%e7%a7%bb%e9%99%a4%e6%8e%89%ef%bc%8c%e5%b0%8e%e8%87%b4emerge%e5%a3%9e%e6%8e%89%e4%b8%8d%e8%83%bd%e7%94%a8/</guid>
		<description><![CDATA[手賤不小心把python unmerge了，所以emerge就壞掉不能用了。手動把python下載回來安裝後還是無效。再看了這篇 Manually fixing broken portage installations 仍然無效。最後讓我google到了這篇，才解決了這個問題。解決方式如下：

# wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tar.bz2# cd Python-2.4.4# ./configure &#8211;with-fpectl &#8211;infodir=/usr/share/info/ &#8211;mandir=/usr/share/man# make# make install prefix=/usr# rm /usr/bin/python 2&#62;/dev/null# ln -s /usr/bin/python2.4 /usr/bin/python2# ln -s /usr/bin/python2 /usr/bin/python
 然後再重新emerge python一次。
]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2007/10/12/8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>針對特定package給予USE flag</title>
		<link>http://blog.leolo.cc/2007/10/06/7/</link>
		<comments>http://blog.leolo.cc/2007/10/06/7/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 01:34:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2007/10/06/%e9%87%9d%e5%b0%8d%e7%89%b9%e5%ae%9apackage%e7%b5%a6%e4%ba%88use-flag/</guid>
		<description><![CDATA[例如：要單獨為net-analyzer/net-snmp這個package加上lm_sensors這個USE flag
echo 『net-analyzer/net-snmp lm_sensors』 &#62;&#62; /etc/portage/package.use

]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2007/10/06/7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD帳號密碼轉移至Linux</title>
		<link>http://blog.leolo.cc/2006/08/10/6/</link>
		<comments>http://blog.leolo.cc/2006/08/10/6/#comments</comments>
		<pubDate>Wed, 09 Aug 2006 21:48:00 +0000</pubDate>
		<dc:creator>leolo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://leolo.wordpress.com/2006/08/10/freebsd%e5%b8%b3%e8%99%9f%e5%af%86%e7%a2%bc%e8%bd%89%e7%a7%bb%e8%87%b3linux/</guid>
		<description><![CDATA[FreeBSD的帳號密碼及其他資訊都存在master.passwd，Linux則分別存在passwd及shadow中。
master.passwd@FreeBSD
帳號：密碼：UID：GID：Login Class：Change：Expire：Full Name：家目錄：Login SHELL

Login Class：幾乎沒在用了,通常是空的
Change：強迫使用者改密碼的時間週期, 0 表示不設定
Expire：使用者帳號的使用期限, 0 表示不設定

passwd@Linux
帳號：密碼：UID：GID：Full Name：家目錄：Login SHELL
FreeBSD比Linux多了三個欄位
所以我們將那三個欄位捨棄，並把密碼那欄設為x，因為Linux的密碼是存在shadow
cat master.passwd.bsd &#124; awk -F":" '$3&#62;=1002&#38;&#38;$3 passwd.linux
shadow@Linux
帳號：密碼：3：4：5：6：7：8：9

3.last password change
4.days until change allowed
5.days before change required
6.days warning for expiration
7.days before account inactive
8.date when account expires
9.reserved for future use

接著處理shadow
cat master.passwd.bsd &#124; awk -F":" '$3&#62;=1002&#38;&#38;$3 shadow.linux
再來處理group
cat group.bsd &#124; awk -F":" '$3 &#62;=1002&#38;&#38;$3 group.linux
接著把他們附加到原本的檔案後面

cat shadow.linux &#62;&#62; /etc/shadow
cat passwd.linux &#62;&#62; [...]]]></description>
		<wfw:commentRss>http://blog.leolo.cc/2006/08/10/6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
