<?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; linux</title>
	<atom:link href="http://www.mikespook.com/index.php/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikespook.com</link>
	<description>Just another boring day</description>
	<lastBuildDate>Thu, 05 Aug 2010 14:36:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>在 xubuntu 中使用 3G 手机作为猫上网</title>
		<link>http://www.mikespook.com/index.php/archives/651</link>
		<comments>http://www.mikespook.com/index.php/archives/651#comments</comments>
		<pubDate>Sat, 03 Jul 2010 14:57:20 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[3G]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=651</guid>
		<description><![CDATA[我使用的是三星的一款3G手机，比较破烂。不过使用三星的 PC 套件可以在 Windows 下当作猫通过手机上网。在没有可接入的网络的时候还是很方便的。不过遗憾的是，我不用 Windows……每个月 300M 的流量我只用 10%，实在是浪费……所以，我想通过 xubuntu 接入 3G 手机上网。 好吧，最出乎意料的是，xubuntu 下用 3G 手机上网相当简单。 下面是图文混排的步骤…… 1st. step：连接数据线。 2nd. step：打开网络连接管理，选中移动宽带选项卡，添加…… 3td. step：首先会要求选择设备，通常只有一个设备可选。 4th. step：选择中国后，会要选中国移动还是中国联通。我是联通的 WCDMA。 5th. step：选择计划，也就是用什么信道。这个网上大部分说的还都是 cnwap 或者 cnnet 的。3G 需要用 3gwap 作为 APN。 好了，然后在网络管理里选择移动宽带连接就可以了。这篇随笔就是用 3G 网络写的，速度还行……只是不知道 300M 的流量用了多少。]]></description>
			<content:encoded><![CDATA[<p>我使用的是三星的一款3G手机，比较破烂。不过使用三星的 PC 套件可以在 Windows 下当作猫通过手机上网。在没有可接入的网络的时候还是很方便的。不过遗憾的是，我不用 Windows……每个月 300M 的流量我只用 10%，实在是浪费……所以，我想通过 xubuntu 接入 3G 手机上网。</p>
<p>好吧，最出乎意料的是，xubuntu 下用 3G 手机上网相当简单。</p>
<p>下面是图文混排的步骤……</p>
<p><span id="more-651"></span></p>
<p>1st. step：连接数据线。<br />
2nd. step：打开网络连接管理，选中移动宽带选项卡，添加……</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2010/07/3g-1st.png"><img src="http://www.mikespook.com/wp-content/uploads/2010/07/3g-1st-300x246.png" alt="" title="3g-1st" width="300" height="246" class="alignnone size-medium wp-image-652" target="_blank"/></a></p>
<p>3td. step：首先会要求选择设备，通常只有一个设备可选。</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2010/07/3g-3td.png"><img src="http://www.mikespook.com/wp-content/uploads/2010/07/3g-3td-300x221.png" alt="" title="3g-3td" width="300" height="221" class="alignnone size-medium wp-image-653" target="_blank"/></a></p>
<p>4th. step：选择中国后，会要选中国移动还是中国联通。我是联通的 WCDMA。</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2010/07/3g-4th.png"><img src="http://www.mikespook.com/wp-content/uploads/2010/07/3g-4th-300x222.png" alt="" title="3g-4th" width="300" height="222" class="alignnone size-medium wp-image-654" target="_blank"/></a></p>
<p>5th. step：选择计划，也就是用什么信道。这个网上大部分说的还都是 cnwap 或者 cnnet 的。3G 需要用 3gwap 作为 APN。</p>
<p><a href="http://www.mikespook.com/wp-content/uploads/2010/07/3g-5th.png"><img src="http://www.mikespook.com/wp-content/uploads/2010/07/3g-5th-300x221.png" alt="" title="3g-5th" width="300" height="221" class="alignnone size-medium wp-image-655" target="_blank"/></a></p>
<p>好了，然后在网络管理里选择移动宽带连接就可以了。这篇随笔就是用 3G 网络写的，速度还行……只是不知道 300M 的流量用了多少。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/index.php/archives/651/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.4 countdown</title>
		<link>http://www.mikespook.com/index.php/archives/548</link>
		<comments>http://www.mikespook.com/index.php/archives/548#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[Ubuntu 9.10 的 countdown：http://www.mikespook.com/index.php/archives/407 时间如梭啊，10.4 马上要发布了。一起倒数吧……]]></description>
			<content:encoded><![CDATA[<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/index.php/archives/548/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.10 下安装 OpenTTD 1.0.0 中文版</title>
		<link>http://www.mikespook.com/index.php/archives/535</link>
		<comments>http://www.mikespook.com/index.php/archives/535#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[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 在图形界面下安装。安装过程可能提示软件库中有旧的版本，更为稳定，忽略不管即可。 安装好后，在终端执行 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 节，或者照着下面的步骤做也不错。 下载：http://binaries.openttd.org/extra/opengfx/0.2.3/opengfx-0.2.3-all.zip 下载：http://binaries.openttd.org/extra/opensfx/0.2.3/opensfx-0.2.3-all.zip 下载：http://binaries.openttd.org/extra/openmsx/0.2.1/openmsx-0.2.1-all.zip 解压缩。 在 $HOME/.openttd/ 下建立 data [...]]]></description>
			<content:encoded><![CDATA[<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;">
$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;">
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/index.php/archives/535/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在 Ubuntu 9.10 下安装和简单配置 trac 0.12dev</title>
		<link>http://www.mikespook.com/index.php/archives/508</link>
		<comments>http://www.mikespook.com/index.php/archives/508#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[昨日（2010-03-14）在金山参加了&#8221;CPyUG会课总第38期~暨珠三角技术沙龙第6次&#8220;。会中廖杰大仙用平和的语气，激动人心的介绍了 trac 若干功能、以及插件的开发和金山已经在使用的或者准备使用的插件。回来手痒，随尝试安装 0.12dev。 关于 Windows 下的安装，请看赖神的《在 windows 下安装和简单配置 trac 0.12》。 Ubuntu 下没 Windows 下麻烦，不过如果完全按照 Trac 官方的文档，还是会略有折腾，特别记录于此，以备后用。 1 2 3 4 5 6 7 # 安装 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 [...]]]></description>
			<content:encoded><![CDATA[<p>昨日（2010-03-14）在金山参加了&#8221;<a href="http://wiki.woodpecker.org.cn/moin/ZPyUG/2010-03-14" target="_blank">CPyUG会课总第38期~暨珠三角技术沙龙第6次</a>&#8220;。会中廖杰大仙用平和的语气，激动人心的介绍了 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>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 安装 ubuntu 提供的库，能由 apt 管理的包，还是交由 apt 管理</span>
<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> subversion
<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> python-setuptools
<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> sqlite3
<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> python-pysqlite2
<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> python-pygments
<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> python-docutils</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 下面的包，不是 ubuntu 没有提供 apt 源，就是源里的版本过旧。所以使用 easy_install 安装最新稳定版。</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install pytz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install babel
<span style="color: #666666; font-style: italic;"># Genshi 甚至 stable 版本都不行，所以使用 dev，也就是 svn 中的版本。不过安装好后需要手工做一下处理。</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install <span style="color: #660033;">-U</span> <span style="color: #ff0000;">&quot;Genshi==dev&quot;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 进入 egg 存放目录</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>python2.6<span style="color: #000000; font-weight: bold;">/</span>dist-packages<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;"># 修改刚才通过 easy_install 安装的 Genshi 的 egg 版本，也许是我哪里没搞合适，用 easy_install 安装 svn 的版本，版本号默认总是 0。</span>
<span style="color: #666666; font-style: italic;"># 本来，版本只要大于 1072 即可，不过为了避免弄混，所以还是用版本库中的真实版本号为好。我安装的时候，genshi 的版本号是 1096。</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> Genshi-0.6dev_r0-py2.6.egg Genshi-0.6dev_r1096-py2.6.egg
<span style="color: #666666; font-style: italic;"># 同时需要修改 easy-install.pth 中的 genshi 的 egg 文件名</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> easy-install.pth</pre></td></tr></table></div>

<p>在 easy-install.pth 中找到 ./Genshi-0.6dev_r0-py2.6.egg，将这个文件名修改为对应的正确的版本号的文件名。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 然后安装 Trac 的 svn 主线版本。当前，也就是现在的里程碑 0.12dev</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install http:<span style="color: #000000; font-weight: bold;">//</span>svn.edgewall.org<span style="color: #000000; font-weight: bold;">/</span>repos<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span>trunk</pre></td></tr></table></div>

<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/index.php/archives/508/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/index.php/archives/483</link>
		<comments>http://www.mikespook.com/index.php/archives/483#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[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 环境下安装如下软件包： sudo apt-get install build-essential libpcre3-dev libssl-dev libxslt-dev libgd2-xpm-dev libgeoip-dev zlib1g-dev 然后下载 0.8.34 版本的 Nginx： wget http://www.nginx.org/download/nginx-0.8.34.tar.gz 解压： tar xvzf nginx-0.8.34.tar.gz 下载 upstream fair 模块。upstream fair [...]]]></description>
			<content:encoded><![CDATA[<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>

<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 libpcre3-dev libssl-dev libxslt-dev libgd2-xpm-dev libgeoip-dev zlib1g-dev</pre></div></div>

<p>然后下载 0.8.34 版本的 Nginx：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.nginx.org<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>nginx-0.8.34.tar.gz</pre></div></div>

<p>解压：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf nginx-0.8.34.tar.gz</pre></div></div>

<p>下载 upstream fair 模块。upstream fair 是比内建的负载均衡更加智能的负载均衡模块。它采用的不是内建负载均衡使用的轮换的均衡算法，而是可以根据页面大小、加载时间长短智能的进行负载均衡。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>gnosek<span style="color: #000000; font-weight: bold;">/</span>nginx-upstream-fair<span style="color: #000000; font-weight: bold;">/</span>tarball<span style="color: #000000; font-weight: bold;">/</span>master</pre></div></div>

<p>解压：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf gnosek-nginx-upstream-fair-2131c73.tar.gz</pre></div></div>

<p>然后进入 nginx 源码目录执行 configure 配置编译选项。下面是我所使用的配置：</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;">--conf-path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf \--error-log-path=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>error.log \
<span style="color: #660033;">--pid-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>nginx.pid \
<span style="color: #660033;">--lock-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>nginx.lock \
<span style="color: #660033;">--http-log-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>access.log \
<span style="color: #660033;">--http-client-body-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>body \
<span style="color: #660033;">--http-proxy-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>proxy \
<span style="color: #660033;">--http-fastcgi-temp-path</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>fastcgi \
<span style="color: #660033;">--with-debug</span> \
--with-http_stub_status_module \
--with-http_flv_module \
--with-http_ssl_module \
--with-http_dav_module \
--with-http_gzip_static_module \
<span style="color: #660033;">--with-mail</span> \
--with-mail_ssl_module \
<span style="color: #660033;">--with-ipv6</span> \
--with-http_realip_module \
--with-http_geoip_module \
--with-http_xslt_module \
--with-http_image_filter_module \
<span style="color: #660033;">--with-sha1</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>openssl \
<span style="color: #660033;">--with-md5</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>openssl \
<span style="color: #660033;">--add-module</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>mikespook<span style="color: #000000; font-weight: bold;">/</span>gnosek-nginx-upstream-fair-2131c73</pre></div></div>

<p>这个配置来自于 Jeff Waugh 的 PPA 中的 nginx 0.8.34 编译选项。配置、lock、pid 等文件的位置都是按照 ubuntu 系统惯例设置的。需要注意的是 &#8211;add-module 指向的是 upstream fair 的解压缩目录的绝对路径。这样就可以将 upstream fair 编译进 nginx。</p>
<p>然后编译并安装：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>nginx 就安装成功了。目录 /var/lib/nginx 需要手工建立，否则启动 nginx 会报错：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>emerg<span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #c20cb9; font-weight: bold;">mkdir</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #ff0000;">&quot;/var/lib/nginx/body&quot;</span> failed <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>建立shell 脚本 /etc/init.d/nginx（<a href="http://www.mikespook.com/wp-content/uploads/2010/03/nginx.tar.gz">nginx</a>）：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### BEGIN INIT INFO</span>
<span style="color: #666666; font-style: italic;"># Provides:          nginx</span>
<span style="color: #666666; font-style: italic;"># Required-Start:    $all</span>
<span style="color: #666666; font-style: italic;"># Required-Stop:     $all</span>
<span style="color: #666666; font-style: italic;"># Default-Start:     2 3 4 5</span>
<span style="color: #666666; font-style: italic;"># Default-Stop:      0 1 6</span>
<span style="color: #666666; font-style: italic;"># Short-Description: starts the nginx web server</span>
<span style="color: #666666; font-style: italic;"># Description:       starts nginx using start-stop-daemon</span>
<span style="color: #666666; font-style: italic;">### END INIT INFO</span>
&nbsp;
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #007800;">DAEMON</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nginx
<span style="color: #007800;">NAME</span>=nginx
<span style="color: #007800;">DESC</span>=nginx
&nbsp;
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-x</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Include nginx defaults if available</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>nginx <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
        . <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>nginx
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-e</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
  start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting <span style="color: #007800;">$DESC</span>: &quot;</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid \
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--</span> <span style="color: #007800;">$DAEMON_OPTS</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NAME</span>.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Stopping <span style="color: #007800;">$DESC</span>: &quot;</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid \
                <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NAME</span>.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  restart<span style="color: #000000; font-weight: bold;">|</span>force-reload<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Restarting <span style="color: #007800;">$DESC</span>: &quot;</span>
        start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> \
                <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
        <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
        start-stop-daemon <span style="color: #660033;">--start</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> \
                <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span> <span style="color: #660033;">--</span> <span style="color: #007800;">$DAEMON_OPTS</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NAME</span>.&quot;</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
  reload<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Reloading <span style="color: #007800;">$DESC</span> configuration: &quot;</span>
      start-stop-daemon <span style="color: #660033;">--stop</span> <span style="color: #660033;">--signal</span> HUP <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--pidfile</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>.pid \
          <span style="color: #660033;">--exec</span> <span style="color: #007800;">$DAEMON</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$NAME</span>.&quot;</span>
      <span style="color: #000000; font-weight: bold;">;;</span>
  <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #007800;">N</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NAME</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: <span style="color: #007800;">$N</span> {start|stop|restart|force-reload}&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000;">2</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
        <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>并执行命令：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> nginx defaults</pre></div></div>

<p>更新 rc 后，即可使用：</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: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx start
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx stop
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nginx restart</pre></div></div>

<p>控制 nginx 启动。<br />
其他配置不再累述，张宴的 blog 里写得非常清晰。只补充一下 upstream fair 的使用，只要在 nginx 配置文件的 upstream 段加入 fair 开关即可：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">upstream backend <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    server server1;
    server server2;
    fair;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>当然，ubuntu 还可以用上面提到的 Jeff 的 ppa 源进行安装：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;deb http://ppa.launchpad.net/jdub/devel/ubuntu hardy main&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list
<span style="color: #c20cb9; font-weight: bold;">apt-key</span> adv <span style="color: #660033;">--keyserver</span> keyserver.ubuntu.com <span style="color: #660033;">--recv-keys</span> E9EEF4A1
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nginx</pre></div></div>

<p>简单快捷。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/index.php/archives/483/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex Builder for Linux 未死？</title>
		<link>http://www.mikespook.com/index.php/archives/429</link>
		<comments>http://www.mikespook.com/index.php/archives/429#comments</comments>
		<pubDate>Tue, 01 Dec 2009 01:07:27 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Alpha]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/?p=429</guid>
		<description><![CDATA[说 Flex Builder Linux 未死，那就肯定要说它已死。大家请看这里《Flex Builder for Linux已死？》。 前些日子在笔记本上下了 Flex Builder Linux 的 Alpha4。今天想在台式机上也装一个玩玩。打开官方下载页面，忽然发现已经是 Alpha5 的版本。有图为证： 更新时间是 2009-11-24。看来 Flex Builder for Linux 未死啊！]]></description>
			<content:encoded><![CDATA[<p>说 Flex Builder Linux 未死，那就肯定要说它已死。大家请看这里《<a href="http://www.infoq.com/cn/news/2009/05/flex-builder-linux-dead" target="_blank">Flex Builder for Linux已死？</a>》。</p>
<p>前些日子在笔记本上下了 Flex Builder Linux 的 Alpha4。今天想在台式机上也装一个玩玩。打开官方<a href="http://labs.adobe.com/downloads/flexbuilder_linux.html" target="_blank">下载页面</a>，忽然发现已经是 Alpha5 的版本。有图为证：<a href="http://www.mikespook.com/wp-content/uploads/2009/12/flex-builder-linux.png"><img class="alignnone size-full wp-image-430" title="flex-builder-linux" src="http://www.mikespook.com/wp-content/uploads/2009/12/flex-builder-linux.png" alt="flex-builder-linux" width="552" height="140" /></a></p>
<p>更新时间是 2009-11-24。看来 Flex Builder for Linux 未死啊！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/index.php/archives/429/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu 9.10 countdown</title>
		<link>http://www.mikespook.com/index.php/archives/407</link>
		<comments>http://www.mikespook.com/index.php/archives/407#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[不知不觉，用了两年的 ubuntu 了，从 7.10 到 9.10 ……大家一起 countdown ubuntu 9.10 的新鲜出炉吧。]]></description>
			<content:encoded><![CDATA[<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/index.php/archives/407/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu升级内核到2.6.28-14后VritualBox不能启动的问题</title>
		<link>http://www.mikespook.com/index.php/archives/374</link>
		<comments>http://www.mikespook.com/index.php/archives/374#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[国内镜像源不知道是不是都有问题，几天前就提示可以升级，但总也找不到linux-image-2.6.28-14-generic这个的依赖包（404错误）。索性换到了主站上更新。 一切顺利，速度也不差…… 然后麻烦来了，VritualBox3.0.2无法启动。提示： Kernel driver not installed (rc=-1908) 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 ‘/etc/init.d/vboxdrv setup’ 折腾了半天，最后发现解决办法爆简单： sudo apt-get install linux-headers-2.6.28-14-generic 然后 sudo /etc/init.d/vboxdrv setup 就可以了。]]></description>
			<content:encoded><![CDATA[<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/index.php/archives/374/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>笔记本ubuntu下切换投影的办法</title>
		<link>http://www.mikespook.com/index.php/archives/370</link>
		<comments>http://www.mikespook.com/index.php/archives/370#comments</comments>
		<pubDate>Thu, 30 Jul 2009 15:26:13 +0000</pubDate>
		<dc:creator>mikespook</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[投影]]></category>

		<guid isPermaLink="false">http://www.mikespook.com/index.php/archives/370</guid>
		<description><![CDATA[默认xfce设置了XF86Display键，但是摸遍了键盘也没找到这个键是哪个。无奈只好用命令了。 开启： xrandr &#8211;output VGA &#8211;auto &#8211;right-of LVDS &#8211;mode 800&#215;600 关闭： xrandr &#8211;output VGA &#8211;off 在面板上创建个起动器，很方便。]]></description>
			<content:encoded><![CDATA[<p>默认xfce设置了XF86Display键，但是摸遍了键盘也没找到这个键是哪个。无奈只好用命令了。<br />
开启：<br />
xrandr &#8211;output VGA &#8211;auto &#8211;right-of LVDS &#8211;mode 800&#215;600<br />
关闭：<br />
xrandr &#8211;output VGA &#8211;off<br />
在面板上创建个起动器，很方便。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespook.com/index.php/archives/370/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在 Ubuntu 下查询内存的型号</title>
		<link>http://www.mikespook.com/index.php/archives/249</link>
		<comments>http://www.mikespook.com/index.php/archives/249#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[512 内存，开了 Netbeans，又开了 firefox，还有 Thunderbird，还有 OpenOffice……终于觉得有点卡了，内存又便宜了，准备还是加条内存的好。买本本的时候正是 DDR 和 DDR2 混杂的时候。我也不记得这个 HP 的本本到底是什么内存了。懒得开机看，也懒得提到电脑城去搞。于是乎，google 了一下，还真让我找到了： dmidecode &#124;grep -A16 &#8220;Memory Device$&#8221; 两条内存一目了然： Memory Device Array Handle: 0x000C Error Information Handle: No Error Total Width: 64 bits Data Width: 64 bits Size: 256 MB Form Factor: DIMM Set: 1 Locator: DIMM 1 Bank Locator: Bank 0,1 Type: DDR2 Type [...]]]></description>
			<content:encoded><![CDATA[<p>512 内存，开了 Netbeans，又开了 firefox，还有 Thunderbird，还有 OpenOffice……终于觉得有点卡了，内存又便宜了，准备还是加条内存的好。买本本的时候正是 DDR 和 DDR2 混杂的时候。我也不记得这个 HP 的本本到底是什么内存了。懒得开机看，也懒得提到电脑城去搞。于是乎，google 了一下，还真让我找到了：<span id="more-249"></span></p>
<p>dmidecode |grep -A16 &#8220;Memory Device$&#8221;</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/index.php/archives/249/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
