<?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>Tairan's Story &#187; linux</title>
	<atom:link href="http://www.tairan.net/index.php/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tairan.net</link>
	<description>「知之真切笃实处即是行。行之明觉精察处即是知，知行工夫不可离。」</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:12:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>基于(LFS)构建一个属于自己的Linux(一)</title>
		<link>http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/</link>
		<comments>http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 09:22:27 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[实践手札]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[LFS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=791</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post 基于(LFS)构建一个属于自己的Linux(一) 想挑战LFS很久了，终于从今天开始动工制作了。以前虽然没有动手开始创建LFS，但是也积累了不少的相关信息，一切都还算顺利。 今天是第一天，主要的工作是编译工具链和一些系统工具为Building the LFS System作准备。 准备HOST(宿主)系统，没有使用LFS-LiveCD, 而是在虚拟机中安装LinuxMint(没有特殊的含义)，在开始之前需要在LinuxMint中安装编译LFS的相关工具。 sudo apt-get install build-essential bison LFS 的版本为 6.5 LFS 提供了一个文件, 其中包含了构建LFS所有用到的源码下载链接 LFS-BOOK-6.5-wget-list 可以使用wget下载这些源码 wget -c -t 2 -i LFS-BOOK-6.5-wget-list -o down.log 需要注意的是，Perl-5.10.0 的路径已经被移除，取而代之的是Perl-5.10.1。采用了新的版本Perl后，原来针对5.10.0的patch就不用了。 依照LFS-BOOK的指示，编译起来还是很顺利的。如果英文不好可以对照着金步国翻译的中文版的LFS-BOOK-6.2 通常编译的步骤如下，先解压源码包，如果有patch则应用patch patch -Np1 -i path_of_the_patch 之后就是念咒语 ./configure --prefix=/tools #需要根据文档指示 make make install 具体的编译还是应该参照文档，除非你运气真的很背，否则都会通过的。 编译是一件苦力活，根据机器的性能，也许会耗费你一天甚至更长的时间。其实也有自动化的操作，但是动手敲上一段咒语还是有很多额外的收获。 到此，编译了N个程序后准备工作就告一段落了，编译的这些程序是新世界的基础，很重要、也很费时！ 接下来进入 Building the LFS [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/">基于(LFS)构建一个属于自己的Linux(一)</a></p>
</div>
<p>想挑战LFS很久了，终于从今天开始动工制作了。以前虽然没有动手开始创建LFS，但是也积累了不少的相关信息，一切都还算顺利。</p>
<p>今天是第一天，主要的工作是编译工具链和一些系统工具为Building the LFS System作准备。</p>
<p>准备HOST(宿主)系统，没有使用<a href="http://www.linuxfromscratch.org/livecd/" target="_blank">LFS-LiveCD</a>, 而是在虚拟机中安装<a href="http://www.linuxmint.com" target="_blank">LinuxMint</a>(没有特殊的含义)，在开始之前需要在LinuxMint中安装编译LFS的相关工具。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential <span style="color: #c20cb9; font-weight: bold;">bison</span></pre></div></div>

<p>LFS 的版本为 6.5</p>
<p>LFS 提供了一个文件, 其中包含了构建LFS所有用到的源码下载链接 <a href="http://www.linuxfromscratch.org/lfs/downloads/stable/LFS-BOOK-6.5-wget-list" target="_blank">LFS-BOOK-6.5-wget-list</a></p>
<p>可以使用wget下载这些源码</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-t</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-i</span> LFS-BOOK-<span style="color: #000000;">6.5</span>-wget-list <span style="color: #660033;">-o</span> down.log</pre></div></div>

<p>需要注意的是，Perl-5.10.0 的路径已经被移除，取而代之的是Perl-5.10.1。采用了新的版本Perl后，原来针对5.10.0的patch就不用了。</p>
<p>依照LFS-BOOK的指示，编译起来还是很顺利的。如果英文不好可以对照着<a href="http://www.google.cn/search?hl=zh-CN&#038;newwindow=1&#038;rlz=1B6_____enCN355CN356&#038;q=%E9%87%91%E6%AD%A5%E5%9B%BD&#038;btnG=Google+%E6%90%9C%E7%B4%A2&#038;aq=f&#038;oq=">金步国</a>翻译的中文版的<a href="http://lamp.linux.gov.cn/Linux/LFS-6.2/index.html">LFS-BOOK-6.2</a></p>
<p>通常编译的步骤如下，先解压源码包，如果有patch则应用patch</p>

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

<p>之后就是念咒语</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>tools <span style="color: #666666; font-style: italic;">#需要根据文档指示</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>具体的编译还是应该参照文档，除非你运气真的很背，否则都会通过的。</p>
<p>编译是一件苦力活，根据机器的性能，也许会耗费你一天甚至更长的时间。其实也有自动化的操作，但是动手敲上一段咒语还是有很多额外的收获。</p>
<p>到此，编译了N个程序后准备工作就告一段落了，编译的这些程序是新世界的基础，很重要、也很费时！ 接下来进入 <b>Building the LFS System</b></p>
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/">基于(LFS)构建一个属于自己的Linux(一)</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2010. |
<a href="http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/&title=基于(LFS)构建一个属于自己的Linux(一)">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/lfs/" rel="tag">LFS</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a>, <a href="http://www.tairan.net/index.php/tag/linux-mint/" rel="tag">Linux Mint</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2010/02/22/building-the-linux-for-myself/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>阿凡达 Avatar</title>
		<link>http://www.tairan.net/index.php/2010/01/05/avatar/</link>
		<comments>http://www.tairan.net/index.php/2010/01/05/avatar/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:00:54 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[我的声音]]></category>
		<category><![CDATA[Avatar]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=757</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post 阿凡达 Avatar 说啥呢？ 其实对于电影本身真的没啥好说的，有条件的去看IMAX+3D，没条件的看普通3D，剩下没条件的去创造条件到电影院看。 不在电影院看《Avatar》就等于没看过！ 鼓吹完大家为美帝国贡献GDP之后，来谈谈Avatar背后的故事吧。 作为技术人员，研究一下电影背后的有关技术的话题，还是很有意思的。《Avatar》所带来的震撼是科技的进步！ 　　为了能百分百的表现潘多拉这个奇绝的梦幻世界，卡梅隆使用了三项突破性技术：虚拟摄像技术、表情抓取，和联合数字立体摄影机（fusion camera system）。 　　 　　虚拟摄像机技术目前为止还主要用于3D虚拟世界游戏，比如《塞尔达传说》系列游戏，游戏者控制虚拟世界中自己的人工智能体，将人物行为信息实时双向反馈，人物所处的三维立体环境随着其动作位置变化实时发生变化。在《阿凡达》中，演员佩戴无数感应器进行“行动抓取”，电脑对抓取的数据直接进行处理，将其所代表的虚拟人物按预制比例直接显示在监控器上，从而使导演能实时观测虚拟人物与虚拟电子潘多拉世界的交互效果。 　　 　　表情抓取指抓取演员表情的电脑图形技术。卡梅隆在洛杉矶的Playa Vista建立了一个比一般表演抓取工作室大5倍的专门舞台（the volume），安装了120个固定摄像头，全角度抓取演员表演的全部信息；扮演Na&#8217;vi人的演员同时佩戴一个特制的帽子，由一部微型摄像机详细记录其在表演中面部表情的一切变化。卡梅隆希望借此传输95%的演员表演和面部表情信息到他或她的数码虚拟人物身上。结果便是无比逼真的成像效果，观众完全无法区别真人与虚拟人物的交互。 　　（http://www.popularmechanics.com/technology/industry/4339457.html） 　　 　　联合数字立体摄影机则是导演卡梅隆和数字摄像技术创新者，摄像师Vince Page共同开创的3D立体摄像系统。此系统使用两台索尼HDC-F950 高清摄像镜头，如同人的左右眼一样距离大约70毫米同时拍摄，随着人物距离镜头远近的变化自动调整左右两个镜头之间的距离，并将数据传回相应的EVS XT[2]成像处理系统进行合成，制造出最类似人眼的立体景深感受。联合数字立体摄影机如今已被广泛用于了不少3D电影的拍摄，包括卡梅隆自己使用同一技术拍摄的3D纪录片《深海异形》。 　　（http://video.google.com/videoplay?docid=-241532803911842846#） 　　 　　没有这三项技术创新就没有那种身临其境的潘多拉星体验，观众就不能切身体会那种神秘、迤逦、瑰奇，不能感受身骑龙鸟翱翔的速度、不能领会漫游夜森林的色彩，不能感知生命之树的呼吸与呢喃。而这一切的感受都是属于影院的，是确保故事逼真情感真切的关键。 作为程序员，当看到 Fenng 的这篇文章 制作《阿凡达》特效的超级计算机时，我的心加速跳动了几下。 是 Linux！ HP Cluster Platform 3000BL 集群平台作为其解决方案， 操作系统是 Linux！ 看到了吧，研究和使用Linux是大有前途的，可大(大型集群)、可小(嵌入式)，作为程序员的你，赶紧加入这趟Linux高铁吧！ From Tairan&#8217;s Story, post 阿凡达 Avatar © Daniel Wang for Tairan's Story, [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2010/01/05/avatar/">阿凡达 Avatar</a></p>
</div>
<p>说啥呢？ 其实对于电影本身真的没啥好说的，有条件的去看IMAX+3D，没条件的看普通3D，剩下没条件的去创造条件到电影院看。</p>
<p>不在电影院看《Avatar》就等于没看过！</p>
<p>鼓吹完大家为美帝国贡献GDP之后，来谈谈Avatar背后的故事吧。</p>
<p>作为技术人员，研究一下电影背后的有关技术的话题，还是很有意思的。《Avatar》所带来的震撼是科技的进步！</p>
<blockquote><p>　　为了能百分百的表现潘多拉这个奇绝的梦幻世界，卡梅隆使用了三项突破性技术：虚拟摄像技术、表情抓取，和联合数字立体摄影机（fusion camera system）。<br />
　　<br />
　　虚拟摄像机技术目前为止还主要用于3D虚拟世界游戏，比如《塞尔达传说》系列游戏，游戏者控制虚拟世界中自己的人工智能体，将人物行为信息实时双向反馈，人物所处的三维立体环境随着其动作位置变化实时发生变化。在《阿凡达》中，演员佩戴无数感应器进行“行动抓取”，电脑对抓取的数据直接进行处理，将其所代表的虚拟人物按预制比例直接显示在监控器上，从而使导演能实时观测虚拟人物与虚拟电子潘多拉世界的交互效果。<br />
　　<br />
　　表情抓取指抓取演员表情的电脑图形技术。卡梅隆在洛杉矶的Playa Vista建立了一个比一般表演抓取工作室大5倍的专门舞台（the volume），安装了120个固定摄像头，全角度抓取演员表演的全部信息；扮演Na&#8217;vi人的演员同时佩戴一个特制的帽子，由一部微型摄像机详细记录其在表演中面部表情的一切变化。卡梅隆希望借此传输95%的演员表演和面部表情信息到他或她的数码虚拟人物身上。结果便是无比逼真的成像效果，观众完全无法区别真人与虚拟人物的交互。<br />
　　（http://www.popularmechanics.com/technology/industry/4339457.html）<br />
　　<br />
　　联合数字立体摄影机则是导演卡梅隆和数字摄像技术创新者，摄像师Vince Page共同开创的3D立体摄像系统。此系统使用两台索尼HDC-F950 高清摄像镜头，如同人的左右眼一样距离大约70毫米同时拍摄，随着人物距离镜头远近的变化自动调整左右两个镜头之间的距离，并将数据传回相应的EVS XT[2]成像处理系统进行合成，制造出最类似人眼的立体景深感受。联合数字立体摄影机如今已被广泛用于了不少3D电影的拍摄，包括卡梅隆自己使用同一技术拍摄的3D纪录片《深海异形》。<br />
　　（http://video.google.com/videoplay?docid=-241532803911842846#）<br />
　　<br />
　　没有这三项技术创新就没有那种身临其境的潘多拉星体验，观众就不能切身体会那种神秘、迤逦、瑰奇，不能感受身骑龙鸟翱翔的速度、不能领会漫游夜森林的色彩，不能感知生命之树的呼吸与呢喃。而这一切的感受都是属于影院的，是确保故事逼真情感真切的关键。 </p></blockquote>
<p>作为程序员，当看到 Fenng 的这篇文章 <a href="http://www.dbanotes.net/review/avatar_supercomputer.html" target="_blank">制作《阿凡达》特效的超级计算机</a>时，我的心加速跳动了几下。</p>
<p>是 <strong>Linux！ </strong></p>
<blockquote><p>HP Cluster Platform 3000BL 集群平台作为其解决方案， 操作系统是 Linux！</p></blockquote>
<p>看到了吧，研究和使用Linux是大有前途的，可大(大型集群)、可小(嵌入式)，作为程序员的你，赶紧加入这趟Linux高铁吧！</p>
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2010/01/05/avatar/">阿凡达 Avatar</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2010. |
<a href="http://www.tairan.net/index.php/2010/01/05/avatar/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2010/01/05/avatar/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2010/01/05/avatar/&title=阿凡达 Avatar">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/avatar/" rel="tag">Avatar</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2010/01/05/avatar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在linux上使用swap文件</title>
		<link>http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/</link>
		<comments>http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 03:26:26 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=684</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post 在linux上使用swap文件 作为个人用户，为swap分一个磁盘分区有些浪费，其实我们可以使用swap file来替代swap 分区，而且还可以很方便的调整swap file文件的大小。 To add a swap file: 1. Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536. 2. At a shell prompt as root, type the following [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/">在linux上使用swap文件</a></p>
</div>
<p>作为个人用户，为swap分一个磁盘分区有些浪费，其实我们可以使用swap file来替代swap 分区，而且还可以很方便的调整swap file文件的大小。</p>
<blockquote><p> <strong>To add a swap file:</strong></p>
<p>   1.  Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.</p>
<p>   2.  At a shell prompt as root, type the following command with count being equal to the desired block size:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">      <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>swapfile <span style="color: #007800;">bs</span>=<span style="color: #000000;">1024</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">65536</span></pre></div></div>

<p>   3.  Setup the swap file with the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">      mkswap <span style="color: #000000; font-weight: bold;">/</span>swapfile</pre></div></div>

<p>   4. To enable the swap file immediately but not automatically at boot time:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">      swapon <span style="color: #000000; font-weight: bold;">/</span>swapfile</pre></div></div>

<p>   5.  To enable it at boot time, edit <em>/etc/fstab</em> to include:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">      <span style="color: #000000; font-weight: bold;">/</span>swapfile               swap                    swap    defaults        <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

<p>      The next time the system boots, it will enable the new swap file.</p>
<p>   6. After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat <em>/proc/swaps</em> or free.
</p></blockquote>
<p>参考:<br />
     <a href="http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html" target="_blank">RHL-8.0-Manual</a></p>
<p>EOF</p>
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/">在linux上使用swap文件</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/&title=在linux上使用swap文件">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a>, <a href="http://www.tairan.net/index.php/tag/swap/" rel="tag">swap</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/11/22/using-the-swap-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的Linux-KVM</title>
		<link>http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/</link>
		<comments>http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:00:26 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.tairan.net/index.php/2009/10/14/%e6%88%91%e7%9a%84linux-kvm/</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post 我的Linux-KVM kvm Originally uploaded by tairan.wang 用Linux当HOST有很多好处，有很多自由的虚拟机软件可以使用。现在我选择的是 Kernel-based virtual machine &#8212; KVM。 From Tairan&#8217;s Story, post 我的Linux-KVM © Daniel Wang for Tairan's Story, 2009. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: KVM, linux Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/">我的Linux-KVM</a></p>
</div>
<div style="margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/40936183@N07/4008883716/" title="photo sharing"><img src="http://farm4.static.flickr.com/3083/4008883716_139ef62167_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br />
<br />
<span style="font-size: 0.9em; margin-top: 0px;"><br />
<a href="http://www.flickr.com/photos/40936183@N07/4008883716/">kvm</a><br />
<br />
Originally uploaded by <a href="http://www.flickr.com/people/40936183@N07/">tairan.wang</a><br />
</span>
</div>
<p>用Linux当HOST有很多好处，有很多自由的虚拟机软件可以使用。现在我选择的是 Kernel-based virtual machine &#8212; KVM。
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/">我的Linux-KVM</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/&title=我的Linux-KVM">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/kvm/" rel="tag">KVM</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/10/14/my-linux-kvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TMD还是Linux的桌面好用</title>
		<link>http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/</link>
		<comments>http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 13:31:46 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=644</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post TMD还是Linux的桌面好用 本人过着双重生活，白天在MS讨生活，夜晚沉浸在Linux的世界中。一直以来总是认为Windows的桌面环境，尤其是WIN7要比Linux的桌面要易用一些，毕竟Windows是傻瓜化的操作。可今天我才发现Linux的桌面其实更好用。 在本人的双重世界中，Linux的运行时的硬件总是距今有3－4年之久，而Windows的硬件却是当今主流中端配置。所以在在Linux上运行桌面时总感觉没那么的流畅，没有Windows的方便。当我给Linux一个当今低端配置时，Linux世界发生了翻天覆地的变化。输入法也不迟钝了，窗口切换也流畅了，高清电影播放ok了，再跑个Virtual Box玩XP也绰绰有余了。 如此的好处只能自己亲自体验才行，如果你不相信的话，赶紧装个Linux试试！ 废话少说，有图为证： From Tairan&#8217;s Story, post TMD还是Linux的桌面好用 © Daniel Wang for Tairan's Story, 2009. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: linux, Linux Mint Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/">TMD还是Linux的桌面好用</a></p>
</div>
<p>本人过着双重生活，白天在MS讨生活，夜晚沉浸在Linux的世界中。一直以来总是认为Windows的桌面环境，尤其是WIN7要比Linux的桌面要易用一些，毕竟Windows是傻瓜化的操作。可今天我才发现Linux的桌面其实更好用。</p>
<p>在本人的双重世界中，Linux的运行时的硬件总是距今有3－4年之久，而Windows的硬件却是当今主流中端配置。所以在在Linux上运行桌面时总感觉没那么的流畅，没有Windows的方便。当我给Linux一个当今低端配置时，Linux世界发生了翻天覆地的变化。输入法也不迟钝了，窗口切换也流畅了，高清电影播放ok了，再跑个Virtual Box玩XP也绰绰有余了。</p>
<p>如此的好处只能自己亲自体验才行，如果你不相信的话，赶紧装个Linux试试！</p>
<p>废话少说，有图为证：<br />
<a href="http://www.tairan.net/wp-content/uploads/2009/10/Screenshot.png" target="_blank"><img src="http://www.tairan.net/wp-content/uploads/2009/10/Screenshot-300x187.png" alt="Linux Mint desktop " title="Linux Mint desktop " width="300" height="187" class="aligncenter size-medium wp-image-645" /></a>
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/">TMD还是Linux的桌面好用</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/&title=TMD还是Linux的桌面好用">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a>, <a href="http://www.tairan.net/index.php/tag/linux-mint/" rel="tag">Linux Mint</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/10/10/linux-destop-is-very-nice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Linux initating order</title>
		<link>http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/</link>
		<comments>http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 01:52:14 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology 转载]]></category>
		<category><![CDATA[参考消息]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.tairan.net/?p=291</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post The Linux initating order Linux 启动顺序 转自 http://blog.csdn.net/Tcrazyalways/archive/2008/11/27/3391243.aspx 了解了Linux的启动顺序有利于在系统启动时enable/disable各种系统服务 Linux 启动顺序： 1、 BIOS自检 2、 运行系统内核并检测硬件 3、 运行系统的第一个进程init 4、 init读取系统引导配置文件/etc/inittab中的信息进行初始化 /etc/rc.d/rc.sysinit&#8212;&#8212;系统初始化脚本 /etc/rc.d/rcX.d/[KS]*&#8212;&#8212;根据运行级别配置服务 /etc/rc.d/rc.local&#8212;&#8212;&#8212;执行本地特殊配置 其它&#8212;&#8212;&#8212;不同运行级别的特殊服务 Linux启动运行init程序来启动相关程序初始化，与启动相关的一个概念是运行级，运行级是操作系统当前运行的级别，在不同运行级别上可以定义属于该运行级的启动程序，系统的运行级别可以在/etc/inittab文件指定，与运行级相关运行程序通过从源/etc/rc.d/init.d下链接到目的/etc/rcX.d，这里X为系统的默认运行级别，因此，默认的启动脚本放在/etc/rc.d/init.d下。 # 缺省的运行级，Linux用到的级别如下： # 0 &#8211; 停机（千万不要把initdefault 设置为0 ） # 1 &#8211; 单用户模式 # 2 &#8211; 多用户，但是没有 NFS # 3 &#8211; 完全多用户模式 # 4 &#8211; 没有用到 # 5 [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/">The Linux initating order</a></p>
</div>
<p>Linux 启动顺序 转自 http://blog.csdn.net/Tcrazyalways/archive/2008/11/27/3391243.aspx</p>
<p>了解了Linux的启动顺序有利于在系统启动时enable/disable各种系统服务</p>
<blockquote><p>
Linux 启动顺序：<br />
1、 BIOS自检<br />
2、 运行系统内核并检测硬件<br />
3、 运行系统的第一个进程init<br />
4、 init读取系统引导配置文件/etc/inittab中的信息进行初始化<br />
             /etc/rc.d/rc.sysinit&#8212;&#8212;系统初始化脚本<br />
             /etc/rc.d/rcX.d/[KS]*&#8212;&#8212;根据运行级别配置服务<br />
             /etc/rc.d/rc.local&#8212;&#8212;&#8212;执行本地特殊配置<br />
             其它&#8212;&#8212;&#8212;不同运行级别的特殊服务</p>
<p>Linux启动运行init程序来启动相关程序初始化，与启动相关的一个概念是运行级，运行级是操作系统当前运行的级别，在不同运行级别上可以定义属于该运行级的启动程序，系统的运行级别可以在/etc/inittab文件指定，与运行级相关运行程序通过从源/etc/rc.d/init.d下链接到目的/etc/rcX.d，这里X为系统的默认运行级别，因此，默认的启动脚本放在/etc/rc.d/init.d下。</p>
<p># 缺省的运行级，Linux用到的级别如下：<br />
# 0 &#8211; 停机（千万不要把initdefault 设置为0 ）<br />
# 1 &#8211; 单用户模式<br />
# 2 &#8211; 多用户，但是没有 NFS<br />
# 3 &#8211; 完全多用户模式<br />
# 4 &#8211; 没有用到<br />
# 5 &#8211; X11<br />
# 6 &#8211; 重新启动 （千万不要把initdefault 设置为6 ）<br />
#</p>
<p>对各个运行级的详细解释：<br />
0 为停机，机器关闭。<br />
1 为单用户模式，就像Win9x 下的安全模式类似。<br />
2 为多用户模式，但是没有NFS 支持。<br />
3 为完整的多用户模式，是标准的运行级。<br />
4 一般不用，在一些特殊情况下可以用它来做一些事情。<br />
例如在笔记本电脑的电池用尽时，可以切换到这个模式来做一些设置。<br />
5 就是 X11 ，进到 X Window 系统了。<br />
6 为重启，运行 init 6 机器就会重启。</p>
<p>如何让系统在启动是运行指定程序，根据启动顺序中的第四步，有两种方式。<br />
一种方式是根据运行级别配置服务。<br />
一种方式是执行本地特殊配置。<br />
举例，任务在启动是运行命令cvslockd：<br />
方式一：<br />
1. 建立自启动脚本/etc/rc.d/init.d/cvslockd，内容为：<br />
#!/bin/bash<br />
/usr/local/bin/cvslockd</p>
<p>设置文件的属性为可执行：<br />
#chmod +x /etc/rc.d/init.d/cvslockd</p>
<p>2. 查看计算机运行级别，在文件/etc/inittab里看到id:5:initdefault:，则此系统运行级别为5。<br />
3. 到/etc/rc5.d目录下，把你要执行的可执行文件做一个软连接，而且在命名的时候要以大写S字母开头，S之后的数字大小代表执行顺序的先后，数字越大越后执行。<br />
#ln -s /etc/rc.d/init.d/cvslockd /etc/rc5.d/S100cvslockd<br />
#ln -s /etc/rc.d/init.d/cvslockd /etc/rc0.d/K20cvslockd</p>
<p>方式二：<br />
在/etc/rc.d/rc.local 添加 exec /usr/local/bin/cvslockd<br />
该方式是在最后启动cvslockd。
</p></blockquote>
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/">The Linux initating order</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/&title=The Linux initating order">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/03/30/the-linux-initating-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The note of install Hyper-V on Windows 2008 Server</title>
		<link>http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/</link>
		<comments>http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 02:37:38 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.tairan.org/?p=206</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post The note of install Hyper-V on Windows 2008 Server Windows 2008 Server 上安装和使用 Hyper-V 笔记 安装 Hyper-V 有几个硬性要求 1. CPU 支持 Virtualization 2. 宿主操作系统需要是 64bit 在安装过程中有几个需要注意的地方 1. 宿主操作系统的Location必须是United States的，否则 Hyper-V Virtual Machine Management Service不能启动 2. 如果CPU 支持 Virtualization 却不能启动 Guest 操作系统，那么需要检查主板BIOS中是否将 Virtualization 打开，BIOS已经打开也不行的话，那么升级下BIOS就可以了。我的 HP dc5750 就是升级到最新的BIOS才行的 Hyper-V Guest 操作系统的支持 Hyper-V 和 [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/">The note of install Hyper-V on Windows 2008 Server</a></p>
</div>
<h1>Windows 2008 Server 上安装和使用 Hyper-V 笔记</h1>
<p>安装 Hyper-V 有几个硬性要求<br />
1. CPU 支持 Virtualization<br />
2. 宿主操作系统需要是 64bit</p>
<p>在安装过程中有几个需要注意的地方<br />
1. 宿主操作系统的Location必须是United States的，否则 Hyper-V Virtual Machine Management Service不能启动<br />
2. 如果CPU 支持 Virtualization 却不能启动 Guest 操作系统，那么需要检查主板BIOS中是否将 Virtualization 打开，BIOS已经打开也不行的话，那么升级下BIOS就可以了。我的 HP dc5750 就是升级到最新的BIOS才行的</p>
<p>Hyper-V Guest 操作系统的支持<br />
Hyper-V 和 VPC Server 相比是明确提出支持 Linux 的，可这并不代表所有的 Linux 发行版都能不错的运行在 Hyper-V 上面。下面是 Microsoft 提供的支持 Linux 列表，更多的支持访问 http://www.microsoft.com/windowsserver2008/en/us/hyperv-supported-guest-os.aspx</p>
<pre>
Linux Distributions (VMs configured with 1 virtual processor only)
      SUSE Linux Enterprise Server 10 with Service Pack 2 x86 Edition
      SUSE Linux Enterprise Server 10 with Service Pack 2 x64 Edition
      SUSE Linux Enterprise Server 10 with Service Pack 1 x86 Edition
      SUSE Linux Enterprise Server 10 with Service Pack 1 x64 Edition
</pre>
<p>经过多个发行版安装测试，<span style="background-color:yellow">Ubuntu 8.10, Slackware 12.2, CentOS 5 是无法安装的</span>。ArchLinux 倒是可以不错的运行在 Hyper-V 上面。<br />
安装 Linux 时需要注意的是，网络设备需要使用 <span style="background-color:yellow">Legacy Network Adapter</span></p>
<p>总结<br />
Hyper-V 比 Virtual PC Server 是一个很大的进步，在实际中使用 Hyper-V 还有很长的路要走，Hyper-V 支持的 Guest 系统都好贵，而且 Hyper-V 本身就只能在一个很贵的 Windows 2008 Server 上使用！还是使用 Linux 作为 Host 划算，而且更自由！
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/">The note of install Hyper-V on Windows 2008 Server</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/&title=The note of install Hyper-V on Windows 2008 Server">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/hyper-v/" rel="tag">Hyper-V</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/02/04/the-note-of-install-hyper-v-on-windows-2008-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install GRUB using grub-install</title>
		<link>http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/</link>
		<comments>http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 08:46:45 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.tairan.org/?p=187</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post Install GRUB using grub-install 用过GRUB以后才知道这个玩意的强大。GRUB加上各种Linux kernel，可以组合成各种启动和安装系统方式。 现在总结一下安装GURB。 环境： Virtual Box #虚拟机 LFS-LiveCD #提供安装GRUB环境 省略若干配置虚拟机的文字&#8230; 我们需要在一块新磁盘上安装GRUB，这块磁盘在系统中为 /dev/hda 首先要分区，格式化。(fdisk, mkfs.xfs)。目前GRUB也支持XFS文件系统启动了 挂载分区 mkdir /tmp/hda mount /dev/hda1 /tmp/hda 安装 grub-install --recheck --root-directory=/tmp/hda /dev/hda 注意: 如果不挂载分区，我这里会提示，不知道其他人有没有遇到这个情况 grub-install does not have any corresponding BIOS drive 另外在指定驱动器的时候不需要指定分区号 (hda1) 至此，GRUB就安装结束了，重启计算机后就会发现GRUB的提示环境了。 From Tairan&#8217;s Story, post Install GRUB using grub-install © [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/">Install GRUB using grub-install</a></p>
</div>
<p>用过GRUB以后才知道这个玩意的强大。GRUB加上各种Linux kernel，可以组合成各种启动和安装系统方式。<br />
现在总结一下安装GURB。</p>
<p>环境：<br />
Virtual Box #虚拟机<br />
LFS-LiveCD #提供安装GRUB环境</p>
<p>省略若干配置虚拟机的文字&#8230;</p>
<p>我们需要在一块新磁盘上安装GRUB，这块磁盘在系统中为 /dev/hda</p>
<p>首先要分区，格式化。(fdisk, mkfs.xfs)。目前GRUB也支持XFS文件系统启动了</p>
<p>挂载分区</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hda
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hda</pre></div></div>

<p>安装</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">grub-install <span style="color: #660033;">--recheck</span> <span style="color: #660033;">--root-directory</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda</pre></div></div>

<p>注意:<br />
如果不挂载分区，我这里会提示，不知道其他人有没有遇到这个情况</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">grub-install does not have any corresponding BIOS drive</pre></div></div>

<p>另外在指定驱动器的时候不需要指定分区号 (hda1)</p>
<p>至此，GRUB就安装结束了，重启计算机后就会发现GRUB的提示环境了。
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/">Install GRUB using grub-install</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/&title=Install GRUB using grub-install">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/grub/" rel="tag">grub</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/01/08/install-grub-using-grub-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multisystem boot via GRUB</title>
		<link>http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/</link>
		<comments>http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 02:54:15 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.tairan.org/?p=181</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post Multisystem boot via GRUB 以前安装多系统(Linux®+Windows®)都是在一个硬盘上，先安装Windows后安装Linux，然后使用GRUB (or LILO)来引导系统。 如今生活富裕了，硬盘也多了起来，为了更方便的重装系统。我把Linux®和Windows®分别安装在不同的硬盘上。这时就不用严格限制安装系统谁先谁后了。(其实不是Windows®是笨，而是故意不支持通用引导) 硬盘物理连接结构如下 hdd0 &#8212; Primary IDE 安装 Linux hdd2 &#8212; Second IDE 安装Windows 为什么不在同一根IDE线上安装硬盘呢？往下看 安装Linux并使用GRUB作为boot程序 进入BIOS，把 Primary IDE 设置为 Disable 安装Windows，此时Windows会将hdd2认作当前计算机中的Primary Disk，这样就会在hdd2的MDR创建引导文件。系统安装完毕，这样就可以通过在BIOS来设置first boot来分别引导Linux或Windows了。 接下来配置GRUB，通过GRUB来引导Windows，而不是频繁的修改BIOS。 编辑 /boot/grub/menu.lst 加上下面的代码 title Windows XP map &#40;hdd0&#41; &#40;hdd2&#41; map &#40;hdd2&#41; &#40;hdd0&#41; rootnoverify &#40;hdd2,0&#41; chainloader +1 这段配置中最重要的就数那两行map指令了。这个是专门为(DOS/Windows)准备的。参见 GRUB Manual 这样就可以使用GRUB来分别引导Linux和Windows了. [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/">Multisystem boot via GRUB</a></p>
</div>
<p>以前安装多系统(Linux<sup>®</sup>+Windows<sup>®</sup>)都是在一个硬盘上，先安装Windows后安装Linux，然后使用GRUB (or LILO)来引导系统。<br />
如今生活富裕了，硬盘也多了起来，为了更方便的重装系统。我把Linux<sup>®</sup>和Windows<sup>®</sup>分别安装在不同的硬盘上。这时就不用严格限制安装系统谁先谁后了。(其实不是Windows<sup>®</sup>是笨，而是故意不支持通用引导)<br />
硬盘物理连接结构如下<br />
hdd0 &#8212; Primary IDE 安装 Linux<br />
hdd2 &#8212; Second IDE 安装Windows<br />
为什么不在同一根IDE线上安装硬盘呢？往下看<br />
安装Linux并使用GRUB作为boot程序<br />
进入BIOS，把 Primary IDE 设置为 <strong>Disable</strong><br />
安装Windows，此时Windows会将hdd2认作当前计算机中的Primary Disk，这样就会在hdd2的MDR创建引导文件。系统安装完毕，这样就可以通过在BIOS来设置first boot来分别引导Linux或Windows了。<br />
接下来配置GRUB，通过GRUB来引导Windows，而不是频繁的修改BIOS。<br />
编辑 /boot/grub/menu.lst 加上下面的代码</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title Windows XP
map <span style="color: #7a0874; font-weight: bold;">&#40;</span>hdd0<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>hdd2<span style="color: #7a0874; font-weight: bold;">&#41;</span>
map <span style="color: #7a0874; font-weight: bold;">&#40;</span>hdd2<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>hdd0<span style="color: #7a0874; font-weight: bold;">&#41;</span>
rootnoverify <span style="color: #7a0874; font-weight: bold;">&#40;</span>hdd2,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
chainloader +<span style="color: #000000;">1</span></pre></div></div>

<p>这段配置中最重要的就数那两行map指令了。这个是专门为(DOS/Windows)准备的。参见 <a target="_blank" href="http://www.gnu.org/software/grub/manual/html_node/DOS_002fWindows.html#DOS_002fWindows">GRUB Manual</a></p>
<p>这样就可以使用GRUB来分别引导Linux和Windows了.</p>
<p>总结:<br />
学习一个工具如何使用,首先的就是通读使用手册. 然后不断的动手去做! 如此,<strong><em>当你不断的向期望的目标努力的时候就获得了经验!</em></strong></p>
<p>文章中提到的<br />
Windows 即是 Windows<sup>®</sup><br />
Linux 即是 Linux<sup>®</sup></p>
<p>这些都是人家的注册商标，要尊重！
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/">Multisystem boot via GRUB</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2009. |
<a href="http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/&title=Multisystem boot via GRUB">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/grub/" rel="tag">grub</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2009/01/07/multisystem-boot-via-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>局域网安装CentOS Linux</title>
		<link>http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/</link>
		<comments>http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 15:05:27 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.tairan.org/?p=102</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post 局域网安装CentOS Linux 简介 这个星球上Linux发行版的老大哥目前还是Redhat。所以用Redhat做服务器端的操作系统，虽不说是最好，也算是更好的选择了。现在Redhat AS版本收费啦，咱们自个儿用就选CentOS吧，根正苗红。根据我自己的实际情况来介绍一下在没有光驱和网络启动芯片时通过局域网来安装CentOS。准确的来说是用Grub启动后用HTTP方式安装。 安装环境介绍 服务器端介绍 操作系统: ubuntu-8.10 Web Server: lighttpd-1.4.19 IP: 192.168.1.200 客户端介绍 原有操作系统: ubuntu-8.04 gurb 启动 安装前的准备 首先我们需要客户端的启动文件 vmlinuz initrd.img 这两个文件可以在CentOS网站下载CentOS-netinstall.iso 里面的启动文件是最佳选择。 然后准备CentOS安装文件，我选择的是dvd版的iso，这样可以节省很多更换光盘的步骤。 挂载iso文件,为了减少访问权限相关的限制，我把目录挂载到/tmp/centos上。 # mount -o loop /path/of/dvd.iso /tmp/centos 建立到web server目录的链接，我的默认路径是 /var/www # ln -s /tmp/centos /var/www/centos 做好以上步骤后在浏览器中检查是否能访问http://localhost/centos如果可以的话，服务器端的准备工作就做完了 客户端 将启动文件 vmlinuz initrd.img 传送到客户端 /boot 目录下 编辑 /boot/grub/menu.lst [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/">局域网安装CentOS Linux</a></p>
</div>
<p><strong>简介</strong></p>
<p>这个星球上Linux发行版的老大哥目前还是Redhat。所以用Redhat做服务器端的操作系统，虽不说是最好，也算是更好的选择了。现在Redhat AS版本收费啦，咱们自个儿用就选<a href="http://www.centos.org" target="_blank">CentOS</a>吧，根正苗红。根据我自己的实际情况来介绍一下在没有光驱和网络启动芯片时通过局域网来安装CentOS。准确的来说是用Grub启动后用HTTP方式安装。</p>
<p><strong>安装环境介绍</strong></p>
<p><strong>服务器端介绍</strong><br />
操作系统: <a href="http://www.ubuntu.com" target="_blank">ubuntu-8.10</a><br />
Web Server: <a href="http://www.lighttpd.net" target="_blank">lighttpd-1.4.19</a><br />
IP: 192.168.1.200</p>
<p><strong>客户端介绍</strong><br />
原有操作系统: ubuntu-8.04<br />
gurb 启动</p>
<p><strong>安装前的准备</strong><br />
首先我们需要客户端的启动文件 vmlinuz initrd.img 这两个文件可以在CentOS网站下载CentOS-netinstall.iso 里面的启动文件是最佳选择。<br />
然后准备CentOS安装文件，我选择的是dvd版的iso，这样可以节省很多更换光盘的步骤。</p>
<p>挂载iso文件,为了减少访问权限相关的限制，我把目录挂载到/tmp/centos上。<br />
<code><br />
# mount -o loop /path/of/dvd.iso /tmp/centos<br />
</code><br />
建立到web server目录的链接，我的默认路径是 /var/www<br />
<code><br />
# ln -s /tmp/centos /var/www/centos<br />
</code><br />
做好以上步骤后在浏览器中检查是否能访问<code>http://localhost/centos</code>如果可以的话，服务器端的准备工作就做完了</p>
<p><strong>客户端</strong><br />
将启动文件 vmlinuz initrd.img 传送到客户端 /boot 目录下<br />
编辑 /boot/grub/menu.lst<br />
<code><br />
title        CentOS<br />
root        hda(0,0)<br />
kernel     /boot/vmlinuz<br />
initrd      /boot/initrd.img<br />
</code><br />
客户端准备工作就做好了，reboot</p>
<p>安装并配置系统<br />
这些事情实在没有想说的兴趣了，手册上写的清清楚楚。在设置web site时，只要填写ip而不需要协议头http://，CentOS directory 填 /centos 其实也就是dvd的根目录，安装系统相关的文件都在那里。</p>
<p>总结：</p>
<p>Linux 的生命力的确很顽强，有各种各样的安装方法，然而最关键的就是<em>客户端如何启动以及安装源的位置</em>，因为我原有Linux系统并且使用grub启动，而且又有另外一台机器作为web server所以选择这种方式来安装。</p>
<p>如果客户端是windows的话，需要安装一个grub4dos。</p>
<p>btw: 其实Windows也可以通过网络安装，也很简单。我们追捧Linux的时候，也应该正视Windows今天的成就。相互学习才会有进步。Windows一直在改进！</p>
<p>完
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/">局域网安装CentOS Linux</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2008. |
<a href="http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/&title=局域网安装CentOS Linux">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/centos/" rel="tag">CentOS</a>, <a href="http://www.tairan.net/index.php/tag/linux/" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2008/11/07/install-centos-linux-via-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
