<?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>Some reminiscences, some memories &#187; ubuntu</title>
	<atom:link href="http://www.mikespook.com/index.php/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikespook.com</link>
	<description>Just another boring day</description>
	<lastBuildDate>Tue, 10 Jan 2012 03:14:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>firefox 5.0 安装 Google Toolbar 的办法</title>
		<link>http://www.mikespook.com/2011/06/firefox-5-0-%e5%ae%89%e8%a3%85-google-toolbar-%e7%9a%84%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.mikespook.com/2011/06/firefox-5-0-%e5%ae%89%e8%a3%85-google-toolbar-%e7%9a%84%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 01:59:11 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[firefox 5]]></category>
		<category><![CDATA[firefox add-one]]></category>
		<category><![CDATA[google toolbar]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=1061</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
Ubuntu 一向都很高效，firefox 5 出来没几天就将 11.04 的浏览器升级到了版本 5。于是，有点小杯具了。其他不兼容差价都是平常不怎么用的，不用也罢。结果 google toolbar 居然不兼容。上个邮箱、书签，搜个资料，一直都用的是这个。于是，过了数天没有 google toolbar 的日子……

忍不下去了！！！

上网搜了一下，找到一个不错的firefox add-ons：Add-on Compatibility Reporter。

<span class="readmore"><a href="http://www.mikespook.com/2011/06/firefox-5-0-%e5%ae%89%e8%a3%85-google-toolbar-%e7%9a%84%e5%8a%9e%e6%b3%95/" title="firefox 5.0 安装 Google Toolbar 的办法">阅读全文——共244字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>Ubuntu 一向都很高效，firefox 5 出来没几天就将 11.04 的浏览器升级到了版本 5。于是，有点小杯具了。其他不兼容差价都是平常不怎么用的，不用也罢。结果 google toolbar 居然不兼容。上个邮箱、书签，搜个资料，一直都用的是这个。于是，过了数天没有 google toolbar 的日子……</p>
<p>忍不下去了！！！</p>
<p>上网搜了一下，找到一个不错的firefox add-ons：<a href="https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/" target="_blank">Add-on Compatibility Reporter</a>。</p>
<p>用法简单，直接安装重启 firefox 即可，无须设置。</p>
<p>Bingo！</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2011/06/firefox5-google-toolbar.png"><img src="http://www.mikespook.com/wp-content/uploads/2011/06/firefox5-google-toolbar.png" alt="" title="firefox5-google-toolbar" width="562" height="107" class="alignnone size-full wp-image-1062" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2011/06/firefox-5-0-%e5%ae%89%e8%a3%85-google-toolbar-%e7%9a%84%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.4 countdown</title>
		<link>http://www.mikespook.com/2010/04/ubuntu-10-4-countdown/</link>
		<comments>http://www.mikespook.com/2010/04/ubuntu-10-4-countdown/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 02:51:04 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[countdown]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=548</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
Ubuntu 9.10 的 countdown：http://www.mikespook.com/index.php/archives/407

时间如梭啊，10.4 马上要发布了。一起倒数吧……

]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>Ubuntu 9.10 的 countdown：<a href="http://www.mikespook.com/index.php/archives/407">http://www.mikespook.com/index.php/archives/407</a></p>
<p>时间如梭啊，10.4 马上要发布了。一起倒数吧……</p>
<p><script src="http://www.ubuntu.com/files/countdown/display.js" type="text/javascript"></script></p>
<p><span id="more-548"></span></p>
<p><script src="http://www.ubuntu.com/files/countdown/display1.js" type="text/javascript"></script></p>
<p><script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display2.js"></script></p>
<p><a href="http://www.ubuntu.com/"><img src="http://www.ubuntu.com/files/countdown/static.png" border="0" alt="Ubuntu: For Desktops, Servers, Netbooks and in the cloud" width="180" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2010/04/ubuntu-10-4-countdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 下安装 OpenTTD 1.0.0 中文版</title>
		<link>http://www.mikespook.com/2010/04/ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85-openttd-1-0-0-%e4%b8%ad%e6%96%87%e7%89%88/</link>
		<comments>http://www.mikespook.com/2010/04/ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85-openttd-1-0-0-%e4%b8%ad%e6%96%87%e7%89%88/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 01:33:18 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openttd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[中文]]></category>
		<category><![CDATA[乱码]]></category>
		<category><![CDATA[方块]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=535</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
OpenTTD是开源版本的《运输大亨》，这两天刚刚发布了 1.0.0，中文汉化很完整。经本人验证，使用官方提供的 deb 包安装后，对于中文的显示需要小小调整。本着 Mr&#8217;Hu 的 BuZheTeng 原理，现记录一下较为简单的安装过程。

下载 openttd 的 1.0.0 版本：http://binaries.openttd.org/releases/1.0.0/openttd-1.0.0-linux-ubuntu-karmic-i386.deb。

使用命令 dpkg -i openttd-1.0.0-linux-ubuntu-karmic-i386.deb 安装。或双击 deb 文件，使用 GDebi 在图形界面下安装。安装过程可能提示软件库中有旧的版本，更为稳定，忽略不管即可。

<span class="readmore"><a href="http://www.mikespook.com/2010/04/ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85-openttd-1-0-0-%e4%b8%ad%e6%96%87%e7%89%88/" title="Ubuntu 9.10 下安装 OpenTTD 1.0.0 中文版">阅读全文——共1204字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>OpenTTD是开源版本的《运输大亨》，这两天刚刚发布了 1.0.0，中文汉化很完整。经本人验证，使用官方提供的 deb 包安装后，对于中文的显示需要小小调整。本着 Mr&#8217;Hu 的 BuZheTeng 原理，现记录一下较为简单的安装过程。<span id="more-535"></span></p>
<p>下载 openttd 的 1.0.0 版本：<a href="http://binaries.openttd.org/releases/1.0.0/openttd-1.0.0-linux-ubuntu-karmic-i386.deb" target="_blank">http://binaries.openttd.org/releases/1.0.0/openttd-1.0.0-linux-ubuntu-karmic-i386.deb</a>。</p>
<p>使用命令 dpkg -i openttd-1.0.0-linux-ubuntu-karmic-i386.deb 安装。或双击 deb 文件，使用 GDebi 在图形界面下安装。安装过程可能提示软件库中有旧的版本，更为稳定，忽略不管即可。</p>
<p>安装好后，在终端执行 openttd 会报错“Error: Failed to find a graphics set. Please acquire a graphics set for OpenTTD. See section 4.1 of readme.txt.”。如果乐意，直接去看 readme.txt 的 4.1 节，或者照着下面的步骤做也不错。</p>
<p>下载：<a href="http://binaries.openttd.org/extra/opengfx/0.2.3/opengfx-0.2.3-all.zip" target="_blank">http://binaries.openttd.org/extra/opengfx/0.2.3/opengfx-0.2.3-all.zip</a></p>
<p>下载：<a href="http://binaries.openttd.org/extra/opensfx/0.2.3/opensfx-0.2.3-all.zip" target="_blank">http://binaries.openttd.org/extra/opensfx/0.2.3/opensfx-0.2.3-all.zip</a></p>
<p>下载：<a href="http://binaries.openttd.org/extra/openmsx/0.2.1/openmsx-0.2.1-all.zip" target="_blank">http://binaries.openttd.org/extra/openmsx/0.2.1/openmsx-0.2.1-all.zip</a></p>
<p>解压缩。</p>
<p>在 $HOME/.openttd/ 下建立 data 目录。将上面解压缩的三个目录移入 $HOME/.openttd/data/ 中：</p>
<pre class="brush: bash; title: ; notranslate">
$HOME/.openttd/data/opengfx-0.2.3/
$HOME/.openttd/data/openmsx-0.2.1/
$HOME/.openttd/data/opensfx-0.2.3/
</pre>
<p>这时执行 openttd 就可以启动 OpenTTD 了。不过中文会是方块，如图：</p>
<p><img class="size-full wp-image-537 alignnone" title="openttd-no-chinese" src="http://www.mikespook.com/wp-content/uploads/2010/04/openttd-no-chinese.png" alt="" width="267" height="204" /></p>
<p>需要修改 $HOME/.openttd/openttd.cfg 的 18 至 23 行，增加字体文件路径，例如我使用 uming 字体：</p>
<pre class="brush: bash; title: ; notranslate">
small_font = /usr/share/fonts/truetype/arphic/uming.ttc
medium_font = /usr/share/fonts/truetype/arphic/uming.ttc
large_font = /usr/share/fonts/truetype/arphic/uming.ttc
small_size = 12
medium_size = 14
large_size = 16
</pre>
<p>在进入 OpenTTD，世界清爽了：</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2010/04/openttd-with-chinese.png" target="_blank"><img class="size-medium wp-image-538 alignnone" title="openttd-with-chinese" src="http://www.mikespook.com/wp-content/uploads/2010/04/openttd-with-chinese-300x225.png" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2010/04/ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85-openttd-1-0-0-%e4%b8%ad%e6%96%87%e7%89%88/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在 Ubuntu 9.10 下安装和简单配置 trac 0.12dev</title>
		<link>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae-trac-0-12dev/</link>
		<comments>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae-trac-0-12dev/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 02:26:41 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=508</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
昨日（2010-03-14）在金山参加了”CPyUG会课总第38期~暨珠三角技术沙龙第6次“。会中廖杰大仙用平和的语气，激动人心的介绍了 trac 若干功能、以及插件的开发和金山已经在使用的或者准备使用的插件。回来手痒，随尝试安装 0.12dev。

关于 Windows 下的安装，请看赖神的《在 windows 下安装和简单配置 trac 0.12》。

Ubuntu 下没 Windows 下麻烦，不过如果完全按照 Trac 官方的文档，还是会略有折腾，特别记录于此，以备后用。

<span class="readmore"><a href="http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae-trac-0-12dev/" title="在 Ubuntu 9.10 下安装和简单配置 trac 0.12dev">阅读全文——共1470字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>昨日（2010-03-14）在金山参加了”<a href="http://wiki.woodpecker.org.cn/moin/ZPyUG/2010-03-14" target="_blank">CPyUG会课总第38期~暨珠三角技术沙龙第6次</a>“。会中廖杰大仙用平和的语气，激动人心的介绍了 trac 若干功能、以及插件的开发和金山已经在使用的或者准备使用的插件。回来手痒，随尝试安装 0.12dev。</p>
<p>关于 Windows 下的安装，请看赖神的《<a href="http://blog.csdn.net/lanphaday/archive/2010/03/12/5374066.aspx" target="_blank">在 windows 下安装和简单配置 trac 0.12</a>》。</p>
<p>Ubuntu 下没 Windows 下麻烦，不过如果完全按照 Trac 官方的文档，还是会略有折腾，特别记录于此，以备后用。<span id="more-508"></span></p>
<pre lang="bash" line="1">
# 安装 ubuntu 提供的库，能由 apt 管理的包，还是交由 apt 管理
sudo apt-get install subversion
sudo apt-get install python-setuptools
sudo apt-get install sqlite3
sudo apt-get install python-pysqlite2
sudo apt-get install python-pygments
sudo apt-get install python-docutils
</pre>
<pre lang="bash" line="1">
# 下面的包，不是 ubuntu 没有提供 apt 源，就是源里的版本过旧。所以使用 easy_install 安装最新稳定版。
sudo easy_install pytz
sudo easy_install babel
# Genshi 甚至 stable 版本都不行，所以使用 dev，也就是 svn 中的版本。不过安装好后需要手工做一下处理。
sudo easy_install -U "Genshi==dev"
</pre>
<pre lang="bash" line="1">
# 进入 egg 存放目录
cd /usr/local/lib/python2.6/dist-packages/
# 修改刚才通过 easy_install 安装的 Genshi 的 egg 版本，也许是我哪里没搞合适，用 easy_install 安装 svn 的版本，版本号默认总是 0。
# 本来，版本只要大于 1072 即可，不过为了避免弄混，所以还是用版本库中的真实版本号为好。我安装的时候，genshi 的版本号是 1096。
mv Genshi-0.6dev_r0-py2.6.egg Genshi-0.6dev_r1096-py2.6.egg
# 同时需要修改 easy-install.pth 中的 genshi 的 egg 文件名
sudo vim easy-install.pth
</pre>
<p>在 easy-install.pth 中找到 ./Genshi-0.6dev_r0-py2.6.egg，将这个文件名修改为对应的正确的版本号的文件名。</p>
<pre lang="bash" line="1">
# 然后安装 Trac 的 svn 主线版本。当前，也就是现在的里程碑 0.12dev
sudo easy_install http://svn.edgewall.org/repos/trac/trunk
</pre>
<p>至此，trac 0.12dev 版本安装完毕。<br />
0.12dev 跟之前的版本有些变化的是，在用 trac-admin 创建 trac 环境的时候，不会再询问代码仓库的路径。也就是说，可以在 trac 中完全屏蔽代码管理的功能。</p>
<p>详细的内容可以看 <a href="http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin" target="_blank">http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin</a></p>
<p>另外，必装插件 <a href="http://trac-hacks.org/wiki/AccountManagerPlugin" target="_blank">http://trac-hacks.org/wiki/AccountManagerPlugin</a>。</p>
<p>好吧，如同往日一样，我总是最后才爆点猛料出来：Ubuntu 下的打包好的安装文件——舒放任务通道 <a href="http://py.kingsoft.net/ktrac/wiki/KtracInstall" target="_blank">http://py.kingsoft.net/ktrac/wiki/KtracInstall</a>。</p>
<p>特别感谢 KingSoft、感谢Z.Q.大妈、感谢廖杰……oh，md，我错了，先要感谢祖国-_-!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-%e4%b8%8b%e5%ae%89%e8%a3%85%e5%92%8c%e7%ae%80%e5%8d%95%e9%85%8d%e7%bd%ae-trac-0-12dev/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在 Ubuntu 9.10 Server 上安装 Nginx 0.8.34</title>
		<link>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-server-%e4%b8%8a%e5%ae%89%e8%a3%85-nginx-0-8-34/</link>
		<comments>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-server-%e4%b8%8a%e5%ae%89%e8%a3%85-nginx-0-8-34/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 07:16:55 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[编译]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=483</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
Nginx 在 3 月 3 日放出了 0.8.34 这个开发版。张宴也随即更新了《Nginx 0.8.x + PHP 5.2.13（FastCGI）搭建胜过Apache十倍的Web服务器》到第六版。不过，他写的记录是针对 CentOS、Redhat 等 rpm 包管理的服务器。由于习惯了 debian 系列的服务器，特别是用惯了 ubuntu 服务器，在这里特别做一下 Ubuntu 9.10 下的安装笔记。其他基于 deb 包管理的发行版也类似。

首先，为了编译 Nginx，应在新装好的 Ubuntu server 环境下安装如下软件包：

<span class="readmore"><a href="http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-server-%e4%b8%8a%e5%ae%89%e8%a3%85-nginx-0-8-34/" title="在 Ubuntu 9.10 Server 上安装 Nginx 0.8.34">阅读全文——共3398字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>Nginx 在 3 月 3 日放出了 0.8.34 这个开发版。张宴也随即更新了《<a href="http://blog.s135.com/nginx_php_v6/">Nginx 0.8.x + PHP 5.2.13（FastCGI）搭建胜过Apache十倍的Web服务器</a>》到第六版。不过，他写的记录是针对 CentOS、Redhat 等 rpm 包管理的服务器。由于习惯了 debian 系列的服务器，特别是用惯了 ubuntu 服务器，在这里特别做一下 Ubuntu 9.10 下的安装笔记。其他基于 deb 包管理的发行版也类似。<span id="more-483"></span></p>
<p>首先，为了编译 Nginx，应在新装好的 Ubuntu server 环境下安装如下软件包：</p>
<pre lang="bash">sudo apt-get install build-essential libpcre3-dev libssl-dev libxslt-dev libgd2-xpm-dev libgeoip-dev zlib1g-dev</pre>
<p>然后下载 0.8.34 版本的 Nginx：</p>
<pre lang="bash">wget http://www.nginx.org/download/nginx-0.8.34.tar.gz</pre>
<p>解压：</p>
<pre lang="bash">tar xvzf nginx-0.8.34.tar.gz</pre>
<p>下载 upstream fair 模块。upstream fair 是比内建的负载均衡更加智能的负载均衡模块。它采用的不是内建负载均衡使用的轮换的均衡算法，而是可以根据页面大小、加载时间长短智能的进行负载均衡。</p>
<pre lang="bash">wget http://github.com/gnosek/nginx-upstream-fair/tarball/master</pre>
<p>解压：</p>
<pre lang="bash">tar xvzf gnosek-nginx-upstream-fair-2131c73.tar.gz</pre>
<p>然后进入 nginx 源码目录执行 configure 配置编译选项。下面是我所使用的配置：</p>
<pre lang="bash">./configure --conf-path=/etc/nginx/nginx.conf \--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--with-debug \
--with-http_stub_status_module \
--with-http_flv_module \
--with-http_ssl_module \
--with-http_dav_module \
--with-http_gzip_static_module \
--with-mail \
--with-mail_ssl_module \
--with-ipv6 \
--with-http_realip_module \
--with-http_geoip_module \
--with-http_xslt_module \
--with-http_image_filter_module \
--with-sha1=/usr/include/openssl \
--with-md5=/usr/include/openssl \
--add-module=/home/mikespook/gnosek-nginx-upstream-fair-2131c73</pre>
<p>这个配置来自于 Jeff Waugh 的 PPA 中的 nginx 0.8.34 编译选项。配置、lock、pid 等文件的位置都是按照 ubuntu 系统惯例设置的。需要注意的是 &#8211;add-module 指向的是 upstream fair 的解压缩目录的绝对路径。这样就可以将 upstream fair 编译进 nginx。</p>
<p>然后编译并安装：</p>
<pre lang="bash">make &amp;&amp; make install</pre>
<p>nginx 就安装成功了。目录 /var/lib/nginx 需要手工建立，否则启动 nginx 会报错：</p>
<pre lang="bash">[emerg]: mkdir() "/var/lib/nginx/body" failed (2: No such file or directory)</pre>
<p>建立shell 脚本 /etc/init.d/nginx（<a href="http://www.mikespook.com/wp-content/uploads/2010/03/nginx.tar.gz">nginx</a>）：</p>
<pre lang="bash">#! /bin/sh

### BEGIN INIT INFO
# Provides:          nginx
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the nginx web server
# Description:       starts nginx using start-stop-daemon
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/nginx/sbin/nginx
NAME=nginx
DESC=nginx

test -x $DAEMON || exit 0

# Include nginx defaults if available
if [ -f /etc/default/nginx ] ; then
        . /etc/default/nginx
fi

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON
        echo "$NAME."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
  reload)
      echo -n "Reloading $DESC configuration: "
      start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/$NAME.pid \
          --exec $DAEMON
      echo "$NAME."
      ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start|stop|restart|force-reload}" &gt;&amp;2
        exit 1
        ;;
