<?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; BSD</title>
	<atom:link href="http://xuming.info/category/bsd/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>About FreeBSD HAST Project</title>
		<link>http://xuming.info/2009/12/about-freebsd-hast-project/</link>
		<comments>http://xuming.info/2009/12/about-freebsd-hast-project/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 02:33:47 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[GEOM]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[HAST]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1262</guid>
		<description><![CDATA[For a long time, I&#8217;m a hardcore of FreeBSD, prefer FreeBSD to Linux. But as far as virtualization concerned, FreeBSD is not well supported as a host OS by any of the available virtualization solutions. With the official (not experimental) support of ZFS in FreeBSD 8.0, FreeBSD is now a decent choice of storage system.  [...]]]></description>
			<content:encoded><![CDATA[<p>For a long time, I&#8217;m a hardcore of FreeBSD, prefer FreeBSD to Linux. But as far as virtualization concerned, FreeBSD is not well supported as a host OS by any of the available virtualization solutions. With the official (not experimental) support of ZFS in FreeBSD 8.0, FreeBSD is now a decent choice of storage system. </p>
<p>Today I wanna introduce a new project – FreeBSD HAST Project, aka FreeBSD High Availability Storage Project. The main purpose of this great project is enable users to use the FreeBSD operating system for highly available configurations where data has to be shared across the cluster nodes. </p>
<p style="padding-left: 30px;">HAST enables users to use the FreeBSD operating system for highly available configurations where data has to be shared across the cluster nodes. The software will allow for synchronous block-level replication of any storage media (GEOM providers, using FreeBSD nomenclature) over the TCP/IP network and for fast failure recovery. HAST will provide storage using GEOM infrastructure, which means it will be file system and application independent and could be combined with any existing GEOM class. In case of a master node failure, the cluster will be able to switch to the slave node, check and mount UFS file system or import ZFS pool and continue to work without missing a single bit of data. </p>
<p>The project developer is Pawel Jakub Dawidek, and the project will completed by February 2010. </p>
<p>More information here:<br />
<a href="http://www.freebsdnews.net/2009/10/23/new-freebsd-foundation-project-hast/">http://www.freebsdnews.net/2009/10/23/new-freebsd-foundation-project-hast/</a><br />
<a href="http://www.freebsdnews.net/2009/12/26/update-freebsd-hast-project/">http://www.freebsdnews.net/2009/12/26/update-freebsd-hast-project/</a></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2009/12/about-freebsd-hast-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>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>Workgroup 环境在 ConfigMgr 2007 中的限制</title>
		<link>http://xuming.info/2008/03/1052/</link>
		<comments>http://xuming.info/2008/03/1052/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 06:50:55 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[SMS & SCCM]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[Push]]></category>
		<category><![CDATA[Workgroup]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1052</guid>
		<description><![CDATA[引用：http://blogs.technet.com/smsandmom/archive/2008/03/06/configmgr-2007-client-push-installation-method-in-a-workgroup.aspx ConfigMgr 2007 是不支持在 workgroup 环境下的 Client push 方式安装的。 其他在工作组环境的限制有： 1. Workgoup clients 不能使用 AD domain services 服务，所以即使 site 已经进行了 AD domain services 的发布，workgroup client 也不能从中受益。如 workgroup clients 只能通过 WINS 或 DNS 来定位 default MP，而不能通过 AD domain services；2. AD system, AD user, AD user group 等 discovery 方式对 workgoup 无效；3. 针对 user 的 advertiesments 对 [...]]]></description>
			<content:encoded><![CDATA[<p>引用：<a href="http://blogs.technet.com/smsandmom/archive/2008/03/06/configmgr-2007-client-push-installation-method-in-a-workgroup.aspx">http://blogs.technet.com/smsandmom/archive/2008/03/06/configmgr-2007-client-push-installation-method-in-a-workgroup.aspx</a></p>
<p>ConfigMgr 2007 是不支持在 workgroup 环境下的 Client push 方式安装的。</p>
<p>其他在工作组环境的限制有：</p>
<p>1. Workgoup clients 不能使用 AD domain services 服务，所以即使 site 已经进行了 AD domain services 的发布，workgroup client 也不能从中受益。如 workgroup clients 只能通过 WINS 或 DNS 来定位 default MP，而不能通过 AD domain services；<br />2. AD system, AD user, AD user group 等 discovery 方式对 workgoup 无效；<br />3. 针对 user 的 advertiesments 对 workgroup 无效；<br />4. BDP 不能建立在 workgroup 机器上，必须是域中的机器。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2008/03/1052/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>Applying patches in OpenBSD</title>
		<link>http://xuming.info/2007/09/1038/</link>
		<comments>http://xuming.info/2007/09/1038/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 03:32:05 +0000</pubDate>
		<dc:creator>xuming</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://xuming.info/?p=1038</guid>
		<description><![CDATA[昨晚又在家里安装了 OpenBSD，想把家中闲置的 PIII 450 主机利用起来，作为 ADSL 拨号网关外加 PF 防火墙（之前这台机器是安装 FreeBSD 的）。OpenBSD 最新 release 为 4.1，查看了一下 i386 的cd41.iso 只有 5000KB，心想就这 5M 不到的文件就刻一张盘实在是不情愿（木办法，穷人一个），家中恰好有一张一年前刻的 3.9 引导盘一张。 安装过程如下 3.9 &#8211;&#62; 4.0 &#8211;&#62; 4.1 （官方说法是不能跨版本升级，注意每次升级后要手工进行 final steps，具体过程略）。 总体感觉：OpenBSD 是我遇到过安装最简单的一个系统了。 按照安装的困难程度（只是我的个人感觉） OpenBSD &#60; FreeBSD &#60; ESX server 3.x &#60; Gentoo &#60; LFS 下面简要描述一下如何为 OpenBSD 安装 patch。 需要明确一点的是：OpenBSD 也是需要安装 patch 以保持安全和可靠的。 当一个 [...]]]></description>
			<content:encoded><![CDATA[<p>
昨晚又在家里安装了 OpenBSD，想把家中闲置的 PIII 450 主机利用起来，作为 ADSL 拨号网关外加 PF 防火墙（之前这台机器是安装 FreeBSD 的）。OpenBSD 最新 release 为 4.1，查看了一下 i386 的cd41.iso 只有 5000KB，心想就这 5M 不到的文件就刻一张盘实在是不情愿（木办法，穷人一个），家中恰好有一张一年前刻的 3.9 引导盘一张。
</p>
<p>
安装过程如下 3.9 &#8211;&gt; 4.0 &#8211;&gt; 4.1 （官方说法是不能跨版本升级，注意每次升级后要手工进行 final steps，具体过程略）。
</p>
<p>
总体感觉：OpenBSD 是我遇到过安装最简单的一个系统了。
</p>
<p>
按照安装的困难程度（只是我的个人感觉）<br />
OpenBSD &lt; FreeBSD &lt; ESX server 3.x &lt; Gentoo &lt; LFS
</p>
<p>
下面简要描述一下如何为 OpenBSD 安装 patch。
</p>
<p>
需要明确一点的是：OpenBSD 也是需要安装 patch 以保持安全和可靠的。
</p>
<p>
当一个 critial bug 被发现的时候，应对的 fix 会被提交到 -current source tree 中，相应的 patches 会被发布到所支持的 release 中。这些 patches 可以通过 <a href="http://www.openbsd.org/errata.html">http://www.openbsd.org/errata.html</a> 查看，分为 common errata 和 errata，前者指影响所有平台，后者则不是所有的平台。
</p>
<p>
利用 patched code 升级系统的三种方法：
</p>
<p>
1. Upgrade your system to -current. 所有的 fix 都会应用到 -current 中，但是不是适合所有人。<br />
2. Update your system to -stable. 通过使用合适的 -stable branch 下载并更新 soure tree，然后重新编译 kernel 和 userland files。这种方式最 easy，但是相当耗时（因为整个系统都重新被编译），如果网络带宽过低，那就更惨啦，进行整个 source checkout 的时候可是相当的长啊。<br />
3. Patch, compile and install individual impacted files. 正好和第二种方式相反，最难但节省时间和带宽。没有一个通用的方法，也就是每次都会不同。Sometimes you must patch, recompile and install one application, other times, you might have to recompile entire sections of the tree if the problem is in a library file.
</p>
<p>
下面以第 3 种方式举例：
</p>
<p>
Patch 其实只是&quot;Unified diffs&quot;方式的 txt 文件（不是二进制文件），包含和原 source code 的不同之处的说明（也就是哪些地方需要修正）。
</p>
<p>
具体步骤，参见：<a href="http://www.openbsd.org/faq/faq10.html#Patches">http://www.openbsd.org/faq/faq10.html#Patches</a><br />
1. 在对系统进行 patch 之前，要确保具体当前 release 的 source code，<br />
2. 下载 patch 的 txt 文件，这时可以先大概查看一下这个 patch 的用法，一般 patch 文件中都会有简要说明的。<br />
3. 按照说明安装 patch 即可。注意查看最后的提示，如果为 successful 则表示成功。
</p>
<p>
需要注意的地方：安装 patch 时需要查看这个 patch 和你的系统相关，如一个和 tape 硬件相关的 patch，如果你根本没有 tape 硬件，就没必要打这个 patch。但是有些 patch 又是具有承接性的，即以后别的 patch 会需要目前这个看似不相关的 patch 才能成功安装。这就又有了一个准则：如果不确定某个 patch 是否需要，那就能打的就都打吧。哈哈。
</p>
<p>
原文：Patches that are irrelevant to your particular system need not be applied &#8212; usually. For example, if you did not have a tape drive on your system, you would not benefit from the above patch. However, patches are assumed to be applied &quot;in order&quot; &#8212; it is possible that a later patch is dependent upon an earlier one. Be aware of this if you elect to &quot;pick and choose&quot; which patches you apply, and if in doubt, apply them all, in order.
</p>
<p>
在成功 patch 系统之后，就可以继续执行定制内核了。</p>
]]></content:encoded>
			<wfw:commentRss>http://xuming.info/2007/09/1038/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>

