<?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>孙立文的博客 &#187; Linux</title>
	<atom:link href="http://sunliwen.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunliwen.com</link>
	<description>Never lose my passion!</description>
	<lastBuildDate>Sat, 21 Jan 2012 05:16:52 +0000</lastBuildDate>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Ubuntu下PHP哈希冲突漏洞快修</title>
		<link>http://sunliwen.com/2012/01/ubuntu-php-collision-workaround/</link>
		<comments>http://sunliwen.com/2012/01/ubuntu-php-collision-workaround/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 01:21:09 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://sunliwen.com/?p=1895</guid>
		<description><![CDATA[方法如下： sudo apt-get install php5-suhosin sudo sed -i &#34;s/;suhosin\.post\.max_vars/suhosin\.post\.max_vars/&#34; /etc/php5/fpm/conf.d/suhosin.ini grep suhosin.post.max_vars /etc/php5/fpm/conf.d/suhosin.ini sudo /etc/init.d/php5-fpm restart 输出是： suhosin.post.max_vars = 1000 #限制最多有1000个POST参数 看PHP版本信息为： $ php -v PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch &#40;cli&#41; &#40;built: Dec 13 2011 18:45:32&#41; Copyright &#40;c&#41; 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright &#40;c&#41; 1998-2010 Zend Technologies with Suhosin v0.9.29, Copyright &#40;c&#41; 2007, [...]]]></description>
			<content:encoded><![CDATA[<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> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-suhosin
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;s/;suhosin\.post\.max_vars/suhosin\.post\.max_vars/&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>fpm<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>suhosin.ini
<span style="color: #c20cb9; font-weight: bold;">grep</span> suhosin.post.max_vars <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>fpm<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>suhosin.ini
<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>php5-fpm restart</pre></div></div>

<p>输出是：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">suhosin.post.max_vars = <span style="color: #000000;">1000</span>  <span style="color: #666666; font-style: italic;">#限制最多有1000个POST参数</span></pre></div></div>

<p>看PHP版本信息为：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ php <span style="color: #660033;">-v</span>
PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch <span style="color: #7a0874; font-weight: bold;">&#40;</span>cli<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>built: Dec <span style="color: #000000;">13</span> <span style="color: #000000;">2011</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">45</span>:<span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> 
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1997</span>-<span style="color: #000000;">2009</span> The PHP Group
Zend Engine v2.3.0, Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1998</span>-<span style="color: #000000;">2010</span> Zend Technologies
    with Suhosin v0.9.29, Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2007</span>, by SektionEins GmbH</pre></div></div>

<p>注：测试环境是Ubuntu 10.04 + PHP 5.3.2 + PHP5-FPM</p>
<p>refs:<br />
<a href="http://www.slideshare.net/chaoslawful/luaphp">PHP哈希冲突浅析</a><br />
<a href="http://www.hardened-php.net/suhosin/">suhosin</a><br />
<a href="http://arstechnica.com/civis/viewtopic.php?f=16&amp;t=1164260">Testing vs the hash collision vulnerability</a></p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/php/" rel="tag">PHP</a><br/>
<a href="http://sunliwen.com/2012/01/ubuntu-php-collision-workaround/#comments-heading">没有评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2012/01/ubuntu-php-collision-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用USB-Serial連接La Fonera 2100，并啟用SSH</title>
		<link>http://sunliwen.com/2010/07/la-fonera-2100-crack/</link>
		<comments>http://sunliwen.com/2010/07/la-fonera-2100-crack/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 21:44:28 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[玩意]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=1081</guid>
		<description><![CDATA[不知道什麼原因路由器裡修改過的配置都被抹掉了。那晚打雷，還停電了&#8230; －－－－－－－－－－－－－－－－－ 2007年中文網誌年會，我狗屎運的得了一個很漂亮的La Fonera 2100路由器，一直用著沒出啥問題。 有一天我去網通網站隨便看看，突然測試強迫症發作，想試試修改ADSL用戶名。網通規定修改用戶名時，新用戶名必須以“*” &#8211; 星號開頭。改唄，貌似也沒啥，然後杯具就發生。發現路由器配置頁面的表單是不允許輸入星號的。-_-! 打電話給網通，編個故事說，帳號被已經搬走且反目的同屋修改，自己不知道現在該怎麼登陸，請求恢復成默認的帳號密碼。答覆是，Windows下沒有問題，其他環境，比如路由器網通不提供支持。-_-! Linux裡撥號是可以寫星號的，因為只是個文本配置文件。但我不能只讓這一台電腦上網其啊。 La Fonera支持被刷。如果能登陸進去，手動改改配置文件，即可更自由。 重啟後，長按Reset的方法，試了很多次也不管用。很難過，開始考慮是不是去買個新的支持OpenWRT的路由器。放棄之前還是賭一把，弄根串口線刷刷看。試了幾根手機線做的usb-serial後，都沒成功。我就不信了&#8230;從淘寶買了一根PL2303的連接線，絕對環保，沒有外殼，電路板和芯片都裸在外面。一頓折騰後，我的路由器終於又可以撥號了。 網通會生氣吧。:D 這次記錄步驟如下： 1. 驅動 Mac OS X版的PL2303驅動在這裡下載。安裝方法試將解壓縮得到的.kext目錄拷貝到/System/Library/Extensions目錄下，重啟。 連接線接上後，應該會出現一個/dev/tty.PL2303-xxx文件。 Windows版本可在這裡找到，Windows 7下可以用，不知道別的Windows能用不能。如果不能，可參考這個帖子。如果驅動與Windows版本不一樣，會有啟動不了設備的問題出現。但基本只要找到相應的PL2303驅動即可。 2. 終端連接串口 具體連接方式，請看 http://66.49.218.210/?p=10 。 3. 用終端程序連接 我以前用的是Windows下的hyperterminal。 這次用的screen，啥設置都不需要做竟然就可以用了。 一定要先把連接線USB端接電腦，否則電腦沒有/dev/tty.PL2303-xxxx的設備沒法開終端等著。 如果發現不能啟動，可以先將TX線拔掉，通電後迅速插上。成功啟動的話會顯示如下信息。 +PHY ID is 0022:5521 Ethernet eth0: MAC address 00:18:84:16:74:78 IP: 0.0.0.0/255.255.255.255, Gateway: 0.0.0.0 Default server: 0.0.0.0 RedBoot&#40;tm&#41; bootstrap and debug environment [...]]]></description>
			<content:encoded><![CDATA[<p>不知道什麼原因路由器裡修改過的配置都被抹掉了。那晚打雷，還停電了&#8230;</p>
<p>－－－－－－－－－－－－－－－－－</p>
<p>2007年中文網誌年會，我狗屎運的得了一個很漂亮的La Fonera 2100路由器，一直用著沒出啥問題。</p>
<p><a href="http://thinklouder.cn/wp-content/uploads/2010/07/La_Fonera.jpg"><img class="alignright size-thumbnail wp-image-1227" title="La Fonera 2100" src="http://thinklouder.cn/wp-content/uploads/2010/07/La_Fonera-150x150.jpg" alt="La Fonera 2100" width="150" height="150" /></a></p>
<p>有一天我去網通網站隨便看看，突然測試強迫症發作，想試試修改ADSL用戶名。網通規定修改用戶名時，新用戶名必須以“*” &#8211; 星號開頭。改唄，貌似也沒啥，然後杯具就發生。發現路由器配置頁面的表單是不允許輸入星號的。-_-! 打電話給網通，編個故事說，帳號被已經搬走且反目的同屋修改，自己不知道現在該怎麼登陸，請求恢復成默認的帳號密碼。答覆是，Windows下沒有問題，其他環境，比如路由器網通不提供支持。-_-!</p>
<p>Linux裡撥號是可以寫星號的，因為只是個文本配置文件。但我不能只讓這一台電腦上網其啊。<br />
La Fonera支持<a href="http://wiki.openwrt.org/toh/fon/fonera">被刷</a>。如果能登陸進去，手動改改配置文件，即可更自由。</p>
<p><a href="http://www.cs.helsinki.fi/u/sklvarjo/lafon.htm">重啟後，長按Reset的方法</a>，試了很多次也不管用。很難過，開始考慮是不是去買個新的<a href="http://wiki.openwrt.org/toh/start">支持OpenWRT的路由器</a>。放棄之前還是賭一把，弄根串口線刷刷看。試了幾根手機線做的usb-serial後，都沒成功。我就不信了&#8230;從淘寶買了一根<a href="http://search.taobao.com/search?q=PL2303">PL2303的連接線</a>，絕對環保，沒有外殼，電路板和芯片都裸在外面。一頓折騰後，我的路由器終於又可以撥號了。</p>
<p>網通會生氣吧。:D</p>
<p>這次記錄步驟如下：</p>
<h3>1. 驅動</h3>
<p>Mac OS X版的PL2303驅動在<a href="http://www.apple.com/downloads/macosx/drivers/prolificpl2303driverfor64bitmacosx.html">這裡下載</a>。安裝方法試將解壓縮得到的.kext目錄拷貝到/System/Library/Extensions目錄下，重啟。<br />
連接線接上後，應該會出現一個/dev/tty.PL2303-xxx文件。</p>
<p>Windows版本可在<a href="http://www.drvsky.com/driver/Prolific_USB_Serial_Converter.htm">這裡</a>找到，Windows 7下可以用，不知道別的Windows能用不能。如果不能，可參考這個<a href="http://bbs.drvsky.com/read.php?tid=7082&amp;page=2">帖子</a>。如果驅動與Windows版本不一樣，會有啟動不了設備的問題出現。但基本只要找到相應的PL2303驅動即可。</p>
<h3>2. 終端連接串口</h3>
<p>具體連接方式，請看 http://66.49.218.210/?p=10 。</p>
<h3>3. 用終端程序連接</h3>
<p>我以前用的是Windows下的<a href="http://www.google.com.hk/search?q=hyperterminal">hyperterminal</a>。</p>
<p>這次用的screen，啥設置都不需要做竟然就可以用了。</p>
<p>一定要先把連接線USB端接電腦，否則電腦沒有/dev/tty.PL2303-xxxx的設備沒法開終端等著。<br />
如果發現不能啟動，可以先將TX線拔掉，通電後迅速插上。成功啟動的話會顯示如下信息。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">+PHY ID is 0022:<span style="color: #000000;">5521</span>
Ethernet eth0: MAC address 00:<span style="color: #000000;">18</span>:<span style="color: #000000;">84</span>:<span style="color: #000000;">16</span>:<span style="color: #000000;">74</span>:<span style="color: #000000;">78</span>
IP: 0.0.0.0<span style="color: #000000; font-weight: bold;">/</span>255.255.255.255, Gateway: 0.0.0.0
Default server: 0.0.0.0
RedBoot<span style="color: #7a0874; font-weight: bold;">&#40;</span>tm<span style="color: #7a0874; font-weight: bold;">&#41;</span> bootstrap and debug environment <span style="color: #7a0874; font-weight: bold;">&#91;</span>ROMRAM<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Non-certified release, version v1.3.0 - built <span style="color: #000000;">16</span>:<span style="color: #000000;">57</span>:<span style="color: #000000;">58</span>, Aug <span style="color: #000000;">7</span> <span style="color: #000000;">2006</span>
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>C<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2000</span>, <span style="color: #000000;">2001</span>, <span style="color: #000000;">2002</span>, <span style="color: #000000;">2003</span>, <span style="color: #000000;">2004</span> Red Hat, Inc.
Board: ap51
RAM: 0x80000000-0x81000000, <span style="color: #7a0874; font-weight: bold;">&#91;</span>0x80040450-0x80fe1000<span style="color: #7a0874; font-weight: bold;">&#93;</span> available
FLASH: 0xa8000000 - 0xa87f0000, <span style="color: #000000;">128</span> blocks of 0x00010000 bytes each.
== Executing boot script <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">1.000</span> seconds - enter ^C to abort
RedBoot<span style="color: #000000; font-weight: bold;">&gt;</span> fis load <span style="color: #660033;">-l</span> vmlinux.bin.l7
...<span style="color: #7a0874; font-weight: bold;">&#40;</span>略<span style="color: #7a0874; font-weight: bold;">&#41;</span>...
Please press Enter to activate this console.
...<span style="color: #7a0874; font-weight: bold;">&#40;</span>略<span style="color: #7a0874; font-weight: bold;">&#41;</span>...</pre></div></div>

<p>看到</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Please press Enter to activate this console.</pre></div></div>

<p>便可按回車鍵激活終端。</p>
<h3>4. 修改配置</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">BusyBox v1.1.3 <span style="color: #7a0874; font-weight: bold;">&#40;</span>2006.11.21-<span style="color: #000000;">19</span>:<span style="color: #000000;">49</span>+0000<span style="color: #7a0874; font-weight: bold;">&#41;</span> Built-in shell <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">ash</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Enter <span style="color: #ff0000;">'help'</span> <span style="color: #000000; font-weight: bold;">for</span> a list of built-in commands.
_______ _______ _______
<span style="color: #000000; font-weight: bold;">|</span> ____<span style="color: #000000; font-weight: bold;">||</span> <span style="color: #000000; font-weight: bold;">||</span> _ <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> ____<span style="color: #000000; font-weight: bold;">||</span> - <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span>_______<span style="color: #000000; font-weight: bold;">||</span>__<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span>__<span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span>___<span style="color: #000000; font-weight: bold;">|</span>
Fonera Firmware <span style="color: #7a0874; font-weight: bold;">&#40;</span>Version 0.7.1 <span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-------------</span>
<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #000000; font-weight: bold;">*</span> Based on OpenWrt - http:<span style="color: #000000; font-weight: bold;">//</span>openwrt.org
<span style="color: #000000; font-weight: bold;">*</span> Powered by FON - http:<span style="color: #000000; font-weight: bold;">//</span>www.fon.com
<span style="color: #660033;">---------------------------------------------------</span>
root<span style="color: #000000; font-weight: bold;">@</span>OpenWrt:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>後面的操作，參考<a href=" http://blog.blase16.de/index.php?url=2006/11/28/Hacking-Fonera">這篇</a>文章。</p>
<p>主要步驟有，啟用dropbear來做SSH服務器</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>OpenWrt:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># mv /etc/init.d/dropbear /etc/init.d/S50dropbear</span></pre></div></div>

<p>編輯/etc/firewall.user文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>OpenWrt:~<span style="color: #666666; font-style: italic;"># vi /etc/firewall.user</span></pre></div></div>

<p>在firewall.user裡啟用下面兩行iptable命令，允許訪問22端口。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">### Open port to WAN</span>
<span style="color: #666666; font-style: italic;">## -- This allows port 22 to be answered by (dropbear on) the router</span>
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> prerouting_rule <span style="color: #660033;">-i</span> <span style="color: #007800;">$WAN</span> <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">22</span> <span style="color: #660033;">-j</span> ACCEPT
iptables <span style="color: #660033;">-A</span> input_rule <span style="color: #660033;">-i</span> <span style="color: #007800;">$WAN</span> <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--dport</span> <span style="color: #000000;">22</span> <span style="color: #660033;">-j</span> ACCEPT</pre></div></div>

<p>重啟。可以ssh到路由器了。</p>
<p>編輯/etc/config/fon文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>OpenWrt:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># vi /etc/config/fon</span></pre></div></div>

<p>主要修改如下信息</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config network wan
option mode <span style="color: #ff0000;">'pppoe'</span>
option username <span style="color: #ff0000;">'_username_'</span>
option password <span style="color: #ff0000;">'_password_'</span></pre></div></div>

<p>修改局域網的網段，默認為192.168.10.1/255.255.255.0 ，我改成了如下樣子。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config network lan
option mode static
option ipaddr <span style="color: #ff0000;">'10.10.10.1'</span>
option netmask <span style="color: #ff0000;">'255.255.255.0'</span>
option dhcp <span style="color: #ff0000;">'1'</span></pre></div></div>

<p>默認用戶名密碼，都是admin/admin。admin也就是root，用passwd命令可以修改。</p>
<p>重啟。搞定，又可以在家wifi了。</p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/toy/" rel="tag">玩意</a><br/>
<a href="http://sunliwen.com/2010/07/la-fonera-2100-crack/#comments-heading">1个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2010/07/la-fonera-2100-crack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用RAMHost的MiniVPS架设VPN和Squid代理</title>
		<link>http://sunliwen.com/2010/06/ramhost-vpn-squid/</link>
		<comments>http://sunliwen.com/2010/06/ramhost-vpn-squid/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:12:50 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAMHost]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=1132</guid>
		<description><![CDATA[突然之間翻牆就成了必備技能之一。 我用RAMHost的Mini VPS嘗試了幾種翻牆的方式。 操作系統是Debian 5.0。 通過VPN翻牆 &#8211; OpenVPN＋Tunnelblick 全局都翻牆且不用設置瀏覽器，客戶端一點就可以。 具體步驟參考RAMHost用戶論壇的第四個帖子。唯一需要注意的是第四步在/etc/rc.local中加入自動重啟OpenVPN的命令。這還真是必須的，因為/dev/tun會在重啟的時候丟掉，可能是OpenVZ的原因吧。 # restart openvpn after 1 hour in case tun device got broken on reboot sleep 3600 /etc/init.d/openvpn stop sleep 10 /etc/init.d/openvpn start 我使用Tunnelblick做客戶端來連VPN。 下載安裝後，需要將openvpn.conf放在如下位置~/Library/Application Support/Tunnelblick/Configurations/openvpn.conf中引用的.crt和.key也放這裡即可。 當晚（其實大概天快亮了-_-!）試過看Hulu和Youtube等高清視頻很流暢。 好處多多，壞處就是得拷貝那几個證書文件給客戶端。（更喜歡PPTP要求用戶名密碼的方式，但OpenVZ不支持。） 代理服務器 &#8211; Squid GFW是強大的，直接用Squid仍然會被墻。 更安全的代理服務器 &#8211; Squid+Stunnel 請教了一下Fantix，他用Stunnel給Squid加密的方法來解決這個問題。 我用的Squid3，需要啟用lenny-backports才能找到。其實默認的Squid2.7也可以。裝好後，默認配置就能用。 sudo apt-get install squid3 簡化版的配置如下： visible_hostname proxy.sunliwen.com cache_effective_user proxy [...]]]></description>
			<content:encoded><![CDATA[<p>突然之間翻牆就成了必備技能之一。<br />
我用<a href="http://www.ramhost.us">RAMHost</a>的Mini VPS嘗試了幾種翻牆的方式。<br />
操作系統是Debian 5.0。</p>
<h3>通過VPN翻牆 &#8211; OpenVPN＋Tunnelblick</h3>
<p>全局都翻牆且不用設置瀏覽器，客戶端一點就可以。</p>
<p>具體步驟參考RAMHost用戶論壇的<a href="https://forum.ramhost.us/bbs/viewtopic.php?id=4">第四個帖子</a>。唯一需要注意的是第四步在/etc/rc.local中加入自動重啟OpenVPN的命令。這還真是必須的，因為/dev/tun會在重啟的時候丟掉，可能是OpenVZ的原因吧。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># restart openvpn after 1 hour in case tun device got broken on reboot</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">3600</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>openvpn stop
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">10</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>openvpn start</pre></div></div>

<p>我使用<a href="http://code.google.com/p/tunnelblick/">Tunnelblick</a>做客戶端來連VPN。<br />
下載安裝後，需要將openvpn.conf放在如下位置~/Library/Application Support/Tunnelblick/Configurations/openvpn.conf中引用的<em>.crt和</em>.key也放這裡即可。</p>
<p>當晚（其實大概天快亮了-_-!）試過看<a href="http://www.hulu.com/">Hulu</a>和<a href="http://www.youtube.com">Youtube</a>等高清視頻很流暢。</p>
<p>好處多多，壞處就是得拷貝那几個證書文件給客戶端。（更喜歡PPTP要求用戶名密碼的方式，但OpenVZ不支持。）</p>
<h3>代理服務器 &#8211; Squid</h3>
<p>GFW是強大的，直接用Squid仍然會被墻。</p>
<h3>更安全的代理服務器 &#8211; Squid+Stunnel</h3>
<p>請教了一下<a href="http://www.fantix.org">Fantix</a>，他用Stunnel給Squid加密的方法來解決這個問題。</p>
<p>我用的Squid3，需要啟用lenny-backports才能找到。其實默認的Squid2.7也可以。裝好後，默認配置就能用。</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> squid3</pre></div></div>

<p>簡化版的配置如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">visible_hostname proxy.sunliwen.com
cache_effective_user proxy proxy
http_port <span style="color: #000000;">3128</span>
acl localnet src 127.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span>
http_access allow localnet</pre></div></div>

<pre>sudo /etc/init.d/squid3 start</pre>
<p>因為我要用Stunnel加密，所以只允許本地訪問。<br />
配置Stunnel之前先測試一下Squid是否可以走通。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HTTP_PROXY</span>=http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">3128</span>
elinks www.youtube.com</pre></div></div>

<p>配置服務器端Stunnel（可參考<a href="http://www.jeffyestrumskas.com/index.php/how-to-setup-a-secure-web-proxy-using-ssl-encryption-squid-caching-proxy-and-pam-authentication/">這篇</a>博客）</p>
<p>主要有以下幾個步驟：</p>
<ol>
<li>生成證書</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl genrsa <span style="color: #660033;">-out</span> privkey.pem <span style="color: #000000;">2048</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-x509</span> <span style="color: #660033;">-key</span> privkey.pem <span style="color: #660033;">-out</span> cacert.pem <span style="color: #660033;">-days</span> <span style="color: #000000;">1095</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> privkey.pem cacert.pem <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>stunnel<span style="color: #000000; font-weight: bold;">/</span>stunnel.pem</pre></div></div>

<ol>
<li>更改證書屬性</li>
</ol>

<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;">chmod</span> 0400 <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>stunnel<span style="color: #000000; font-weight: bold;">/</span>stunnel.pem</pre></div></div>

<ol>
<li>更改chroot目錄的owner</li>
</ol>

<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;">chown</span> stunnel4:stunnel4 <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>stunnel4</pre></div></div>

<ol>
<li>/etc/stunnel/stunnel.conf編輯如下</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">cert = <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>stunnel<span style="color: #000000; font-weight: bold;">/</span>stunnel.pem
<span style="color: #c20cb9; font-weight: bold;">chroot</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>stunnel4<span style="color: #000000; font-weight: bold;">/</span>
pid = <span style="color: #000000; font-weight: bold;">/</span>stunnel4.pid
setuid = stunnel4
setgid = stunnel4
; debug = <span style="color: #000000;">7</span>
; output = <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>stunnel4<span style="color: #000000; font-weight: bold;">/</span>stunnel.log
client = no
<span style="color: #7a0874; font-weight: bold;">&#91;</span>http<span style="color: #7a0874; font-weight: bold;">&#93;</span>
accept = <span style="color: #000000;">8080</span>
connect = localhost:<span style="color: #000000;">3128</span></pre></div></div>

<p>客戶端也需要安裝stunnel，這裡是MacOSX</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> stunnel</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> stunnel3 <span style="color: #660033;">-c</span> <span style="color: #660033;">-d</span> localhost:<span style="color: #000000;">8080</span> <span style="color: #660033;">-r</span> proxy.sunliwen.com:<span style="color: #000000;">8080</span></pre></div></div>

<p>或者創建包含如下內容的配置文件 stunnel.conf (我這立的位置在 /opt/local/etc/stunnel/stunnel.conf )</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">client = <span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>proxy<span style="color: #7a0874; font-weight: bold;">&#93;</span>
accept = 127.0.0.1:<span style="color: #000000;">8080</span>
connect = proxy.sunliwen.com:<span style="color: #000000;">8080</span></pre></div></div>

<p>然後 http://localhost:8080 便成了一個安全的代理。</p>
<h3>比較</h3>
<p>前者比較方便，但不是很穩定，鏈接會自動斷開，重新鏈接VPN可以恢復。<br />
後者需要在瀏覽器上進行設置，但比較穩定，沒出過什麼問題。</p>
<p>兩種方法速度差不多，都比裸的Squid慢。</p>
<p>PS：<a href="http://www.hulu.com">Hulu</a> － 通過VPN可以看，Squid代理卻不行。<br />
後者具體情況是，在播放完廣告之後報告一個錯</p>
<blockquote><p>Sorry, we are unable to stream this video. Please check your Internet connection and try again.</p></blockquote>
<p>點“reload the video”，重新放了一遍廣告，錯誤依舊。<a href="http://huluexposed.wordpress.com/2008/03/17/how-to-bypass-the-hulucom-location-check-using-a-socks5-proxy-2/">可能Hulu已經不僅僅在播放前查IP了</a>。</p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/ramhost/" rel="tag">RAMHost</a>, <a href="http://sunliwen.com/tag/squid/" rel="tag">Squid</a>, <a href="http://sunliwen.com/tag/vpn/" rel="tag">VPN</a>, <a href="http://sunliwen.com/tag/vps/" rel="tag">VPS</a><br/>
<a href="http://sunliwen.com/2010/06/ramhost-vpn-squid/#comments-heading">11个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2010/06/ramhost-vpn-squid/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>RAMHost的VPS</title>
		<link>http://sunliwen.com/2010/06/ramhost-vps/</link>
		<comments>http://sunliwen.com/2010/06/ramhost-vps/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:12:04 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAMHost]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=1075</guid>
		<description><![CDATA[讀了很多VPS評測的文章，最後選擇了非常有誘惑力的Ramhost (基本只有好評) 第一次使用ssh登錄 https://ramhost.us/?page=vps-console 添加用戶 adduser liwen 安裝sshd apt-get install openssh-server 安裝vim apt-get install vim 安裝sudo apt-get install sudo 安裝apache/php5 apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-cgi php5-mysql php5-mcrypt php5-gd php5-sqlite 安裝ZendOptimizer (參考：http://www.debiantutorials.net/installing-zend-optimizer/) wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz 安裝mysql apt-get install mysql-server 添加用戶到www-data組 usermod -G www-data liwen id liwen uid=1000&#40;liwen&#41; gid=1000&#40;liwen&#41; groups=1000&#40;liwen&#41;,33&#40;www-data&#41; 解決locale錯誤信息 perl: warning: Setting locale failed. perl: warning: Please [...]]]></description>
			<content:encoded><![CDATA[<p>讀了很多VPS評測的文章，最後選擇了非常有誘惑力的Ramhost (基本只有<a href="http://www.google.com/search?hl=en&#038;newwindow=1&#038;q=ramhost+%E5%A5%BD%E8%AF%84&#038;btnG=Search&#038;aq=f&#038;aqi=&#038;aql=&#038;oq=&#038;gs_rfai=">好評</a>)</p>
<p>第一次使用ssh登錄</p>
<p><a href="pre lang="bash"">https://ramhost.us/?page=vps-console</a></p>
<p>添加用戶</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser liwen</pre></div></div>

<p>安裝sshd</p>

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

<p>安裝vim</p>

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

<p>安裝sudo</p>

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

<p>安裝apache/php5</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2-mpm-prefork libapache2-mod-php5 php5-cgi php5-mysql php5-mcrypt php5-gd php5-sqlite</pre></div></div>

<p>安裝ZendOptimizer (參考：<a href="http://www.debiantutorials.net/installing-zend-optimizer/">http://www.debiantutorials.net/installing-zend-optimizer/</a>)</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>downloads.zend.com<span style="color: #000000; font-weight: bold;">/</span>optimizer<span style="color: #000000; font-weight: bold;">/</span>3.3.9<span style="color: #000000; font-weight: bold;">/</span>ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz</pre></div></div>

<p>安裝mysql</p>

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

<p>添加用戶到www-data組</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usermod <span style="color: #660033;">-G</span> www-data liwen
<span style="color: #c20cb9; font-weight: bold;">id</span> liwen
<span style="color: #007800;">uid</span>=<span style="color: #000000;">1000</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>liwen<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">gid</span>=<span style="color: #000000;">1000</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>liwen<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">groups</span>=<span style="color: #000000;">1000</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>liwen<span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #000000;">33</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>www-data<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>解決locale錯誤信息</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span>: warning: Setting locale failed.
<span style="color: #c20cb9; font-weight: bold;">perl</span>: warning: Please check that your locale settings:
LANGUAGE = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">unset</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,
LC_ALL = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">unset</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,
LANG = <span style="color: #ff0000;">&quot;en_US.utf8&quot;</span>
are supported and installed on your system.
<span style="color: #c20cb9; font-weight: bold;">perl</span>: warning: Falling back to the standard locale <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;C&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</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;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> locales</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dpkg-reconfigure locales</pre></div></div>

<p>需要中文支持</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">locale-gen zh_CN.GBK
locale-gen zh_CN.GB2312
locale-gen zh_CN.GB18030</pre></div></div>

<p>查看vps狀態<br />
<a href="https://my.ramhost.us/v2/vps/cp/?page=main">https://my.ramhost.us/v2/vps/cp/?page=main</a></p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/ramhost/" rel="tag">RAMHost</a>, <a href="http://sunliwen.com/tag/vps/" rel="tag">VPS</a><br/>
<a href="http://sunliwen.com/2010/06/ramhost-vps/#comments-heading">1个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2010/06/ramhost-vps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mozilla Prism的Defect</title>
		<link>http://sunliwen.com/2009/03/mozilla-prism-windows-live-reply-empty/</link>
		<comments>http://sunliwen.com/2009/03/mozilla-prism-windows-live-reply-empty/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:12:18 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=1016</guid>
		<description><![CDATA[昨天，3月17日，是比较不幸的一天。下午因某些原因我在Windows Live Mail里回复邮件，可以说是我写过的最长的邮件，而且此邮件充斥着我的真情实感。我有个习惯发出去的邮件在Sent目录检查一下。但我发现这封邮件发出去后内容为空。我就崩溃了。难道这封邮件设置了“禁止转发”？没记得email支持这样的功能，如果是某些脚本捣的鬼，浏览器也应该提示我。 我使用Mozilla Labs的Prism启动的Windows Live Mail。用其他浏览器（Firefox, Opera）实验了一下，发现这是一个defect。gg了也没有发现同样的case。后来任同学帮忙在Windows下试了一下也有同样的问题。 去了#prism的IRC，没有人响应，可能另一个半球的同学都在睡觉。于是我默默的file了一个defect。 Tags: Linux, Misc 2个评论]]></description>
			<content:encoded><![CDATA[<p>昨天，3月17日，是比较不幸的一天。下午因某些原因我在Windows Live Mail里回复邮件，可以说是我写过的最长的邮件，而且此邮件充斥着我的真情实感。我有个习惯发出去的邮件在Sent目录检查一下。但我发现这封邮件发出去后内容为空。我就崩溃了。难道这封邮件设置了“禁止转发”？没记得email支持这样的功能，如果是某些脚本捣的鬼，浏览器也应该提示我。</p>
<p>我使用Mozilla Labs的Prism启动的Windows Live Mail。用其他浏览器（Firefox, Opera）实验了一下，发现这是一个defect。gg了也没有发现同样的case。后来<a href="http://www.renwenyue.com">任同学</a>帮忙在Windows下试了一下也有同样的问题。</p>
<p>去了#prism的IRC，没有人响应，可能另一个半球的同学都在睡觉。于是我默默的file了一个<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=483923">defect</a>。</p>
<p><!--da585e32-7db2-4b28-9aaa-82600c6cfcd6--></p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/misc/" rel="tag">Misc</a><br/>
<a href="http://sunliwen.com/2009/03/mozilla-prism-windows-live-reply-empty/#comments-heading">2个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2009/03/mozilla-prism-windows-live-reply-empty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux教育笔记本</title>
		<link>http://sunliwen.com/2009/03/education-linux-laptop/</link>
		<comments>http://sunliwen.com/2009/03/education-linux-laptop/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 07:28:51 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RUR-PLE]]></category>
		<category><![CDATA[打工子弟学校]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=986</guid>
		<description><![CDATA[先前在BLUG认识了pockey，了解到一些关于她所在团队Gdium的一些情况。于是去了一下他们的公司（也是BLUG的总部）聊了很多。3月7日，在众阳光志愿者、Gdium团队的共同努力下，我们在朝阳区崔各庄实验学校（非公立，非政府承认）展开了一次教育笔记本体验活动（召集贴，总结贴）。 总结如下： 有5个三年级的孩子，和4个的五年级的孩子参加了计划中的项目。 包括： 1) ”我明白了“ GCompris 数学、英文生词、打字、用鼠标等练习（初学者也可以应用的） 2) 一个关于地里的简单练习（就是在地图上找出国内不同城市的位置配对） 3）机器人游戏（输入简单的键来控制机器人的方向） 4）怎么用计算机录像 与 怎么用简单的绘画工具来绘画 不过能明显看出，孩子们最感兴趣的是电脑中的游戏，如泡泡龙。孩子天性嘛！ 但我们应该让他们知道可以利用电脑做很多其他的事情。 值得一提的是，逻辑发展这个环节，虽然给定的机器人没有向右转的功能。 但大部分五年级的孩子都能很快的想到机器人“左转”三次就等于“右转”一次。 有的五年纪的孩子能理解给出的三个英文命令的中文意思：“前进“、“左转“和“停止“。 一个五年级的孩子最后成功的用程序画出了一个正方形。 然后这个孩子负责教了其他几个孩子写这个程序，还积极的演示给来参观的志愿者看。 pockey给三位崔各庄的老师介绍了“开放教育”的一系列内容。 随后这几位老师和pockey、浮游和fredthered等同学聊了好一阵子。 我觉得老师对这种体验活动都很接受和欢迎。 朱力安演示了一下教师终端控制学生电脑的功能。很好很强大～ 播放了准备的用开源软件制作的动画片，投影到黑板上，孩子们很开心的以此为背景玩手影游戏。 去看了一下崔各庄的机房，比桃园学校好一些，机器多一些。刚配置的这匹二手电脑，看起来还不错。 据说还要安装网络。 最后几个孩子还问我们下周会不会来。我说回头来把今天用的软件拷给他们，或者装到学校的机器上让他们用。 现在已经确定下周六(2009年3月14日)在桃园学校再办一次体验活动， 番茄JJ建议之后在汇蕾学校也办一次。 因为崔各庄实验学校的校长今天不在，所以下周六还会再去一次崔各庄。 ===== 一直以来大家在讨论Linux以及开源软件与我们所熟知的MS Windows世界的异同。很多朋友在尝试之后发现，从功能上确实可以互相替代，但最后因为习惯，游戏支持，办公软件或者因为企业部署成本的原因又回到Windows上。这种争论还会继续下去。 但从这次活动我们可以看到，对于孩子来说用什么软件不是很重要。他们也没怎么想过这是运行在什么操作系统上，运行的是什么软件，他们只看到了实质的内容：控制机器人，或者好玩的游戏。鼠标点击就可以开启一个游戏或者开启一个文字处理的界面。 先前还曾担心，让孩子们学习python编写的机器人小游戏（rur-ple），他们会觉着陌生乏味而没法继续下去。但实际的反应却超出预期。 对于孩子们的教育方式，我觉着还需要再想想，再调整。 不过无论如何，so fay so good! Tags: Linux, RUR-PLE, 打工子弟学校 4个评论]]></description>
			<content:encoded><![CDATA[<p>先前在<a href="http://www.beijinglug.org">BLUG</a>认识了pockey，了解到一些关于她所在团队<a href="http://www.gdium.com">Gdium</a>的一些情况。于是去了一下他们的公司（也是BLUG的总部）聊了很多。3月7日，在众<a href="http://www.ygclub.org">阳光志愿者</a>、<a href="http://www.gdium.com">Gdium团队</a>的共同努力下，我们在朝阳区崔各庄实验学校（非公立，非政府承认）展开了一次教育笔记本体验活动（<a href="http://www.ygclub.org/bbs/viewthread.php?tid=2015">召集贴</a>，<a href="http://www.ygclub.org/bbs/viewthread.php?tid=2026">总结贴</a>）。</p>
<p>总结如下：</p>
<div id="postmessage_12674" class="t_msgfont">有5个三年级的孩子，和4个的五年级的孩子参加了计划中的项目。</p>
<div class="quote">
<blockquote><p>包括：<br />
1) ”我明白了“ <a href="http://gcompris.net/">GCompris </a>数学、英文生词、打字、用鼠标等练习（初学者也可以应用的）<br />
2) 一个关于<a href="http://kgeography.berlios.de/">地里</a>的简单练习（就是在地图上找出国内不同城市的位置配对）<br />
3）<a href="http://rur-ple.sourceforge.net/">机器人游戏</a>（输入简单的键来控制机器人的方向）<br />
4）怎么用计算机录像 与 怎么用简单的绘画工具来绘画</p></blockquote>
</div>
<p>不过能明显看出，孩子们最感兴趣的是电脑中的游戏，如泡泡龙。孩子天性嘛！<br />
但我们应该让他们知道可以利用电脑做很多其他的事情。</p>
<p>值得一提的是，逻辑发展这个环节，虽然给定的机器人没有向右转的功能。<br />
但大部分五年级的孩子都能很快的想到机器人“左转”三次就等于“右转”一次。<br />
有的五年纪的孩子能理解给出的三个英文命令的中文意思：“前进“、“左转“和“停止“。<br />
一个五年级的孩子最后成功的用程序画出了一个正方形。<br />
然后这个孩子负责教了其他几个孩子写这个程序，还积极的演示给来参观的<span class="t_tag" onclick="tagshow(event)">志愿者</span>看。</p>
<p>pockey给三位崔各庄的老师介绍了“开放教育”的一系列内容。<br />
随后这几位老师和pockey、浮游和fredthered等同学聊了好一阵子。<br />
我觉得老师对这种体验<span class="t_tag" onclick="tagshow(event)">活动</span>都很接受和欢迎。</p>
<p>朱力安演示了一下教师终端控制学生电脑的功能。很好很强大～<br />
播放了准备的用开源软件制作的动画片，投影到黑板上，孩子们很开心的以此为背景玩手影游戏。</p>
<p>去看了一下崔各庄的机房，比<span class="t_tag" onclick="tagshow(event)">桃园学校</span>好一些，机器多一些。刚配置的这匹二手电脑，看起来还不错。<br />
据说还要安装网络。</p>
<p>最后几个孩子还问我们下周会不会来。我说回头来把今天用的软件拷给他们，或者装到学校的机器上让他们用。</p>
<p>现在已经确定下周六(2009年3月14日)在桃园学校再办一次体验活动，<br />
番茄JJ建议之后在汇蕾学校也办一次。<br />
因为崔各庄实验学校的校长今天不在，所以下周六还会再去一次崔各庄。</p></div>
<div class="t_msgfont">=====</div>
<div class="t_msgfont">一直以来大家在讨论Linux以及开源软件与我们所熟知的MS Windows世界的异同。很多朋友在尝试之后发现，从功能上确实可以互相替代，但最后因为习惯，游戏支持，办公软件或者因为企业部署成本的原因又回到Windows上。这种争论还会继续下去。</div>
<div class="t_msgfont">但从这次活动我们可以看到，对于孩子来说用什么软件不是很重要。他们也没怎么想过这是运行在什么操作系统上，运行的是什么软件，他们只看到了实质的内容：控制机器人，或者好玩的游戏。鼠标点击就可以开启一个游戏或者开启一个文字处理的界面。</div>
<div class="t_msgfont">先前还曾担心，让孩子们学习python编写的机器人小游戏（rur-ple），他们会觉着陌生乏味而没法继续下去。但实际的反应却超出预期。</div>
<div class="t_msgfont">对于孩子们的教育方式，我觉着还需要再想想，再调整。</div>
<div class="t_msgfont">不过无论如何，so fay so good!</div>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a>, <a href="http://sunliwen.com/tag/rur-ple/" rel="tag">RUR-PLE</a>, <a href="http://sunliwen.com/tag/migrant-school/" rel="tag">打工子弟学校</a><br/>
<a href="http://sunliwen.com/2009/03/education-linux-laptop/#comments-heading">4个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2009/03/education-linux-laptop/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>在OpenSUSE11.1下使用WG111v3无线网卡</title>
		<link>http://sunliwen.com/2009/03/wg111v3-on-opensuse/</link>
		<comments>http://sunliwen.com/2009/03/wg111v3-on-opensuse/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 18:33:45 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://thinklouder.cn/?p=974</guid>
		<description><![CDATA[我的USB无线网卡型号是NetGear WG111v3（芯片为RTL8187B），性能不错，长时间使用稍微有点热，但绝对可以接受。 之前一直在Ubuntu8.04下通过ndiswrapper+Windows驱动的方法使用。OpenSUSE11.1的Kernel是 2.6.27.7-9，这个版本内置了rtl8187的驱动。但是有defect，使用一段时间网速会变慢或者dhcp获得了ip却ping不通 router。 uname -a Linux suse 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 i686 i386 GNU/Linux 我本想同样用ndiswrapper的方式解决，但没能成功。也许我使用方法不对，ndiswrapper的方式NetworkManager或者ifup的形式都找不到wlan0这个设备。 苦恼中发现了下面这个帖子： http://www.susegeek.com/wireless/rtl8187b-wireless-native-driver-support-in-opensuse-111-kernel-2627/ 有几个网友在抱怨与我类似的问题，三楼的网友给了一个linux-wireless邮件列表中的解决方案。 http://osdir.com/ml/linux-wireless/2009-01/msg00713.html rtl8187驱动的维护者说，目前这个defect已经解决，但是需要几个月才能放入kernel的mainline，即使2.6.29也不会有这个补丁。 需要动手编译一下相关的modules。这个页面有详细说明，作者建议仔细阅读这个页面再进行下一步操作。 http://linuxwireless.org/en/users/Download 简单摘要如下： 到 compat-wireless-2.6的下载目录 http://wireless.kernel.org/download/compat-wireless-2.6/ 下载最新的包。这个包来自wireless-testing.git tree最新的版本，每天更新。（这个目录有防盗链，所以最好直接点击下载&#8230;） 然后， 解压缩 tar jxvf compat-wireless-$&#40;date -I&#41;.tar.bz2 编译 cd compat-wireless-$&#40;date -I&#41; make 安装 sudo make install 卸载之前的模块 sudo make unload 如果想卸载自己编译的版本 sudo make [...]]]></description>
			<content:encoded><![CDATA[<p>我的USB无线网卡型号是NetGear WG111v3（芯片为RTL8187B），性能不错，长时间使用稍微有点热，但绝对可以接受。</p>
<p>之前一直在Ubuntu8.04下通过<a href="http://www.tuxmagazine.com/node/1000167">ndiswrapper+Windows驱动</a>的方法使用。OpenSUSE11.1的Kernel是 2.6.27.7-9，这个版本内置了rtl8187的驱动。但是有defect，使用一段时间网速会变慢或者dhcp获得了ip却ping不通 router。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
Linux suse 2.6.27.7-<span style="color: #000000;">9</span>-pae <span style="color: #666666; font-style: italic;">#1 SMP 2008-12-04 18:10:04 +0100 i686 i686 i386 GNU/Linux</span></pre></div></div>

<p>我本想同样用ndiswrapper的方式解决，但没能成功。也许我使用方法不对，ndiswrapper的方式NetworkManager或者ifup的形式都找不到wlan0这个设备。</p>
<p>苦恼中发现了下面这个帖子：</p>
<p><a href="http://www.susegeek.com/wireless/rtl8187b-wireless-native-driver-support-in-opensuse-111-kernel-2627/">http://www.susegeek.com/wireless/rtl8187b-wireless-native-driver-support-in-opensuse-111-kernel-2627/</a></p>
<p>有几个网友在抱怨与我类似的问题，三楼的网友给了一个linux-wireless邮件列表中的解决方案。</p>
<p><a href="http://osdir.com/ml/linux-wireless/2009-01/msg00713.html">http://osdir.com/ml/linux-wireless/2009-01/msg00713.html</a></p>
<p>rtl8187驱动的维护者说，目前这个defect已经解决，但是需要几个月才能放入kernel的mainline，即使2.6.29也不会有这个补丁。</p>
<p>需要动手编译一下相关的modules。这个页面有详细说明，作者建议仔细阅读这个页面再进行下一步操作。</p>
<p><a href="http://linuxwireless.org/en/users/Download">http://linuxwireless.org/en/users/Download</a></p>
<p>简单摘要如下：</p>
<p>到 compat-wireless-2.6的下载目录 http://wireless.kernel.org/download/compat-wireless-2.6/ 下载最新的包。这个包来自wireless-testing.git tree最新的版本，每天更新。（这个目录有防盗链，所以最好直接点击下载&#8230;）</p>
<p>然后，</p>
<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> jxvf compat-wireless-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> -I<span style="color: #7a0874; font-weight: bold;">&#41;</span>.tar.bz2</pre></div></div>

<p>编译</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> compat-wireless-$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> -I<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">make</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> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</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> <span style="color: #c20cb9; font-weight: bold;">make</span> unload</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> <span style="color: #c20cb9; font-weight: bold;">make</span> uninstall</pre></div></div>

<p>因为我需要rtl8187这个模块，所以</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe rtl8187
<span style="color: #c20cb9; font-weight: bold;">lsmod</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> rtl8187</pre></div></div>

<p>确认已经加载成功。重启。<br />
使用”Yast2控制中心&gt;网络设备&gt;网络设置”重新进行无线网卡的设置。搞定！</p>
<p>因为compact-wireless-2.6不是mainline的版本所以</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sunlw<span style="color: #000000; font-weight: bold;">@</span>suse:~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">dmesg</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> rtl
rtl8187: 8187B chip detected. Support is EXPERIMENTAL, and could damage your
phy0: hwaddr 00:1e:2a:af:<span style="color: #000000;">14</span>:0c, RTL8187BvE V0 + rtl8225z2
usbcore: registered new interface driver rtl8187</pre></div></div>

<p>PS：OpenSUSE里NetworkManager和ifup形式的网络管理只能二选一，回头找一个network monitor放在panel里。</p>
<p>PS：我在Ubuntu下编译了整套的monodevelop，但是有点麻烦，需要逐个安装依赖，并逐个编译cil的wrapper包，然后才能编译一个功能较为完整的monodevelop。装一个OpenSUSE11.1是为了直接使用编译好的<a href="http://monodevelop.com/Download_-_Unstable">Unstable版</a>。但好像最近也有for Debian的deb包了，不知道是不是于同步的。</p>
<p>PS: OpenSUSE下编译内核模块需要安装的工具有gcc, automake, autoconf, kernel-source, kernel-syms这些包在安装DVD中都有。<br />
Have fun!</p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a><br/>
<a href="http://sunliwen.com/2009/03/wg111v3-on-opensuse/#comments-heading">3个评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2009/03/wg111v3-on-opensuse/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simplified Minix filesystem</title>
		<link>http://sunliwen.com/2005/07/simplified-minix-filesystem/</link>
		<comments>http://sunliwen.com/2005/07/simplified-minix-filesystem/#comments</comments>
		<pubDate>Wed, 13 Jul 2005 06:37:24 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://fishpot.spaces.live.com/Blog/cns!AA7DB611C0406AB4!161.entry</guid>
		<description><![CDATA[作业编译成功，纪念一下！所谓的Sminix文件系统只能创建文件，不能创建目录。没什么用就是乐子。 debian:/usr/src/kernel-source-2.6.10# make -j15 modules CHK include/linux/version.h make&#91;1&#93;: `arch/i386/kernel/asm-offsets.s’ is up to date. CC &#91;M&#93; fs/sminix/bitmap.o CC &#91;M&#93; fs/sminix/itree_v1.o CC &#91;M&#93; fs/sminix/itree_v2.o CC &#91;M&#93; fs/sminix/namei.o CC &#91;M&#93; fs/sminix/inode.o CC &#91;M&#93; fs/sminix/file.o CC &#91;M&#93; fs/sminix/dir.o fs/sminix/bitmap.c: In function `sminix_free_block’: fs/sminix/bitmap.c:71: warning: implicit declaration of function `sminix_test_and_clear_bit’ fs/sminix/bitmap.c: In function `sminix_new_block’: fs/sminix/bitmap.c:89: warning: implicit declaration of function [...]]]></description>
			<content:encoded><![CDATA[<p>作业编译成功，纪念一下！所谓的Sminix文件系统只能创建文件，不能创建目录。没什么用就是乐子。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">debian:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>kernel-source-2.6.10<span style="color: #666666; font-style: italic;"># make -j15 modules</span>
  CHK     include<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>version.h
<span style="color: #c20cb9; font-weight: bold;">make</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: <span style="color: #000000; font-weight: bold;">`</span>arch<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>asm-offsets.s’ is up to date.
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>itree_v1.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>itree_v2.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>namei.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>inode.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>file.o
  CC <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>dir.o
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_free_block’:
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c:<span style="color: #000000;">71</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_test_and_clear_bit’
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_new_block’:
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c:<span style="color: #000000;">89</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_find_first_zero_bit’
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c:<span style="color: #000000;">90</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_set_bit’
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_new_inode’:
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>bitmap.c:<span style="color: #000000;">240</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_test_and_set_bit’
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>inode.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_fill_super’:
fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>inode.c:<span style="color: #000000;">225</span>: warning: implicit declaration of <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #000000; font-weight: bold;">`</span>sminix_set_bit’
  LD <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.o
  Building modules, stage <span style="color: #000000;">2</span>.
  MODPOST
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;sminix_test_and_clear_bit&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;sminix_test_and_set_bit&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;sminix_set_bit&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;sminix_find_first_zero_bit&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;videobuf_dvb_unregister&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>drivers<span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>video<span style="color: #000000; font-weight: bold;">/</span>saa7134<span style="color: #000000; font-weight: bold;">/</span>saa7134-dvb.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">***</span> Warning: <span style="color: #ff0000;">&quot;videobuf_dvb_register&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>drivers<span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>video<span style="color: #000000; font-weight: bold;">/</span>saa7134<span style="color: #000000; font-weight: bold;">/</span>saa7134-dvb.ko<span style="color: #7a0874; font-weight: bold;">&#93;</span> undefined<span style="color: #000000; font-weight: bold;">!</span>
  CC      fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.mod.o
  LD <span style="color: #7a0874; font-weight: bold;">&#91;</span>M<span style="color: #7a0874; font-weight: bold;">&#93;</span>  fs<span style="color: #000000; font-weight: bold;">/</span>sminix<span style="color: #000000; font-weight: bold;">/</span>sminix.ko
debian:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>kernel-source-2.6.10<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a><br/>
<a href="http://sunliwen.com/2005/07/simplified-minix-filesystem/#comments-heading">没有评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2005/07/simplified-minix-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finder终于调试好了~</title>
		<link>http://sunliwen.com/2005/04/ftp-index-engine-finder/</link>
		<comments>http://sunliwen.com/2005/04/ftp-index-engine-finder/#comments</comments>
		<pubDate>Thu, 21 Apr 2005 11:07:10 +0000</pubDate>
		<dc:creator>Liwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://fishpot.spaces.live.com/Blog/cns!AA7DB611C0406AB4!148.entry</guid>
		<description><![CDATA[服务器还是不行啊~ 硬件应该没问题了，但是软件这方面还需要再加强 看来得换rhel4试一下了 记得原来索引4万条记录最多只需要5分钟 % 號的问题其实还是存在的只是把遇到%退出，改为别的操作了 vsftpd似乎也有这方面的毛病 Tags: Linux 没有评论]]></description>
			<content:encoded><![CDATA[<p>服务器还是不行啊~<br />
硬件应该没问题了，但是软件这方面还需要再加强</p>
<p>看来得换rhel4试一下了<br />
记得原来索引4万条记录最多只需要5分钟</p>
<p>% 號的问题其实还是存在的只是把遇到%退出，改为别的操作了<br />
vsftpd似乎也有这方面的毛病</p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_instapaper"></a>
	<a class="jiathis_button_stubleupon"></a>
	<a href="http://www.jiathis.com/share?uid=1544311" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code_mini/jia.js?uid=1544311" charset="utf-8"></script>
<!-- JiaThis Button END --></div><hr />
<p>
<small>
Tags: <a href="http://sunliwen.com/tag/linux/" rel="tag">Linux</a><br/>
<a href="http://sunliwen.com/2005/04/ftp-index-engine-finder/#comments-heading">没有评论</a>
</small>
</p>]]></content:encoded>
			<wfw:commentRss>http://sunliwen.com/2005/04/ftp-index-engine-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