esac

exit 0</pre>
<p>并执行命令：</p>
<pre lang="bash">sudo update-rc.d -f nginx defaults</pre>
<p>更新 rc 后，即可使用：</p>
<pre lang="bash">sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart</pre>
<p>控制 nginx 启动。<br />
其他配置不再累述，张宴的 blog 里写得非常清晰。只补充一下 upstream fair 的使用，只要在 nginx 配置文件的 upstream 段加入 fair 开关即可：</p>
<pre lang="bash">upstream backend {
    server server1;
    server server2;
    fair;
}</pre>
<p>当然，ubuntu 还可以用上面提到的 Jeff 的 ppa 源进行安装：</p>
<pre lang="bash">echo "deb http://ppa.launchpad.net/jdub/devel/ubuntu hardy main" &gt;&gt; /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E9EEF4A1
apt-get update
apt-get install nginx</pre>
<p>简单快捷。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2010/03/%e5%9c%a8-ubuntu-9-10-server-%e4%b8%8a%e5%ae%89%e8%a3%85-nginx-0-8-34/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ubuntu 9.10 countdown</title>
		<link>http://www.mikespook.com/2009/10/ubuntu-9-10-countdown/</link>
		<comments>http://www.mikespook.com/2009/10/ubuntu-9-10-countdown/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 05:58:40 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[countdown]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=407</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
