<?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>Simpleman &#38; Simple Life &#187; FreeBSD</title>
	<atom:link href="http://xuming.info/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://xuming.info</link>
	<description>Learn to write and appreciate</description>
	<lastBuildDate>Sat, 11 Dec 2010 03:05:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>FreeBSD 7.0 VMware Image Available</title>
		<link>http://xuming.info/2008/03/1055/</link>
		<comments>http://xuming.info/2008/03/1055/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 00:32:23 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1055</guid>
		<description><![CDATA[FreeBSD 7.0 发布了，最大的一个特性是增加了对 SUN 的 ZFS 文件系统的支持。Greg Larkin 为我们提供了一个 FreeBSD 7.0 的 VMware image，这样大家就可以无痛体验 FreeBSD 的新特性啦！！都来尝试一下吧！ VMware Image 文件下载地址：http://torrents.sourcehosting.net:10692/torrents/FreeBSD_7.0_VMware.zip.torrent?BA9886D479184512A1B428C3C25AB29FED632BAD ###### 原帖如下########################## 原帖网址：http://blog.sourcehosting.net/2008/03/18/freebsd-70-vmware-image/ Hi everyone, Since FreeBSD 7.0 was recently released, I figured it&#8217;s a good time to put a VMware image together and have a look. Probably one of the most interesting new enhancements is [...]]]></description>
			<content:encoded><![CDATA[<h3 class="storytitle"><font size="2" color="#800080">FreeBSD 7.0 发布了，最大的一个特性是增加了对 SUN 的 ZFS 文件系统的支持。Greg Larkin 为我们提供了一个 FreeBSD 7.0 的 VMware image，这样大家就可以无痛体验 FreeBSD 的新特性啦！！都来尝试一下吧！</font></h3>
<p class="storytitle">VMware Image 文件下载地址：<a href="http://torrents.sourcehosting.net:10692/torrents/FreeBSD_7.0_VMware.zip.torrent?BA9886D479184512A1B428C3C25AB29FED632BAD">http://torrents.sourcehosting.net:10692/torrents/FreeBSD_7.0_VMware.zip.torrent?BA9886D479184512A1B428C3C25AB29FED632BAD</a></p>
<h3 class="storytitle"><font size="2" color="#800080">#####<br /># 原帖如下<br />##########################</font></h3>
<h3 class="storytitle"><font color="#800080"><font size="2">原帖网址：</font><a href="http://blog.sourcehosting.net/2008/03/18/freebsd-70-vmware-image/"><font size="2">http://blog.sourcehosting.net/2008/03/18/freebsd-70-vmware-image/</font></a></font><a rel="bookmark" href="http://blog.sourcehosting.net/2008/03/18/freebsd-70-vmware-image/"></a></h3>
<div class="meta">Hi everyone,</div>
<div class="storycontent">
<p>Since <a href="http://www.freebsd.org/releases/7.0R/announce.html" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.freebsd.org');">FreeBSD 7.0 was recently released</a>, I figured it&rsquo;s a good time to put a VMware image together and have a look. Probably one of the most interesting new enhancements is the addition of the <a href="http://wiki.freebsd.org/ZFS" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/wiki.freebsd.org');">ZFS filesystem</a>. I can&rsquo;t wait to try that out, and it should make managing disk space a lot easier in the context of the SourceHosting.net service.</p>
<p>You can find the zipped image on the <a href="http://torrents.sourcehosting.net:10692/torrents/FreeBSD_7.0_VMware.zip.torrent?BA9886D479184512A1B428C3C25AB29FED632BAD" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/torrents.sourcehosting.net:10692');">SourceHosting.net BitTorrent tracker</a>. Some notes about the image:</p>
<ul>
<li>The VM has been configured with 768Mb of memory. You can reduce it to 512Mb, but the ZFS documentation says &ldquo;<a href="http://wiki.freebsd.org/ZFSTuningGuide" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/wiki.freebsd.org');">Me want more memory!</a>&ldquo; </li>
<li>The root password is &ldquo;password&rdquo; </li>
<li>ZFS is enabled by default </li>
<li>The /usr/ports filesystem is located in a ZFS pool </li>
<li>The Ethernet interface is bridged to the host and uses DHCP </li>
</ul>
<p>I tested this VM in VMware Server and VMware Player, and it seems to work fine. If you have any questions or problems, feel free to post comments here.</p>
<p>Keep in touch,<br />Greg</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2008/03/1055/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS Best Practices Guide （ZFS 最佳实践指南）</title>
		<link>http://xuming.info/2008/03/1054/</link>
		<comments>http://xuming.info/2008/03/1054/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 01:53:17 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[Best]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Practices]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1054</guid>
		<description><![CDATA[FreeBSD 7.0 已经可以支持 ZFS 文件系统了，不过还处于测试阶段，不推荐用于生产环境。 推荐阅读 ZFS 最佳实践指南：http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide]]></description>
			<content:encoded><![CDATA[<p>FreeBSD 7.0 已经可以支持 ZFS 文件系统了，不过还处于测试阶段，不推荐用于生产环境。</p>
<p>推荐阅读 <a href="http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide" target="_blank">ZFS 最佳实践指南</a>：<a href="http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide">http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide</a></p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2008/03/1054/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD IP 配置总结</title>
		<link>http://xuming.info/2008/03/1053/</link>
		<comments>http://xuming.info/2008/03/1053/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 06:54:19 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Manual]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1053</guid>
		<description><![CDATA[###### 手工指定的方式################################ # ipconfig fxp0 192.168.8.33/24 # 添加网卡ip# route add default 192.168.8.1 # 添加路由（也可理解为网关）立即生效，但是重启后失效。 如何重启后仍然保持呢？# ee /etc/rc.confifconfig_fxp0=&#34;inet 192.168.8.8 netmask 255.255.255.0 &#34; # fxp0 网卡地址和子网掩码defaultrouter=&#34;192.168.8.10&#34; # 网关地址hostname=&#34;study.nowire.com.cn&#34; # 机器名ifconfig_wi0=&#34;inet 192.168.8.55 netmask 255.255.255.0&#34; # wi0 网卡地址，对应无线网卡 修改 /etc/rc.conf 配置之后可以通过如下方式生效：第一种方法：# sh /etc/rc第二种方法：# /etc/netstart第三种方法：重启机器 ###### DHCP 方式################################ 在 /etc/rc.conf 中添加：ifconfig_fxp0=&#34;DHCP&#34;需要根据具体情况指定网卡名称。 修改 /etc/rc.conf 配置之后可以通过如下方式生效：第一种方法：# sh /etc/rc第二种方法：# /etc/netstart第三种方法：重启机器 ###### 关于 DNS [...]]]></description>
			<content:encoded><![CDATA[<p>#####<br /># 手工指定的方式<br />################################</p>
<p># ipconfig fxp0 192.168.8.33/24</p>
<p> # 添加网卡ip<br /># route add default 192.168.8.1</p>
<p> # 添加路由（也可理解为网关）<br />立即生效，但是重启后失效。</p>
<p>如何重启后仍然保持呢？<br /># ee /etc/rc.conf<br />ifconfig_fxp0=&quot;inet 192.168.8.8 netmask 255.255.255.0 &quot;</p>
<p># fxp0 网卡地址和子网掩码<br />defaultrouter=&quot;192.168.8.10&quot;</p>
<p># 网关地址<br />hostname=&quot;study.nowire.com.cn&quot;</p>
<p># 机器名<br />ifconfig_wi0=&quot;inet 192.168.8.55<br />
 netmask 255.255.255.0&quot;</p>
<p># wi0 网卡地址，对应无线网卡</p>
<p>修改 /etc/rc.conf 配置之后可以通过如下方式生效：<br />第一种方法：# sh /etc/rc<br />第二种方法：# /etc/netstart<br />第三种方法：重启机器</p>
<p>#####<br /># DHCP 方式<br />################################</p>
<p>在 /etc/rc.conf 中添加：<br />ifconfig_fxp0=&quot;DHCP&quot;<br />需要根据具体情况指定网卡名称。</p>
<p>修改 /etc/rc.conf 配置之后可以通过如下方式生效：<br />第一种方法：# sh /etc/rc<br />第二种方法：# /etc/netstart<br />第三种方法：重启机器</p>
<p>#####<br /># 关于 DNS 地址的配置<br />################################</p>
<p># ee /etc/resolv.conf<br />nameserver 202.96.209.133<br />nameserver 202.96.209.5</p>
<p>#####<br /># 控制网卡的开关<br />################################</p>
<p>ifconfig fxp0 up<br />ifconfig fxp0 down</p>
<p>#####<br /># 路由方面的配置<br />################################</p>
<p>查看路由<br />netstat -rn</p>
<p>添加路由(相当于配置gateway)<br />route add default 192.168.8.1</p>
<p> # 192.168.8.1为网关地址</p>
<p>如果要修改当前路由配置，需要先删除，再新增一条，当然如果不是同名的，如不是default的可以直接添加<br />route delete default 192.168.8.1<br />route add default 192.168.8.10</p>
<p>#####<br /># DHCP release<br />################################</p>
<p># dhclient -r</p>
<p> Release the current lease and exit the client.</p>
<p>Here&#8217;s a clip of dhclient from the FreeBSD man pages;<br />&quot;The client normally doesn&#8217;t release the current lease as it is not required by the DHCP protocol. Some cable ISPs require their clients to notify the server if they wish to release an assigned IP address. The -r flag explicitly releases the current lease, and once the lease has been released, the client exits.&quot;<br />If you are getting kill: xxxx: No such process This means the dhclient process was already stopped</p>
<p>#####<br /># 指定 interface 通过 dhcp 获取 IP<br />################################</p>
<p># dhclient xl0</p>
<p> Starts the dhclient process for interface xl0</p>
<p>I think its a good idea to specify an interface Otherwise you may notice your /var/log/messages filling up with &quot;dhclient: send_packet: Address family not supported by protocol family&quot;</p>
<p>Here&#8217;s a clip of dhclient from the FreeBSD man pages;<br />&quot;If no interface names are specified on the command line dhclient will normally identify all network interfaces, elimininating non-broadcast interfaces if possible, and attempt to configure each interface.&quot;</p>
<p>#####<br /># 指定某个 interface 在通过 DHCP 获取不成功的时候，限定一个固定 IP<br />################################</p>
<p>方法：<br />在 /etc/dhclient.conf 中添加<br />alias {<br />interface &quot;xl0&quot;;<br />fixed-address 192.168.42.40;<br />option subnet-mask 255.255.255.0;<br />}</p>
<p>举例：<br /># ee /etc/dhclient.conf</p>
<p># $FreeBSD: src/etc/dhclient.conf,v 1.2.2.1 2001/12/14 11:44:31 rwatson Exp $<br />#<br />#</p>
<p> This file is required by the ISC DHCP client.<br />#</p>
<p> See &#8220;man 5 dhclient.conf&#8221; for details.<br />#<br />#</p>
<p> In most cases an empty file is sufficient for most people as the<br />#</p>
<p> defaults are usually fine.<br />#<br />alias {<br />interface &quot;xl0&quot;;<br />fixed-address 192.168.42.40;<br />option subnet-mask 255.255.255.0;<br />}</p>
<p>上例的作用是，当 dhclient 不能通过 DHCP server 获取 IP 时，则使用 192.168.42.40 这个固定 IP。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2008/03/1053/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 7.0 稳定版发布啦！！</title>
		<link>http://xuming.info/2008/02/1051/</link>
		<comments>http://xuming.info/2008/02/1051/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 20:23:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[7.0]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Stable]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1051</guid>
		<description><![CDATA[让人久等，令人期待的 FreeBSD 7.0 稳定版发布啦！！！ FTP 下载：ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/7.0/ BT 方式下载：http://torrents.freebsd.org:8080/ FreeBSD 7.0-RELEASE Release Notes：http://www.freebsd.org/releases/7.0R/relnotes.html What&#8217;s New in FreeBSD 7.0：http://www.onlamp.com/pub/a/bsd/2008/02/26/whats-new-in-freebsd-70.html?page=1 What’s cooking for FreeBSD?：http://www.freebsdos.com/news/2007/05/17/whats-cooking-for-freebsd/]]></description>
			<content:encoded><![CDATA[<p>让人久等，令人期待的 FreeBSD 7.0 稳定版发布啦！！！<br />
FTP 下载：<a href="ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/7.0/">ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/7.0/</a><br />
BT 方式下载：<a href="http://torrents.freebsd.org:8080/">http://torrents.freebsd.org:8080/</a></p>
<p><strong>FreeBSD 7.0-RELEASE Release Notes：</strong><a href="http://www.freebsd.org/releases/7.0R/relnotes.html">http://www.freebsd.org/releases/7.0R/relnotes.html</a><br />
<strong>What&#8217;s New in FreeBSD 7.0：</strong><a href="http://www.onlamp.com/pub/a/bsd/2008/02/26/whats-new-in-freebsd-70.html?page=1">http://www.onlamp.com/pub/a/bsd/2008/02/26/whats-new-in-freebsd-70.html?page=1</a><br />
<strong>What’s cooking for FreeBSD?：</strong><a href="http://www.freebsdos.com/news/2007/05/17/whats-cooking-for-freebsd/">http://www.freebsdos.com/news/2007/05/17/whats-cooking-for-freebsd/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2008/02/1051/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FMV-253L 安装120G硬盘，安装 FreeBSD 6.2 看电影</title>
		<link>http://xuming.info/2007/12/1048/</link>
		<comments>http://xuming.info/2007/12/1048/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 05:53:58 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[120G]]></category>
		<category><![CDATA[FMV-253L]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1048</guid>
		<description><![CDATA[就要元旦了，今天中午吃完饭后我们就放假了（今天中午食堂的饭不错，^_^）。现在简单描述一下我在 FMV-253L 上安装 FreeBSD 6.2 以及 mplayer 过程。 首先是硬盘问题，关于 235L 最大支持多大的硬盘。网上看到已经有人在 253L 上成功安装了 80G 硬盘，根据我的理解，关于主板对硬盘的支持有几个临界点：528M，2.1G，8.4G，32G，137.4G 等，如果能够安装 40G，那就一定能够安装 120G，当然事实证明确实如此。至于 253L 能否支持 160G 硬盘就无从知晓了，没有把握的事情我不做，况且现在 120G 硬盘性价比更高一些。 下定决心之后，直奔太平洋三期。硬盘参数如下： 型号:HTS541612J9AT00 容量:120GB 转速:5400转 缓存容量:8M 平均寻道时间:11ms 数据线接口类型：IDE 电源接口类型：N/A 传输标准：ATA-100 内部最大传输速率：493Mbit/s 外部最大传输速率：100Mbit/s 盘片数量：2 单碟容量：80GB NCQ支持：N/A 垂直技术支持：支持 硬盘类型：笔记本 产品尺寸：2.5英寸 ##### # 安装 FreeBSD 6.2 大概过程 ################################## 首先将硬盘放在我的 T21 上安装系统。然后将硬盘再将硬盘装到 253L 上。253L 换硬盘还是很麻烦的，简直就是大卸八块啊。虽然已经拆过几次了，轻车熟路了，可是这次不小心将左边屏轴上的盖子弄掉了。还好硬件一切OK，反正俺对外观无要求，哈哈。 大概过程： [...]]]></description>
			<content:encoded><![CDATA[<p>就要元旦了，今天中午吃完饭后我们就放假了（今天中午食堂的饭不错，^_^）。现在简单描述一下我在 FMV-253L 上安装 FreeBSD 6.2 以及 mplayer 过程。</p>
<p>首先是硬盘问题，关于 235L 最大支持多大的硬盘。网上看到已经有人在 253L 上成功安装了 80G 硬盘，根据我的理解，关于主板对硬盘的支持有几个临界点：528M，2.1G，8.4G，32G，137.4G 等，如果能够安装 40G，那就一定能够安装 120G，当然事实证明确实如此。至于 253L 能否支持 160G 硬盘就无从知晓了，没有把握的事情我不做，况且现在 120G 硬盘性价比更高一些。</p>
<p>下定决心之后，直奔太平洋三期。硬盘参数如下：<br />
型号:HTS541612J9AT00<br />
容量:120GB<br />
转速:5400转<br />
缓存容量:8M<br />
平均寻道时间:11ms<br />
数据线接口类型：IDE<br />
电源接口类型：N/A<br />
传输标准：ATA-100<br />
内部最大传输速率：493Mbit/s<br />
外部最大传输速率：100Mbit/s<br />
盘片数量：2<br />
单碟容量：80GB<br />
NCQ支持：N/A<br />
垂直技术支持：支持<br />
硬盘类型：笔记本<br />
产品尺寸：2.5英寸</p>
<p>#####<br />
# 安装 FreeBSD 6.2 大概过程<br />
##################################</p>
<p>首先将硬盘放在我的 T21 上安装系统。然后将硬盘再将硬盘装到 253L 上。253L 换硬盘还是很麻烦的，简直就是大卸八块啊。虽然已经拆过几次了，轻车熟路了，可是这次不小心将左边屏轴上的盖子弄掉了。还好硬件一切OK，反正俺对外观无要求，哈哈。</p>
<p>大概过程：<br />
定制并安装内核 &#8211;&gt; Port 安装 Xorg &#8211;&gt; Port 安装 fvwm2-devel &#8211;&gt; Port 安装 mplayer &#8211;&gt; Port 安装 samba</p>
<p>安装 samba 的作用是为了方便的拷贝电影到机器上。</p>
<p>#####<br />
# 播放效果：AVI 格式的电影、电视剧播放效果很好<br />
###################################</p>
<p><strong><span style="color: #ff0000;">对于如下参数的 AVI 格式的电影，播放效果很好，不会有停顿的感觉。<br />
</span></strong>VIDEO:<br />
[XVID]<br />
608&#215;336<br />
24bpp<br />
23.976 fps<br />
1022.0 kbps (124.8 kbyte/s)<br />
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000-&gt;192000)</p>
<p>此时对应的 top 结果如下：（<span style="color: #ff0000;">可以看到在 FreeBSD 6.2 下，对于一个 608×336，23.976fps，1022kbps 的avi格式的电视剧来说，253L 还是可以从容应付的</span>）</p>
<p>last pid:<br />
6146;<br />
load averages:<br />
0.85,<br />
0.36,<br />
0.20</p>
<p>up 0+00:34:24<br />
15:02:27<br />
34 processes:<br />
3 running, 31 sleeping<br />
CPU states: 61.1% user,<br />
0.0% nice,<br />
5.8% system,<br />
1.9% interrupt, 31.1% idle<br />
Mem: 46M Active, 15M Inact, 34M Wired, 5172K Cache, 20M Buf, 460K Free<br />
Swap: 256M Total, 24M Used, 231M Free, 9% Inuse</p>
<p>PID USERNAME</p>
<p>THR PRI NICE</p>
<p>SIZE</p>
<p>RES STATE</p>
<p>TIME</p>
<p>WCPU COMMAND<br />
6144 xuming</p>
<p>1 108</p>
<p>0 58720K 22508K RUN</p>
<p>0:38 33.56% mplayer<br />
765 xuming</p>
<p>1 104</p>
<p>0 22784K<br />
7236K RUN</p>
<p>0:36 24.66% Xorg<br />
6111 xuming</p>
<p>1<br />
96</p>
<p>0<br />
5612K<br />
2016K select</p>
<p>0:04<br />
1.03% xterm<br />
6120 xuming</p>
<p>1<br />
96</p>
<p>0<br />
4124K<br />
1800K select</p>
<p>0:03<br />
0.05% conky<br />
778 xuming</p>
<p>1<br />
96</p>
<p>0<br />
2344K<br />
1056K RUN</p>
<p>0:05<br />
0.00% top<br />
770 xuming</p>
<p>1<br />
96</p>
<p>0<br />
5740K<br />
2136K select</p>
<p>0:02<br />
0.00% fvwm<br />
4903 xuming</p>
<p>1<br />
96</p>
<p>0<br />
6252K<br />
1340K select</p>
<p>0:02<br />
0.00% sshd<br />
775 xuming</p>
<p>1<br />
96</p>
<p>0<br />
6252K<br />
1480K select</p>
<p>0:01<br />
0.00% sshd<br />
6146 xuming</p>
<p>1</p>
<p>8</p>
<p>0 58416K 27864K nanslp</p>
<p>0:01<br />
0.00% mplayer<br />
723 xuming</p>
<p>1<br />
20</p>
<p>0<br />
4976K<br />
1060K pause</p>
<p>0:01<br />
0.00% csh<br />
4904 xuming</p>
<p>1</p>
<p>5</p>
<p>0<br />
4976K<br />
1072K ttyin</p>
<p>0:01<br />
0.00% csh<br />
4900 root</p>
<p>1</p>
<p>4</p>
<p>0<br />
6276K<br />
1340K sbwait</p>
<p>0:01<br />
0.00% sshd<br />
772 root</p>
<p>1</p>
<p>4</p>
<p>0<br />
6276K<br />
1348K sbwait</p>
<p>0:00<br />
0.00% sshd<br />
687 root</p>
<p>1</p>
<p>8</p>
<p>0<br />
1760K</p>
<p>716K wait</p>
<p>0:00<br />
0.00% login<br />
6112 xuming</p>
<p>1<br />
20</p>
<p>0<br />
4984K<br />
1096K pause</p>
<p>0:00<br />
0.00% csh<br />
491 root</p>
<p>1<br />
96</p>
<p>0<br />
1376K</p>
<p>656K select</p>
<p>0:00<br />
0.00% syslogd<br />
627 root</p>
<p>1</p>
<p>8</p>
<p>0<br />
1388K</p>
<p>736K nanslp</p>
<p>0:00<br />
0.00% cron<br />
646 root</p>
<p>1<br />
96</p>
<p>0<br />
1336K</p>
<p>556K select</p>
<p>0:00<br />
0.00% moused<br />
776 xuming</p>
<p>1<br />
20</p>
<p>0<br />
4712K<br />
1068K pause</p>
<p>0:00<br />
0.00% csh<br />
764 xuming</p>
<p>1</p>
<p>8</p>
<p>0<br />
2364K</p>
<p>856K wait</p>
<p>0:00<br />
0.00% xinit<br />
620 root</p>
<p>1<br />
96</p>
<p>0<br />
3524K<br />
1164K select</p>
<p>0:00<br />
0.00% sshd<br />
278 root</p>
<p>1 113</p>
<p>0<br />
1464K</p>
<p>568K select</p>
<p>0:00<br />
0.00% dhclient<br />
693 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
692 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
689 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
746 xuming</p>
<p>1</p>
<p>8</p>
<p>0<br />
1716K</p>
<p>752K wait</p>
<p>0:00<br />
0.00% sh<br />
688 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
691 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
690 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
694 root</p>
<p>1</p>
<p>5</p>
<p>0<br />
1344K</p>
<p>592K ttyin</p>
<p>0:00<br />
0.00% getty<br />
563 root</p>
<p>1<br />
96</p>
<p>0<br />
1288K</p>
<p>532K select</p>
<p>0:00<br />
0.00% usbd<br />
325 _dhcp</p>
<p>1<br />
96</p>
<p>0<br />
1464K</p>
<p>584K select</p>
<p>0:00<br />
0.00% dhclient<br />
162 root</p>
<p>1<br />
20</p>
<p>0<br />
1252K</p>
<p>464K pause</p>
<p>0:00<br />
0.00% adjkerntz<br />
426 root</p>
<p>1 113</p>
<p>0</p>
<p>528K</p>
<p>16K select</p>
<p>0:00<br />
0.00% devd</p>
<p>#####<br />
# 内核定制需要注意的地方<br />
##################################</p>
<p>在合适的位置添加或修改如下参数：<br />
machine</p>
<p>i386<br />
cpu</p>
<p>I586_CPU<br />
options</p>
<p>CPU_ENABLE_LONGRUN</p>
<p># 适用于全美达的 CPU<br />
ident</p>
<p>My253L</p>
<p>device</p>
<p>drm</p>
<p># 据说可以开启显卡的 3D 功能<br />
device</p>
<p>mach64drm</p>
<p>options</p>
<p>VESA</p>
<p># 这两个参数适用于高分辨率的控制台<br />
options</p>
<p>SC_PIXEL_MODE</p>
<p>device</p>
<p>acpi_fujitsu</p>
<p># 加入富士通笔记本的 acpi 模块</p>
<p>######<br />
# 253L 适用的 /etc/make.conf 如下<br />
#######################################</p>
<p># $FreeBSD: src/share/examples/etc/make.conf,v 1.265.2.8 2006/09/13 08:39:16 des<br />
#<br />
# Edited by <a href="mailto:xnming21@hotmail.com">xnming21@hotmail.com</a> for his FMV-253L use.<br />
# Please see make.conf(5) and /usr/share/examples/etc/make.conf<br />
#<br />
CPUTYPE?=crusoe<br />
CFLAGS= -O2 -pipe<br />
CXXFLAGS+= -fconserve-space<br />
MAKE_SHELL?=sh<br />
NO_PROFILE=true<br />
FETCH_CMD=/usr/local/bin/axel -n 2 -a<br />
DISABLE_SIZE=YES<br />
MASTER_SITE_BACKUP?= \<br />
<a href="ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/$%7BDIST_SUBDIR%7D/">ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/</a> \<br />
<a href="ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/$%7BDIST_SUBDIR%7D/">ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/</a> \<br />
<a href="ftp://ftp2.jp.freebsd.org/pub/FreeBSD/ports/distfiles/$%7BDIST_SUBDIR%7D/">ftp://ftp2.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/</a> \<br />
<a href="ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/$%7BDIST_SUBDIR%7D/">ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/</a> \<br />
<a href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/$%7BDIST_SUBDIR%7D/">ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/</a><br />
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}</p>
<p>注意：在 /usr/src/share/examples/etc/make.conf 中没有提示 CPUTYPE 可以选择 crusoe，但是通过查看 /usr/src/share/mk/bsd.cpu.mk 文件，可以发现还是针对 crusoe 这款 CPU 做了配置了。所以可以在 make.conf 中放心使用 CPUTYPE?=crusoe</p>
<p>其他内容同我的 T21 上 make.conf 的设置。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/12/1048/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DELL M1210 上安装 Gentoo</title>
		<link>http://xuming.info/2007/12/1047/</link>
		<comments>http://xuming.info/2007/12/1047/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 05:11:31 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DELL]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[M1210]]></category>
		<category><![CDATA[SATA]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1047</guid>
		<description><![CDATA[新买了一个 DELL M1210 （T2350，512M*2 DDR2 667，120G SATA 8M，GMA950），性能还不错，在 FreeBSD 6.3 prerelease 下 ubench CPU 得分在 196000 左右，内存 150000 左右，综合得分 165000 左右（只是个人的模糊记忆）。初次安装用的是 6.1 release 的光盘，大概只用了5个小时就完成了 make world 以及 port 安装 Xorg，fvwm2-dev，opera，gimp，mplayer 等。顺便说一下，FreeBSD 6.3 对 M1210 的支持还不错，显卡、声卡、网卡、SATA 硬盘都安装顺利，Xorg 都没有进行参数配置就顺利进入，也成功开启了 DRI。 FreeBSD 千般好万般好，可是因为厂商支持的原因，在虚拟化方面真的是落后于 Linux 了，于是开始在 M1210 上安装 Gentoo。 ###### Gentoo 的安装####################### 根据手册安装一切顺利，可是在安装完重启后，系统提示： root-nfs no nfs server available, giving [...]]]></description>
			<content:encoded><![CDATA[<p>新买了一个 DELL M1210 （T2350，512M*2 DDR2 667，120G SATA 8M，GMA950），性能还不错，在 FreeBSD 6.3 prerelease 下 ubench CPU 得分在 196000 左右，内存 150000 左右，综合得分 165000 左右（只是个人的模糊记忆）。初次安装用的是 6.1 release 的光盘，大概只用了5个小时就完成了 make world 以及 port 安装 Xorg，fvwm2-dev，opera，gimp，mplayer 等。顺便说一下，FreeBSD 6.3 对 M1210 的支持还不错，显卡、声卡、网卡、SATA 硬盘都安装顺利，Xorg 都没有进行参数配置就顺利进入，也成功开启了 DRI。</p>
<p>FreeBSD 千般好万般好，可是因为厂商支持的原因，在虚拟化方面真的是落后于 Linux 了，于是开始在 M1210 上安装 Gentoo。</p>
<p>#####<br /># Gentoo 的安装<br />#######################</p>
<p>根据手册安装一切顺利，可是在安装完重启后，系统提示：</p>
<p>root-nfs no nfs server available, giving up.<br />VFS: Unable to mount root fs via NFS, trying floppy.<br />VFS: Insert root floppy and press ENTER</p>
<p>VFS: cannot open root device &quot;sda3&quot; or unknown-block(2,0)<br />please append a correct &quot;root=&quot; boot option; here are the available partitions:<br />0300 117220824 hda driver: ide-disk<br />
 0301<br />
257000 hda1<br />
 0302<br />
16193520 hda2<br />
 0303<br />
100767712 hda3<br />1600<br />
4194302 hdc driver: ide-cdrom<br />kernel panic &#8211; not syncing: VFS: unable to mount root fs on unkown-block(2,0)</p>
<p># 此时我的 /boot/grub/grub.conf 文件如下<br />default 0<br />timeout 30</p>
<p>title=Gentoo Linux 2.6.23-r3<br />root (hd0,0)<br />kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/sda3</p>
<p>title=Gentoo Linux 2.6.23-r3 (rescue)<br />root (hd0,0)<br />kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/sda3 init=/bin/bb</p>
<p>#####<br /># 解决方法：（参考 <a href="http://gentoo-wiki.com/HARDWARE_SATA">http://gentoo-wiki.com/HARDWARE_SATA</a>）<br />###########################</p>
<p>Device Drivers<br />
 &#8212;&gt;</p>
<p> &lt;*&gt; ATA/ATAPI/MFM/RLL support<br />
 &#8212;&gt;</p>
<p> &lt; &gt;</p>
<p> generic/default IDE chipset support</p>
<p>如上，在内核配置中取消对&ldquo;generic/default IDE chipset support&rdquo;的选择，意思是不要将 SATA 硬盘作为 IDE 设备。之后重新编译内核，重启，问题解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/12/1047/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xorg 中的电源管理（设置显示器 turn off 时间）</title>
		<link>http://xuming.info/2007/08/1028/</link>
		<comments>http://xuming.info/2007/08/1028/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 10:19:06 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DPMS]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Power]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1028</guid>
		<description><![CDATA[在 FreeBSD 6.2 上安装了 Xorg 后，如果十分钟内桌面不活动就会自动关闭显示器，这对我来说非常不方便，我在家一般都是三台机器同时用的，显示器动不动就自动关闭真是痛苦。在网上搜索了一番，找到了解决方法。 如果要启用显示器的自动电源管理功能，需要开启 DPMS 功能，步骤如下： # ee /etc/X11/xorg.conf 在 Section &#34;Monitor&#34; 中添加一行：Option &#34;DPMS&#34;。如： Section &#34;Monitor&#34; Identifier &#34;My Monitor&#34; HorizSync 31.5 &#8211; 57.0 VertRefresh 50-90 Option &#34;DPMS&#34; EndSection 然后 restart your X server，可以通过&#8220;Ctrl+Alt+Backspace&#8221;，然后 xinit 重新进入 X 桌面。 这时可通过命令&#8220;xset dpms force off&#8221;测试是否设置生效。 设置显示器自动关闭时间。还是在&#8220;/etc/X11/xorg.conf&#8221;中设置Section &#8220;ServerLayout&#8221;部分，我的设置如下： Section &#34;ServerLayout&#34; Identifier &#34;X.org Configured&#34; Screen 0 &#34;Screen0&#34; 0 [...]]]></description>
			<content:encoded><![CDATA[<p>
在 FreeBSD 6.2 上安装了 Xorg 后，如果十分钟内桌面不活动就会自动关闭显示器，这对我来说非常不方便，我在家一般都是三台机器同时用的，显示器动不动就自动关闭真是痛苦。在网上搜索了一番，找到了解决方法。
</p>
<p>
如果要启用显示器的自动电源管理功能，需要开启 DPMS 功能，步骤如下：
</p>
<p>
# ee /etc/X11/xorg.conf
</p>
<p>
在 Section &quot;Monitor&quot; 中添加一行：Option &quot;DPMS&quot;。如：
</p>
<p>
Section &quot;Monitor&quot;</p>
<p> Identifier<br />
 &quot;My Monitor&quot;</p>
<p> HorizSync</p>
<p> 31.5 &#8211; 57.0</p>
<p> VertRefresh 50-90</p>
<p> Option &quot;DPMS&quot;<br />
EndSection
</p>
<p>
然后 restart your X server，可以通过&ldquo;Ctrl+Alt+Backspace&rdquo;，然后 xinit 重新进入 X 桌面。
</p>
<p>
这时可通过命令&ldquo;xset dpms force off&rdquo;测试是否设置生效。
</p>
<p>
设置显示器自动关闭时间。还是在&ldquo;/etc/X11/xorg.conf&rdquo;中设置Section &ldquo;ServerLayout&rdquo;部分，我的设置如下：
</p>
<p>
Section &quot;ServerLayout&quot;</p>
<p> Identifier</p>
<p> &quot;X.org Configured&quot;</p>
<p> Screen</p>
<p> 0<br />
 &quot;Screen0&quot; 0 0</p>
<p> InputDevice</p>
<p> &quot;Mouse0&quot; &quot;CorePointer&quot;</p>
<p> InputDevice</p>
<p> &quot;Keyboard0&quot; &quot;CoreKeyboard&quot;</p>
<p> Option &quot;BlankTime&quot; &quot;0&quot;</p>
<p> Option &quot;StandbyTime&quot;<br />
 &quot;45&quot;</p>
<p> Option &quot;SuspendTime&quot;<br />
 &quot;50&quot;</p>
<p> Option &quot;OffTime&quot;<br />
 &quot;60&quot;<br />
EndSection
</p>
<p>
BlankTime：设置进入屏幕保护的时间，单位为分。默认为10分钟。 <br />
StandbyTime：设置显示器进入待机状态的时间，单位为分。默认为20分钟。<br />
SuspendTime：设置显示器进入挂起状态的时间，单位为分。默认为30分钟。<br />
Offtime：设置显示器关闭的时间，单位为分。 默认为40分钟。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/08/1028/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aterm, xterm, Eterm, rxvt, Konsole，选择谁？</title>
		<link>http://xuming.info/2007/08/1027/</link>
		<comments>http://xuming.info/2007/08/1027/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 04:09:13 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[aterm]]></category>
		<category><![CDATA[Eterm]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[xterm]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1027</guid>
		<description><![CDATA[Linux、FreeBSD 下有形形色色的 terminal emulator，如：aterm, xterm, Eterm, rxvt, Konsole 等等等，到底如何选择呢？各自又有什么特性呢？哪个适合我？今天在网上看到一篇不错的文章，原文网址： http://ayaz.wordpress.com/2007/04/07/aterm-xterm-eterm-rxvt-konsole-oh-my/ 内容如下： aterm, xterm, Eterm, rxvt, Konsole, oh my! “Konsole” supports transparency, but it is slow (and most importantly for me, does not have the “fixed” fonts that xterm uses). “xterm” is cool, but I want transparency which it doesn’t have. “Eterm” is, again, slower than [...]]]></description>
			<content:encoded><![CDATA[<p>Linux、FreeBSD 下有形形色色的 terminal emulator，如：aterm, xterm, Eterm, rxvt, Konsole 等等等，到底如何选择呢？各自又有什么特性呢？哪个适合我？今天在网上看到一篇不错的文章，原文网址： <a href="http://ayaz.wordpress.com/2007/04/07/aterm-xterm-eterm-rxvt-konsole-oh-my/">http://ayaz.wordpress.com/2007/04/07/aterm-xterm-eterm-rxvt-konsole-oh-my/</a></p>
<p>内容如下：</p>
<p class="hint"><b>aterm, xterm, Eterm, rxvt, Konsole, oh my!</b></p>
<p>“Konsole” supports transparency, but it is slow (and most importantly for me, does not have the “fixed” fonts that xterm uses). “xterm” is cool, but I want transparency which it doesn’t have. “Eterm” is, again, slower than “xterm”, and though it does support backgrounds, you cannot, as far as I have explored it, make “Eterm” use any image for background. On the flip side, “Eterm” has support for the fixed fonts like xterm. But I desperately need “transparency”.</p>
<p>Look at “aterm”. Although working on the shoulders of “rxvt”, “aterm” is pretty much like “xterm”, supports all the things “xterm” does, and provides fast visually pleasing effects (without hogging up resources like Konsole), including, what I want the most, transparency. Not only that, you can configure “aterm” to use fixed font. What more do I want?
</p>
<p><b>我的选择是 aterm，然后 xterm，其他就不考虑了。</b></p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/08/1027/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改 FreeBSD root 密码</title>
		<link>http://xuming.info/2007/08/1023/</link>
		<comments>http://xuming.info/2007/08/1023/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 03:23:05 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[FMV-253L]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[FVWM]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1023</guid>
		<description><![CDATA[今天将闲置好久的富士通 FMV-253L 拿出来查看之前在上面的 FVWM 的配置，这台机子目前我在上面安装了 FreeBSD 6.1。无奈的却发现忘记了 root 密码（呵呵，好久没用了密码都不记得了。） 还原过程： 1. 启动机器； 2. 在出现&#8220;Welcome to FreeBSD!&#8221;的选择菜单时，选择&#8220;4. Boot FreeBSD in single user mode&#8221;； 3. 在加载结束后，执行 # /sbin/mount -a # passwd 这样就重设了 root 账户密码。]]></description>
			<content:encoded><![CDATA[<p>
今天将闲置好久的富士通 FMV-253L 拿出来查看之前在上面的 FVWM 的配置，这台机子目前我在上面安装了 FreeBSD 6.1。无奈的却发现忘记了 root 密码（呵呵，好久没用了密码都不记得了。）
</p>
<p>
还原过程：<br />
1. 启动机器；<br />
2. 在出现&ldquo;Welcome to FreeBSD!&rdquo;的选择菜单时，选择&ldquo;4. Boot FreeBSD in single user mode&rdquo;；<br />
3. 在加载结束后，执行 <br />
# /sbin/mount -a<br />
# passwd<br />
这样就重设了 root 账户密码。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/08/1023/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