不知不觉，用了两年的 ubuntu 了，从 7.10 到 9.10 ……大家一起 countdown ubuntu 9.10 的新鲜出炉吧。

]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>不知不觉，用了两年的 ubuntu 了，从 7.10 到 9.10 ……大家一起 countdown ubuntu 9.10 的新鲜出炉吧。<br />
<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display.js"></script><br />
<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display2.js"></script><br />
<a href="http://www.ubuntu.com/"><img src="http://www.mikespook.com/wp-content/uploads/2009/12/2ebb_static.png" width="180" height="150" alt="Ubuntu: For Desktops, Servers, Netbooks and in the cloud" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2009/10/ubuntu-9-10-countdown/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu升级内核到2.6.28-14后VritualBox不能启动的问题</title>
		<link>http://www.mikespook.com/2009/08/ubuntu%e5%8d%87%e7%ba%a7%e5%86%85%e6%a0%b8%e5%88%b02-6-28-14%e5%90%8evritualbox%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://www.mikespook.com/2009/08/ubuntu%e5%8d%87%e7%ba%a7%e5%86%85%e6%a0%b8%e5%88%b02-6-28-14%e5%90%8evritualbox%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 05:34:32 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[内核]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=374</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
国内镜像源不知道是不是都有问题，几天前就提示可以升级，但总也找不到linux-image-2.6.28-14-generic这个的依赖包（404错误）。索性换到了主站上更新。

一切顺利，速度也不差……

然后麻烦来了，VritualBox3.0.2无法启动。提示：

<span class="readmore"><a href="http://www.mikespook.com/2009/08/ubuntu%e5%8d%87%e7%ba%a7%e5%86%85%e6%a0%b8%e5%88%b02-6-28-14%e5%90%8evritualbox%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/" title="Ubuntu升级内核到2.6.28-14后VritualBox不能启动的问题">阅读全文——共425字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>国内镜像源不知道是不是都有问题，几天前就提示可以升级，但总也找不到linux-image-2.6.28-14-generic这个的依赖包（404错误）。索性换到了主站上更新。</p>
<p>一切顺利，速度也不差……</p>
<p>然后麻烦来了，VritualBox3.0.2无法启动。提示：</p>
<p>Kernel driver not installed (rc=-1908)</p>
<p>The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing</p>
<p>‘/etc/init.d/vboxdrv setup’</p>
<p>折腾了半天，最后发现解决办法爆简单：</p>
<p>sudo apt-get install linux-headers-2.6.28-14-generic</p>
<p>然后</p>
<p>sudo /etc/init.d/vboxdrv setup</p>
<p>就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2009/08/ubuntu%e5%8d%87%e7%ba%a7%e5%86%85%e6%a0%b8%e5%88%b02-6-28-14%e5%90%8evritualbox%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 Ubuntu 下查询内存的型号</title>
		<link>http://www.mikespook.com/2008/12/%e5%9c%a8-ubuntu-%e4%b8%8b%e6%9f%a5%e8%af%a2%e5%86%85%e5%ad%98%e7%9a%84%e5%9e%8b%e5%8f%b7/</link>
		<comments>http://www.mikespook.com/2008/12/%e5%9c%a8-ubuntu-%e4%b8%8b%e6%9f%a5%e8%af%a2%e5%86%85%e5%ad%98%e7%9a%84%e5%9e%8b%e5%8f%b7/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:34:01 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ddr2]]></category>
		<category><![CDATA[dmidecode]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=249</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
512 内存，开了 Netbeans，又开了 firefox，还有 Thunderbird，还有 OpenOffice……终于觉得有点卡了，内存又便宜了，准备还是加条内存的好。买本本的时候正是 DDR 和 DDR2 混杂的时候。我也不记得这个 HP 的本本到底是什么内存了。懒得开机看，也懒得提到电脑城去搞。于是乎，google 了一下，还真让我找到了：

dmidecode &#124;grep -A16 “Memory Device$”

两条内存一目了然：

<span class="readmore"><a href="http://www.mikespook.com/2008/12/%e5%9c%a8-ubuntu-%e4%b8%8b%e6%9f%a5%e8%af%a2%e5%86%85%e5%ad%98%e7%9a%84%e5%9e%8b%e5%8f%b7/" title="在 Ubuntu 下查询内存的型号">阅读全文——共837字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>512 内存，开了 Netbeans，又开了 firefox，还有 Thunderbird，还有 OpenOffice……终于觉得有点卡了，内存又便宜了，准备还是加条内存的好。买本本的时候正是 DDR 和 DDR2 混杂的时候。我也不记得这个 HP 的本本到底是什么内存了。懒得开机看，也懒得提到电脑城去搞。于是乎，google 了一下，还真让我找到了：<span id="more-249"></span></p>
<p>dmidecode |grep -A16 “Memory Device$”</p>
<p>两条内存一目了然：</p>
<p>Memory Device<br />
Array Handle: 0x000C<br />
Error Information Handle: No Error<br />
Total Width: 64 bits<br />
Data Width: 64 bits<br />
Size: 256 MB<br />
Form Factor: DIMM<br />
Set: 1<br />
Locator: DIMM 1<br />
Bank Locator: Bank 0,1<br />
Type: DDR2<br />
Type Detail: Synchronous<br />
Speed: 533 MHz (1.9 ns)<br />
Manufacturer: Not Specified<br />
Serial Number: Not Specified<br />
Asset Tag: Not Specified<br />
Part Number: Not Specified<br />
&#8211;<br />
Memory Device<br />
Array Handle: 0x000C<br />
Error Information Handle: No Error<br />
Total Width: 64 bits<br />
Data Width: 64 bits<br />
Size: 256 MB<br />
Form Factor: DIMM<br />
Set: 1<br />
Locator: DIMM 2<br />
Bank Locator: Bank 2,3<br />
Type: DDR2<br />
Type Detail: Synchronous<br />
Speed: 533 MHz (1.9 ns)<br />
Manufacturer: Not Specified<br />
Serial Number: Not Specified<br />
Asset Tag: Not Specified<br />
Part Number: Not Specified</p>
<p>信亏是 DDR2 啊，要不又要多花不少银子了。准备买 条子去喽～～</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2008/12/%e5%9c%a8-ubuntu-%e4%b8%8b%e6%9f%a5%e8%af%a2%e5%86%85%e5%ad%98%e7%9a%84%e5%9e%8b%e5%8f%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用日立 Feature Tools 软盘镜像解决 Ubuntu 磁盘的 load/unload 问题</title>
		<link>http://www.mikespook.com/2008/09/%e4%bd%bf%e7%94%a8%e6%97%a5%e7%ab%8b-feature-tools-%e8%bd%af%e7%9b%98%e9%95%9c%e5%83%8f%e8%a7%a3%e5%86%b3-ubuntu-%e7%a3%81%e7%9b%98%e7%9a%84-loadunload-%e9%97%ae%e9%a2%98/</link>
		<comments>http://www.mikespook.com/2008/09/%e4%bd%bf%e7%94%a8%e6%97%a5%e7%ab%8b-feature-tools-%e8%bd%af%e7%9b%98%e9%95%9c%e5%83%8f%e8%a7%a3%e5%86%b3-ubuntu-%e7%a3%81%e7%9b%98%e7%9a%84-loadunload-%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 16:46:02 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[My life]]></category>
		<category><![CDATA[feature tools]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[memdisk]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unload]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=185</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
关于 load/unload 问题，不再累述，请看这里：http://www.google.cn/search?q=load%2Funload&#38;sourceid=navclient-ff&#38;ie=UTF-8&#38;rlz=1B3GGGL_zh-CNCN287CN287

网上的不少文章详细描述了使用软件方式解决 load/unload。唯独对使用 Feature Tools 的方法一笔带过。的确，Feature Tools 使用极为简单。但是我想，我所遇到的问题是大多数像我一样懒惰，并且不愿意在重新安装系统的时候额外进行多余操作的朋友都会遇到的。

<span class="readmore"><a href="http://www.mikespook.com/2008/09/%e4%bd%bf%e7%94%a8%e6%97%a5%e7%ab%8b-feature-tools-%e8%bd%af%e7%9b%98%e9%95%9c%e5%83%8f%e8%a7%a3%e5%86%b3-ubuntu-%e7%a3%81%e7%9b%98%e7%9a%84-loadunload-%e9%97%ae%e9%a2%98/" title="使用日立 Feature Tools 软盘镜像解决 Ubuntu 磁盘的 load/unload 问题">阅读全文——共1391字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>关于 load/unload 问题，不再累述，请看这里：http://www.google.cn/search?q=load%2Funload&amp;sourceid=navclient-ff&amp;ie=UTF-8&amp;rlz=1B3GGGL_zh-CNCN287CN287</p>
<p>网上的不少文章详细描述了使用软件方式解决 load/unload。唯独对使用 Feature Tools 的方法一笔带过。的确，Feature Tools 使用极为简单。但是我想，我所遇到的问题是大多数像我一样懒惰，并且不愿意在重新安装系统的时候额外进行多余操作的朋友都会遇到的。</p>
<p>在日立的网站上找到了 Feature Tools 的下载，windows 版本略过不看，就说软盘镜像和 iso 镜像吧。有这么两个问题：</p>
<p>问题1：笔记本上已经没有软驱，周围方圆 3 公里内找不到可以用的软盘。鉴于软驱的消失，我特意收藏了几个3寸软驱和5寸软驱，及一些软盘。不过，可从没想过要在笔记本上使用它们。</p>
<p>问题2：对于一张光盘只刻录 2000KB 的行为是极度的痛恨。毕竟经历过那个光盘贵如黄金的年代。</p>
<p>只能用镜像那肯定是要用 grub，跑不了。问题是怎么加载镜像。<span id="more-185"></span></p>
<p>上网搜了一下，对于软盘 img 镜像，大部分文章介绍的是 grub4dos。它对镜像文件加载做了特别的处理，已经不适用于 ubuntu 的 grub 0.97。对于 iso 镜像，能找到的有详细介绍的文章都是关于 wubi 或者 fat32 分区镜像安装 linux/ubuntu 的。对于 dos 启动光盘镜像也无介绍。</p>
<p>于是乎，就用 img 镜像开始了实验……rebooting……</p>
<p>首先就是实验map方式：</p>
<p>map (hd0,0)/boot/ftool_211_INSTALL.IMG (fd0)</p>
<p>chainloader (hd0,0)/boot/ftool_211_INSTALL.IMG</p>
<p>rootnoverify (fd0)</p>
<p>boot</p>
<p>失败！找不到启动信息。郁闷了，难道有问题？用 blocklist 看了一下这个镜像文件。很惨！不是连续的。这也就意味着 grub 无法直接读取镜像启动。</p>
<p>想起 grub4dos 的 memdisk.gz，于是想到了 syslinux 这个包。不过，总不能为了这么个事情就装个 syslinux 吧？上它的网站，下载了 tar.gz 的源代码回来，解压缩，编译。报错！nasm 没装，装之，1M，反正要用。再编译，memdisk 到手了。</p>
<p>再次回到 grub 的命令行下：</p>
<p>kernel (hd0,0)/boot/memdisk</p>
<p>initrd (hd0,0)/boot/ftool_211_INSTALL.IMG。</p>
<p>boot</p>
<p>成功了！</p>
<p>其实就这么简单，不用对系统做那么多手脚。 Feature Tools 的使用，比 grub 还要简单。不过，补充一点的是我的硬盘电源模式只有三个值可用 0&#215;01（最省电），0&#215;80（默认），0&#215;254（性能最好）。这点，跟网上广泛流传的文章中描述的不一样。修改为 0&#215;254，重启，完事。</p>
<p>相信没有比这更简单的手工方法来解决 ubuntu 的 load/unload 问题了。引用 CPyUG 的公告中的话“<span style="color: #ff0000;">任何情况下，XXXXXXXX 之行为</span><span style="color: #ff0000;">，均会视作您无法胜任IT相关职业的一项<strong>直接证据</strong></span>”。所以文中所需要用到的所有文件请大家努力 google 一下吧。其实自己动手，更有乐趣一些。<br />
这个周末要上课，痛苦了。Open Source Camp 去不了。不知道哪位仁兄可以给我带件 T 恤回来？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2008/09/%e4%bd%bf%e7%94%a8%e6%97%a5%e7%ab%8b-feature-tools-%e8%bd%af%e7%9b%98%e9%95%9c%e5%83%8f%e8%a7%a3%e5%86%b3-ubuntu-%e7%a3%81%e7%9b%98%e7%9a%84-loadunload-%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>xubuntu 7.10 的 gvim 英文亂碼解決方法</title>
		<link>http://www.mikespook.com/2008/03/xubuntu-710-%e7%9a%84-gvim-%e8%8b%b1%e6%96%87%e4%ba%82%e7%a2%bc%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.mikespook.com/2008/03/xubuntu-710-%e7%9a%84-gvim-%e8%8b%b1%e6%96%87%e4%ba%82%e7%a2%bc%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 02:31:40 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[My life]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xubuntu]]></category>
		<category><![CDATA[亂碼]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/index.php/archives/103</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
裝好了 xubuntu，結果很不爽的是 gvim 亂碼。鍵盤映射也出問題。開始猜測可能是 vim 配置的問題，不過命令行下的 vim 又一切正常。后來以為是 gtk 環境的問題，但是檢查后發現其他 gtk 應用都正常。

同時在 命令行下開啟 gvim 還會有如下錯誤：

* (gvim:6279): CRITICAL **: ascii_glyph_table_init: assertion &#8216;gui.ascii_glyphs-&#62;num_glyphs == sizeof(ascii_chars)&#8217; faile

<span class="readmore"><a href="http://www.mikespook.com/2008/03/xubuntu-710-%e7%9a%84-gvim-%e8%8b%b1%e6%96%87%e4%ba%82%e7%a2%bc%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/" title="xubuntu 7.10 的 gvim 英文亂碼解決方法">阅读全文——共527字</a></span>]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
	float:left;
	position: fixed;
	top: 60%;
	left: 70px;
}
#leftcontainerBox .buttons {
	float:left;
	clear:both;
	margin:4px 4px 4px 4px;
	padding-bottom:2px;
}
#bottomcontainerBox {
	width: 50%;
	padding-top: 1px;
}
#bottomcontainerBox .buttons {
	float: left;
	margin: 4px 4px 4px 4px;
}
</style>
<p>裝好了 xubuntu，結果很不爽的是 gvim 亂碼。鍵盤映射也出問題。開始猜測可能是 vim 配置的問題，不過命令行下的 vim 又一切正常。后來以為是 gtk 環境的問題，但是檢查后發現其他 gtk 應用都正常。</p>
<p>同時在 命令行下開啟 gvim 還會有如下錯誤：</p>
<p>* (gvim:6279): CRITICAL **: ascii_glyph_table_init: assertion &#8216;gui.ascii_glyphs-&gt;num_glyphs == sizeof(ascii_chars)&#8217; faile</p>
<p><span id="more-103"></span></p>
<p>上網查了一下，原來遇到這個問題的不是我一個人，所有 ubuntu 版本使用中文的 UTF-8 環境都會有這個問題：</p>
<p><a href="https://bugs.launchpad.net/ubuntu/+source/vim/+bug/152915" target="_blank">https://bugs.launchpad.net/ubuntu/+source/vim/+bug/152915</a></p>
<p>解決辦法是：將 /usr/share/vim/gvimrc 文件中的</p>
<p>if has(&#8216;gui_gtk2&#8242;)<br />
set guifont=Bitstream\ Vera\ Sans\ Mono\ 12<br />
else<br />
set guifont=-misc-fixed-medium-r-normal&#8211;14-130-75-75-c-70-iso8859-1<br />
endif</p>
<p>部分注釋去掉。看來是 guifont  設置的問題。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/2008/03/xubuntu-710-%e7%9a%84-gvim-%e8%8b%b1%e6%96%87%e4%ba%82%e7%a2%bc%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

