<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>想当摄影师的程序员 &#187; 操作系统</title>
	<atom:link href="http://blog.iworm.net/category/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iworm.net</link>
	<description>争取不惑之年成为一名自由摄影师</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:09:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
		<item>
		<title>Windows 7 不能连接L2TP/IPSec VPN的解决办法，以及MacOS拨上VPN后，默认路由没改的解决办法</title>
		<link>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/</link>
		<comments>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 06:48:18 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[l2tp]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=913</guid>
		<description><![CDATA[最近几篇都是讲不能xxx的原因&#8230;. Windows 7里连接不上L2TP/IPSec的VPN，提示无法连接主机，主机没响应。 前提是：L2TP都设置正确，协议是L2TP/IPSec，Preshared Key也填写了。 具体解决办法如下： 1. 确保服务里面“IKE and AuthIP IPSec Keying module” 和“IPSec policy agent”两个服务状态是自动，并且已经运行 2. 打开注册表，在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent里添加一个DWORD（32-bit），名称是AssumeUDPEncapsulationContextOnSendRule的key，值为2 重启电脑即可。 如果你是在公司域中，需要在VPN设置里，去掉Include Windows logon domain前面的钩即可。 如果是在MacOS中发现VPN能连上，但是默认路由还是走原来的，并没有走VPN，可以参考这篇文章，把Service Order改一下，让VPN在Wifi/Ethernet之前就好了 参考文章： 《Windows 7 IPSec/L2TP VPN connection problem》 《How to configure an L2TP/IPsec server behind a &#8230; <a href="http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>最近几篇都是讲不能xxx的原因&#8230;.</p>
<p>Windows 7里连接不上L2TP/IPSec的VPN，提示无法连接主机，主机没响应。</p>
<p>前提是：L2TP都设置正确，协议是L2TP/IPSec，Preshared Key也填写了。</p>
<p>具体解决办法如下：<br />
1. 确保服务里面“IKE and AuthIP IPSec Keying module” 和“IPSec policy agent”两个服务状态是自动，并且已经运行<br />
2. 打开注册表，在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent里添加一个DWORD（32-bit），名称是AssumeUDPEncapsulationContextOnSendRule的key，值为2</p>
<p>重启电脑即可。</p>
<p>如果你是在公司域中，需要在VPN设置里，去掉Include Windows logon domain前面的钩即可。</p>
<p>如果是在MacOS中发现VPN能连上，但是默认路由还是走原来的，并没有走VPN，可以参考<a title="VPN connection does not change the default routing on clients" href="https://discussions.apple.com/thread/2092429?start=0&amp;tstart=0" target="_blank">这篇文章</a>，把Service Order改一下，让VPN在Wifi/Ethernet之前就好了</p>
<p>参考文章：<br />
<a title="Windows 7 IPSec/L2TP VPN connection problem" href="http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/630488b8-e638-488d-803a-08ef9281e4fb/" target="_blank">《Windows 7 IPSec/L2TP VPN connection problem》</a></p>
<p><a title="How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008" href="http://support.microsoft.com/kb/926179" target="_blank">《How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008》</a></p>
<p><a title="VPN connection does not change the default routing on clients" href="https://discussions.apple.com/thread/2092429?start=0&amp;tstart=0" target="_blank">《VPN connection does not change the default routing on clients》</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F08%2F12%2Fwindows-7-%25e4%25b8%258d%25e8%2583%25bd%25e8%25bf%259e%25e6%258e%25a5l2tpipsec-vpn%25e7%259a%2584%25e8%25a7%25a3%25e5%2586%25b3%25e5%258a%259e%25e6%25b3%2595%25ef%25bc%258c%25e4%25bb%25a5%25e5%258f%258amacos%25e6%258b%25a8%25e4%25b8%258avpn%25e5%2590%258e%25ef%25bc%258c%25e9%25bb%2598%25e8%25ae%25a4%2F&amp;title=Windows%207%20%E4%B8%8D%E8%83%BD%E8%BF%9E%E6%8E%A5L2TP%2FIPSec%20VPN%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95%EF%BC%8C%E4%BB%A5%E5%8F%8AMacOS%E6%8B%A8%E4%B8%8AVPN%E5%90%8E%EF%BC%8C%E9%BB%98%E8%AE%A4%E8%B7%AF%E7%94%B1%E6%B2%A1%E6%94%B9%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95" id="wpa2a_2"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/08/12/windows-7-%e4%b8%8d%e8%83%bd%e8%bf%9e%e6%8e%a5l2tpipsec-vpn%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%8c%e4%bb%a5%e5%8f%8amacos%e6%8b%a8%e4%b8%8avpn%e5%90%8e%ef%bc%8c%e9%bb%98%e8%ae%a4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>Apache访问home目录错误的解决办法</title>
		<link>http://blog.iworm.net/2011/03/13/apache%e8%ae%bf%e9%97%aehome%e7%9b%ae%e5%bd%95%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</link>
		<comments>http://blog.iworm.net/2011/03/13/apache%e8%ae%bf%e9%97%aehome%e7%9b%ae%e5%bd%95%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 10:49:53 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=789</guid>
		<description><![CDATA[一些废话。。。 最近把台式机的系统由XP换成了Fedora，想看看它跟Ubuntu有哪里不一样。 大致看下来，就是少数几个配置文件存放的地方不一样，比如Ubuntu/Debian里apache就叫apache，而在Fedora里叫httpd这个更通用的名字。 Ubuntu/Debian配置文件在/etc/apache/而Fedora在/etc/httpd里。 还有就是yum和apt-get的区别了。yum可真够慢的，而且有些依赖还解决不了，需要人肉解决。 安装Apache+PHP+MySQL也不麻烦，一个yum就搞定。 背景描述 因为我会开发一些web程序，这些程序都在/home/roger下，所以我需要将/var/www/html变成符号链接（Symbolic Link），这样切换项目的时候很方便，直接把需要的项目引用改名成html即可。 比如： cgi-bin error html icons proj_a proj_b proj_c proj_d SELinux关闭之前 但是我发现启动Apache的时候会报一个错误：意思是主目录不能是个链接目录。搜索了一下，发现是SELinux的问题，把SELinux关闭即可。可以google一下如何关闭。 SELinux关闭之后 现在Apache服务起来了，但是访问http://localhost会报403错误。Apache的error_log为： [Sun Mar 06 12:50:14 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www/html &#8230; <a href="http://blog.iworm.net/2011/03/13/apache%e8%ae%bf%e9%97%aehome%e7%9b%ae%e5%bd%95%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>一些废话。。。</strong></p>
<p style="padding-left: 30px;"><span style="color: #808080;">最近把台式机的系统由XP换成了Fedora，想看看它跟Ubuntu有哪里不一样。</span><br />
<span style="color: #808080;"> 大致看下来，就是少数几个配置文件存放的地方不一样，比如Ubuntu/Debian里apache就叫apache，而在Fedora里叫httpd这个更通用的名字。</span><br />
<span style="color: #808080;"> Ubuntu/Debian配置文件在/etc/apache/而Fedora在/etc/httpd里。</span><br />
<span style="color: #808080;"> 还有就是yum和apt-get的区别了。yum可真够慢的，而且有些依赖还解决不了，需要人肉解决。</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">安装Apache+PHP+MySQL也不麻烦，一个yum就搞定。</span></p>
<p><strong>背景描述</strong></p>
<p>因为我会开发一些web程序，这些程序都在/home/roger下，所以我需要将/var/www/html变成符号链接（Symbolic Link），这样切换项目的时候很方便，直接把需要的项目引用改名成html即可。</p>
<p>比如：</p>
<blockquote><p><span style="color: #3366ff;">cgi-bin  error</span> <span style="color: #00ffff;"> html</span> <span style="color: #3366ff;"> icons</span> <span style="color: #00ffff;"> proj_a  proj_b  proj_c  proj_d</span></p></blockquote>
<p><strong>SELinux关闭之前</strong></p>
<p>但是我发现启动Apache的时候会报一个错误：意思是主目录不能是个链接目录。搜索了一下，发现是SELinux的问题，把SELinux关闭即可。可以google一下如何关闭。</p>
<p><strong>SELinux关闭之后</strong></p>
<p>现在Apache服务起来了，但是访问http://localhost会报403错误。Apache的error_log为：<br />
[Sun Mar 06 12:50:14 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www/html</p>
<p><strong>初步判断</strong></p>
<p>一看是符号链接问题，我就开始尝试去掉符号链接，在/var/www/建立一个叫html的目录，发现错误消失了，感觉像是权限问题。但是我已经把需要apache访问的这些文件权限设置到777了，还是不行。</p>
<p><strong>进一步尝试</strong></p>
<p>接下来一步步做排除，首先把主目录设置到了用户目录下，还是报403错误，一查日志，发现错误描述变为：<br />
[Sun Mar 13 10:08:10 2011] [error] [client 127.0.0.1] (13)Permission denied: access to /website/sina.php denied</p>
<p>错误号13表示文件系统的权限不正确，由于我对linux也是个半瓶醋，所以继续google。</p>
<p><strong>转机</strong></p>
<p>找到一个人说用namei -m /home/roger/website/sina.php查看每一级目录的权限。</p>
<pre style="font-family:courier new;font-size:12px">dr-xr-xr-x /
drwxr-xr-x home
drwx------ roger
drwxrwxr-x website
-rw-r--r-- sina.php</pre>
<p>哈哈，看到问题了吧，是roger这个目录对非owner都没权限，改一下这个目录的权限为711即可。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2011%2F03%2F13%2Fapache%25e8%25ae%25bf%25e9%2597%25aehome%25e7%259b%25ae%25e5%25bd%2595%25e9%2594%2599%25e8%25af%25af%25e7%259a%2584%25e8%25a7%25a3%25e5%2586%25b3%25e5%258a%259e%25e6%25b3%2595%2F&amp;title=Apache%E8%AE%BF%E9%97%AEhome%E7%9B%AE%E5%BD%95%E9%94%99%E8%AF%AF%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95" id="wpa2a_4"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2011/03/13/apache%e8%ae%bf%e9%97%aehome%e7%9b%ae%e5%bd%95%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>Windows 7 英文版 SHA1大全</title>
		<link>http://blog.iworm.net/2009/08/07/windows-7-%e8%8b%b1%e6%96%87%e7%89%88-sha1%e5%a4%a7%e5%85%a8/</link>
		<comments>http://blog.iworm.net/2009/08/07/windows-7-%e8%8b%b1%e6%96%87%e7%89%88-sha1%e5%a4%a7%e5%85%a8/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 02:32:26 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[msdn]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=652</guid>
		<description><![CDATA[Windows 7的RTM出来了, MSDN上今天放出了下载. 但是我没权限下载, MSDN订阅一直是Pending状态. 所以就把SHA1奉献出来, 希望大家能下载到真正的MSDN版的Windows 7 Windows 7 Starter (x86) &#8211; DVD (English)     :5DC1457BC4B3D94097F499B15DFDB3C21DADCDF5 Windows 7 Home Basic (x86) &#8211; DVD (English)  :101574FAA17FDB430BB027271EF0A58F0E18AD47 Windows 7 Home Premium (x64) &#8211; DVD (English):336779EA6B65F63E11A609B4D021439C47AB315B Windows 7 Home Premium (x86) &#8211; DVD &#8230; <a href="http://blog.iworm.net/2009/08/07/windows-7-%e8%8b%b1%e6%96%87%e7%89%88-sha1%e5%a4%a7%e5%85%a8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Windows 7的RTM出来了, MSDN上今天放出了下载. 但是我没权限下载, MSDN订阅一直是Pending状态. 所以就把SHA1奉献出来, 希望大家能下载到真正的MSDN版的Windows 7</p>
<p style="font-family:courier new">Windows 7 Starter (x86) &#8211; DVD (English)     :5DC1457BC4B3D94097F499B15DFDB3C21DADCDF5<br />
Windows 7 Home Basic (x86) &#8211; DVD (English)  :101574FAA17FDB430BB027271EF0A58F0E18AD47<br />
Windows 7 Home Premium (x64) &#8211; DVD (English):336779EA6B65F63E11A609B4D021439C47AB315B<br />
Windows 7 Home Premium (x86) &#8211; DVD (English):CC9D8220B2179E784D85BF1EA98D2EE2190D534F<br />
Windows 7 Professional (x64) &#8211; DVD (English):50127304441A793EE51B3F501289F6599A559E9F<br />
Windows 7 Professional (x86) &#8211; DVD (English):697FA06554502FB21D30275273B25747299C020D<br />
Windows 7 Enterprise (x64) &#8211; DVD (English)  :A89DCE706D527206CB464EF86ACD3A3D13A332DB<br />
Windows 7 Enterprise (x86) &#8211; DVD (English)  :C6B905E48FDB6CB5BFCA967715A64461B812D40C<br />
Windows 7 Ultimate (x64) &#8211; DVD (English)    :326327CC2FF9F05379F5058C41BE6BC5E004BAA7<br />
Windows 7 Ultimate (x86) &#8211; DVD (English)    :5395DC4B38F7BDB1E005FF414DEEDFDB16DBF610</p>
<p><a href="http://iworm.smugmug.com/photos/613093229_4SLoi-O.png" target="_blank">点击看完整图</a></p>
<p><a href="http://iworm.smugmug.com/photos/613093229_4SLoi-O.png"><img class="alignnone" src="http://iworm.smugmug.com/photos/613093218_VZB3s-O.png" alt="" width="683" height="234" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2009%2F08%2F07%2Fwindows-7-%25e8%258b%25b1%25e6%2596%2587%25e7%2589%2588-sha1%25e5%25a4%25a7%25e5%2585%25a8%2F&amp;title=Windows%207%20%E8%8B%B1%E6%96%87%E7%89%88%20SHA1%E5%A4%A7%E5%85%A8" id="wpa2a_6"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2009/08/07/windows-7-%e8%8b%b1%e6%96%87%e7%89%88-sha1%e5%a4%a7%e5%85%a8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>电脑的网络唤醒(Wake On Lan)及关机</title>
		<link>http://blog.iworm.net/2009/02/20/%e7%94%b5%e8%84%91%e7%9a%84%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wake-on-lan%e5%8f%8a%e5%85%b3%e6%9c%ba/</link>
		<comments>http://blog.iworm.net/2009/02/20/%e7%94%b5%e8%84%91%e7%9a%84%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wake-on-lan%e5%8f%8a%e5%85%b3%e6%9c%ba/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 14:51:46 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[wakeup]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=531</guid>
		<description><![CDATA[现在绝大多数电脑都支持 {zh:网络唤醒} 了。也就是在电脑插上电源，但是没有开机的情况下，通过网络开机。 网络开机的好处不言而喻，那么需要怎么做呢？ 0. 准备 首先需要确定你的电脑支持网络开机. 这个需要在BIOS里设置一下，我公司电脑的BIOS中有个选项叫S5 wake on lan，家里电脑BIOS中的选项叫WOL，把这些选项开启即可。 其次还需要知道需要唤醒电脑的 {zh:MAC地址} 以及 {zh:IP地址} . 在Windows中可以这样获得: 点击[开始]-[运行], 输入cmd, 回车. 输入ipconfig /all， 如图所示（黄色框中是你输入的命令） 你会看到第一个绿色框中用横线连接的字母和数字那一串就是 {zh:MAC地址} 08-00-27-D5-A8-C5，也叫物理地址，是每个网卡唯一的一个地址。全世界没有重复的。 第二个框里是这台电脑的 {zh:IP地址} 10.0.2.15。 第三个框里是电脑所在网段的 {zh:子网掩码} 255.255.255.0，用来表示哪些IP地址是在同一个网段里的。 记下这三个地址，等会儿会用到。为了方便起见，我们叫这台需要被唤醒的电脑为A电脑。 1. 唤醒工具 你还需要一台B电脑来运行唤醒程序，通过唤醒程序唤醒令A电脑。不同的系统中有不同的唤醒程序。 在Ubuntu中，可以使用wakeonlan；在windows中可以使用wolcmd。 wakeonlan可以通过apt安装。在Ubuntu的命令行下输入sudo apt-get install &#8230; <a href="http://blog.iworm.net/2009/02/20/%e7%94%b5%e8%84%91%e7%9a%84%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wake-on-lan%e5%8f%8a%e5%85%b3%e6%9c%ba/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>现在绝大多数电脑都支持 {zh:网络唤醒} 了。也就是在电脑插上电源，但是没有开机的情况下，通过网络开机。</p>
<p>网络开机的好处不言而喻，那么需要怎么做呢？</p>
<h2>0. 准备</h2>
<p>首先需要确定你的电脑支持网络开机. 这个需要在BIOS里设置一下，我公司电脑的BIOS中有个选项叫S5 wake on lan，家里电脑BIOS中的选项叫WOL，把这些选项开启即可。</p>
<p>其次还需要知道需要唤醒电脑的 {zh:MAC地址} 以及 {zh:IP地址} . 在Windows中可以这样获得:</p>
<p>点击[开始]-[运行], 输入cmd, 回车. 输入<code>ipconfig /all</code>， 如图所示（黄色框中是你输入的命令）</p>
<p><img src="http://iworm.smugmug.com/photos/477194023_WUXGF-X3.png" alt="command window" /></p>
<p>你会看到第一个绿色框中用横线连接的字母和数字那一串就是 {zh:MAC地址} 08-00-27-D5-A8-C5，也叫物理地址，是每个网卡唯一的一个地址。全世界没有重复的。</p>
<p>第二个框里是这台电脑的 {zh:IP地址} 10.0.2.15。</p>
<p>第三个框里是电脑所在网段的 {zh:子网掩码} 255.255.255.0，用来表示哪些IP地址是在同一个网段里的。</p>
<p>记下这三个地址，等会儿会用到。为了方便起见，我们叫这台需要被唤醒的电脑为A电脑。</p>
<h2>1. 唤醒工具</h2>
<p>你还需要一台B电脑来运行唤醒程序，通过唤醒程序唤醒令A电脑。不同的系统中有不同的唤醒程序。</p>
<p>在Ubuntu中，可以使用wakeonlan；在windows中可以使用wolcmd。</p>
<p>wakeonlan可以通过apt安装。在Ubuntu的命令行下输入<code>sudo apt-get install wakeonlan</code>，根据提示安装即可。</p>
<p>然后输入<code>wakeonlan -i 10.0.2.255 -p 9 08:00:27:D5:A8:C5</code>就能把A电脑唤醒了。</p>
<p><img src="http://iworm.smugmug.com/photos/477194027_xfWYG-X3.png" alt="command window" /></p>
<p>我来解释一下这个命令。wakeonlan就是主程序，-i 10.0.2.255就是A电脑所在网段的广播地址。为什么是这个地址呢？A电脑的IP地址为10.0.2.15，再加上它的子网掩码为255.255.255.0，学过网络的都知道子网掩码是怎么回事，所以A电脑所在网段的广播地址就为10.0.2.255，-p 9表示用9号端口来叫醒，在局域网中，端口号无所谓，但如果A电脑和B电脑之间有防火墙，就需要在防火墙上把某个端口打开，比如9号端口，命令里就必须输入9了。因为一般防火墙的默认规则就是阻止所有端口，只根据需要开放特定端口。最后的那一串就是A电脑的MAC地址了。我们在A电脑上看到的MAC地址形式是08-00-27-D5-A8-C5，但是这里我们需要把MAC地址里的横线换成: 冒号即可。</p>
<p>Windows上的唤醒程序很多，我们随便挑一个，我用wolcmd。这个程序有<a href="http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx">命令行版本</a>，也有<a href="http://www.depicus.com/wake-on-lan/wake-on-lan-gui.aspx">图形界面版本</a>。请点击下面的连接打开下载页面，使用方法也在那个页面上。</p>
<h2>2. 关机</h2>
<p>开机后，你就可以通过远程桌面连接过去了。但是你会发现如果你A电脑运行的是Windows XP，当你想关机的时候却发现没有关机的选项。</p>
<p><img src="http://iworm.smugmug.com/photos/476691574_wdskH-X3.png" alt="no shutdown button" /></p>
<p>怎么办？还是用命令行搞定。点击［开始］－－［运行］，输入cmd，在命令行窗口输入<code>shutdown -s -t 0</code></p>
<p>解释一下这个命令：shutdown关机命令（也可以是重启），-s表示关机（如果这里用-r表示重启），-t 0表示立即重启，后面的0表示执行关机或重启命令之前等待多少秒。具体的使用说明请输入<code>shutdown -h</code>来查看。</p>
<p><strong>Update:</strong> 你也可以通过VPN拨到公司网络，然后用上述方法打开自己公司电脑。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2009%2F02%2F20%2F%25e7%2594%25b5%25e8%2584%2591%25e7%259a%2584%25e7%25bd%2591%25e7%25bb%259c%25e5%2594%25a4%25e9%2586%2592wake-on-lan%25e5%258f%258a%25e5%2585%25b3%25e6%259c%25ba%2F&amp;title=%E7%94%B5%E8%84%91%E7%9A%84%E7%BD%91%E7%BB%9C%E5%94%A4%E9%86%92%28Wake%20On%20Lan%29%E5%8F%8A%E5%85%B3%E6%9C%BA" id="wpa2a_8"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2009/02/20/%e7%94%b5%e8%84%91%e7%9a%84%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wake-on-lan%e5%8f%8a%e5%85%b3%e6%9c%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>Ubuntu 8.04的VPN连接</title>
		<link>http://blog.iworm.net/2009/02/19/ubuntu-804%e7%9a%84vpn%e8%bf%9e%e6%8e%a5/</link>
		<comments>http://blog.iworm.net/2009/02/19/ubuntu-804%e7%9a%84vpn%e8%bf%9e%e6%8e%a5/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 16:15:41 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[mtu]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=533</guid>
		<description><![CDATA[我经常在Ubuntu使用VPN连接到公司电脑，这在8.04的时候是好的，但是我升级到8.10的时候，发现无法使用VPN了。 经过一番搜索，才发现原来没添加VPN插件。 在命令行下输入sudo apt-get install network-manager-pptp，安装network manager的pptp插件。之后重启电脑。 之后就可以左键点击网络连接的图标建立VPN了。 刚装好8.10的时候死活也无法连接上VPN，发现好多人问这个问题，但是都没有找到解决方法。我估计这是个Bug。我最近升级后，发现VPN连接好了。很奇怪。 还有一个问题，在Ubuntu中连接VPN之后，通过远程桌面连接Windows总是界面无响应。我估计是MTU的问题，因为今年春节回家的时候遇到过这个问题，MTU默认为576，而路由器默认MTU为1500，所以会出现丢包严重的情况。在使用sudo ifconfig wlan0 mtu 1500之后，就正常了。现在远程连接有问题，我估计是相同的原因造成。手工改了wlan0的MTU之后，问题解决，上网速度好像也有所提高。]]></description>
			<content:encoded><![CDATA[<p>我经常在Ubuntu使用VPN连接到公司电脑，这在8.04的时候是好的，但是我升级到8.10的时候，发现无法使用VPN了。</p>
<p>经过一番搜索，才发现原来没添加VPN插件。</p>
<p>在命令行下输入<strong>sudo apt-get install network-manager-pptp</strong>，安装network manager的pptp插件。之后<strong>重启电脑</strong>。</p>
<p>之后就可以左键点击网络连接的图标建立VPN了。</p>
<p><img src="http://iworm.smugmug.com/photos/476171713_MtAy9-X3.png" alt="" /></p>
<p><img src="http://iworm.smugmug.com/photos/476171721_SqjGJ-X3.png" alt="" /></p>
<p><img src="http://iworm.smugmug.com/photos/476171724_yFZja-X3.png" alt="" /></p>
<p><img src="http://iworm.smugmug.com/photos/476171728_gSf7B-X3.png" alt="" /></p>
<p><img src="http://iworm.smugmug.com/photos/476171731_zwaW3-X3.png" alt="" /></p>
<p>刚装好8.10的时候死活也无法连接上VPN，发现好多人问这个问题，但是都没有找到解决方法。我估计这是个Bug。我最近升级后，发现VPN连接好了。很奇怪。</p>
<p>还有一个问题，在Ubuntu中连接VPN之后，通过远程桌面连接Windows总是界面无响应。我估计是MTU的问题，因为今年春节回家的时候遇到过这个问题，MTU默认为576，而路由器默认MTU为1500，所以会出现丢包严重的情况。在使用<strong>sudo ifconfig wlan0 mtu 1500</strong>之后，就正常了。现在远程连接有问题，我估计是相同的原因造成。手工改了wlan0的MTU之后，问题解决，上网速度好像也有所提高。</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2009%2F02%2F19%2Fubuntu-804%25e7%259a%2584vpn%25e8%25bf%259e%25e6%258e%25a5%2F&amp;title=Ubuntu%208.04%E7%9A%84VPN%E8%BF%9E%E6%8E%A5" id="wpa2a_10"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2009/02/19/ubuntu-804%e7%9a%84vpn%e8%bf%9e%e6%8e%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>在BlueHost上安装Subversion</title>
		<link>http://blog.iworm.net/2008/10/31/%e5%9c%a8bluehost%e4%b8%8a%e5%ae%89%e8%a3%85subversion/</link>
		<comments>http://blog.iworm.net/2008/10/31/%e5%9c%a8bluehost%e4%b8%8a%e5%ae%89%e8%a3%85subversion/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 10:23:39 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[bluehost]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=446</guid>
		<description><![CDATA[一开始是按照Bluehost论坛上的方法来安装, 但是发现无法支持http, https协议, 又按照半瓶墨水的方法来安装, 这次支持http协议了, 但是依然不支持https. 后来google了一下, 经过多次摸索, 终于安装成功, 下面分享经验. cd ~ mkdir install mkdir src cd src #下载 wget http://subversion.tigris.org/downloads/subversion-1.6.4.tar.gz wget http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.gz wget http://www.openssl.org/source/openssl-0.9.8k.tar.gz tar xzvf openssl-0.9.8k.tar.gz tar xzvf subversion-deps-1.6.4.tar.gz mv subversion-1.6.4 deps tar xzvf subversion-1.6.4.tar.gz #编译OpenSSL cd openssl-0.9.8k &#8230; <a href="http://blog.iworm.net/2008/10/31/%e5%9c%a8bluehost%e4%b8%8a%e5%ae%89%e8%a3%85subversion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>一开始是按照<a href="http://www.bluehostforum.com/showthread.php?t=12099&amp;highlight=subversion" target="_blank">Bluehost论坛</a>上的方法来安装, 但是发现无法支持http, https协议, 又按照<a href="http://www.2maomao.com/blog/bluehost-svn-64/" target="_blank">半瓶墨水</a>的方法来安装, 这次支持http协议了, 但是依然不支持https.</p>
<p>后来google了一下, 经过多次摸索, 终于安装成功, 下面分享经验.<br />
cd ~<br />
mkdir install<br />
mkdir src<br />
cd src<br />
#下载<br />
wget http://subversion.tigris.org/downloads/subversion-1.6.4.tar.gz<br />
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.gz<br />
wget http://www.openssl.org/source/openssl-0.9.8k.tar.gz<br />
tar xzvf openssl-0.9.8k.tar.gz<br />
tar xzvf subversion-deps-1.6.4.tar.gz<br />
mv subversion-1.6.4 deps<br />
tar xzvf subversion-1.6.4.tar.gz</p>
<p>#编译OpenSSL<br />
cd openssl-0.9.8k<br />
./config &#8211;prefix=$HOME/install/openssl<br />
make<br />
make install<br />
cd ..<br />
cd deps</p>
<p>#编译apr<br />
cd apr<br />
./configure &#8211;prefix=$HOME/install/apr LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install<br />
cd ..</p>
<p>#编译apr-util<br />
cd apr-util<br />
./configure &#8211;prefix=$HOME/install/apr-util &#8211;with-apr=$HOME/install/apr LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install<br />
cd ..</p>
<p>#编译serf<br />
cd serf<br />
./configure &#8211;prefix=$HOME/install/serf &#8211;with-apr=$HOME/install/apr &#8211;with-apr-util=$HOME/install/apr-util &#8211;with-openssl=$HOME/install/openssl LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install<br />
cd ..</p>
<p>#编译zlib<br />
cd zlib<br />
./configure &#8211;prefix=$HOME/install/zlib<br />
make<br />
make install<br />
cd ..</p>
<p>#编译neon, subversion是否支持https就看这个组件编译的时候是否支持ssl了, 编译完成后, 你会看到一个summary, 上面明确显示支持ssl就对了<br />
cd neon<br />
./configure &#8211;prefix=$HOME/install/neon &#8211;enable-shared &#8211;enable-ssl &#8211;with-ssl &#8211;with-libs=$HOME/install/openssl  LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install<br />
cd ..<br />
cd..</p>
<p>#编译subversion<br />
cd subversion-1.6.4<br />
cp -R ~/src/deps/sqlite-amalgamation ./<br />
./configure &#8211;prefix=$HOME/install/subversion &#8211;without-berkeley-db &#8211;with-zlib=$HOME/install/zlib &#8211;with-apr=$HOME/install/apr &#8211;with-apr-util=$HOME/install/apr-util &#8211;with-serf=$HOME/install/serf &#8211;with-neon=$HOME/install/neon &#8211;with-ssl LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install</p>
<p>把svn添加到环境变量中, 会方便使用<br />
cd ~<br />
vi .bashrc<br />
在文件最后增加PATH=$PATH:$HOME/install/subversion/bin存盘退出</p>
<p>参考:<br />
<a href="http://www.2maomao.com/blog/bluehost-svn-64/" target="_blank">在Bluehost 64位主机上安装SVN</a><br />
<a href="http://www.bluehostforum.com/showthread.php?t=12099&amp;highlight=subversion" target="_blank">Setting up Subversion on Bluehost</a><br />
<a href="http://hi.baidu.com/iiiii/blog/item/a5720df39f3850cb0b46e00b.html" target="_blank">Linux/Ubuntu 下编译安装 Subversion-1.4.0 (svn) 全攻略!</a><br />
<a href="http://www.sunboyu.cn/2008/07/26/subversion-150-%E7%BC%96%E8%AF%91%E5%8F%82%E6%95%B0.shtml" target="_blank">subversion-1.5.0 编译参数</a><br />
<a href="http://www.bernzilla.com/item.php?id=651" target="_blank">Installing the Subversion Client with SSL Support on Linux</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2008%2F10%2F31%2F%25e5%259c%25a8bluehost%25e4%25b8%258a%25e5%25ae%2589%25e8%25a3%2585subversion%2F&amp;title=%E5%9C%A8BlueHost%E4%B8%8A%E5%AE%89%E8%A3%85Subversion" id="wpa2a_12"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2008/10/31/%e5%9c%a8bluehost%e4%b8%8a%e5%ae%89%e8%a3%85subversion/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>我的Ubuntu增加了新源</title>
		<link>http://blog.iworm.net/2008/09/09/%e6%88%91%e7%9a%84ubuntu%e5%a2%9e%e5%8a%a0%e4%ba%86%e6%96%b0%e6%ba%90/</link>
		<comments>http://blog.iworm.net/2008/09/09/%e6%88%91%e7%9a%84ubuntu%e5%a2%9e%e5%8a%a0%e4%ba%86%e6%96%b0%e6%ba%90/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 15:33:24 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=448</guid>
		<description><![CDATA[从《再谈 Ubuntu 8.04 Hardy LTS 软件源设置》上看到了一些常用源的列表，加上去之后，更新速度明显快了很多，今天晚上更新是全速，而以前更新都是20K左右，并且原来没找到更新的软件现在也有更新了。 我是上海电信用户，根据上述文章，选择了一些源之后，把无法访问的去掉，剩下的就是我目前在使用的源。 # deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://cn.archive.ubuntu.com/ubuntu/ hardy main restricted deb-src &#8230; <a href="http://blog.iworm.net/2008/09/09/%e6%88%91%e7%9a%84ubuntu%e5%a2%9e%e5%8a%a0%e4%ba%86%e6%96%b0%e6%ba%90/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>从<a href="http://www.ownlinux.cn/2008/08/28/ubuntu-804-hardy-lts-sources-list-setting/" target="_blank">《再谈 Ubuntu 8.04 Hardy LTS 软件源设置》</a>上看到了一些常用源的列表，加上去之后，更新速度明显快了很多，今天晚上更新是全速，而以前更新都是20K左右，并且原来没找到更新的软件现在也有更新了。</p>
<p>我是上海电信用户，根据上述文章，选择了一些源之后，把无法访问的去掉，剩下的就是我目前在使用的源。</p>
<blockquote><p># deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted<br />
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to<br />
# newer versions of the distribution.</p>
<p>deb http://cn.archive.ubuntu.com/ubuntu/ hardy main restricted<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy main restricted</p>
<p>## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates main restricted<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-updates main restricted</p>
<p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br />
## team, and may not be under a free licence. Please satisfy yourself as to<br />
## your rights to use the software. Also, please note that software in<br />
## universe WILL NOT receive any review or updates from the Ubuntu security<br />
## team.<br />
deb http://cn.archive.ubuntu.com/ubuntu/ hardy universe<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy universe<br />
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates universe<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-updates universe</p>
<p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br />
## team, and may not be under a free licence. Please satisfy yourself as to<br />
## your rights to use the software. Also, please note that software in<br />
## multiverse WILL NOT receive any review or updates from the Ubuntu<br />
## security team.<br />
deb http://cn.archive.ubuntu.com/ubuntu/ hardy multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy multiverse<br />
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-updates multiverse</p>
<p>## Uncomment the following two lines to add software from the &#8216;backports&#8217;<br />
## repository.<br />
## N.B. software from this repository may not have been tested as<br />
## extensively as that contained in the main release, although it includes<br />
## newer versions of some applications which may provide useful features.<br />
## Also, please note that software in backports WILL NOT receive any review<br />
## or updates from the Ubuntu security team.<br />
# deb http://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
# deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse</p>
<p>## Uncomment the following two lines to add software from Canonical&#8217;s<br />
## &#8216;partner&#8217; repository. This software is not part of Ubuntu, but is<br />
## offered by Canonical and the respective vendors as a service to Ubuntu<br />
## users.<br />
deb http://archive.canonical.com/ubuntu hardy partner<br />
# deb-src http://archive.canonical.com/ubuntu hardy partner</p>
<p>deb http://security.ubuntu.com/ubuntu hardy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu hardy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu hardy-security universe<br />
deb http://security.ubuntu.com/ubuntu hardy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse<br />
# deb http://us.archive.ubuntu.com/ubuntu edgy universe<br />
deb http://ppa.launchpad.net/banshee-team/ubuntu intrepid main<br />
deb-src http://ppa.launchpad.net/banshee-team/ubuntu intrepid main<br />
deb http://ppa.launchpad.net/do-core/ubuntu hardy main<br />
deb-src http://ppa.launchpad.net/do-core/ubuntu hardy main</p>
<p>###########################################<br />
##New Added List<br />
###########################################<br />
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse</p>
<p>deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse</p>
<p>deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse</p>
<p>deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse</p>
<p>deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse<br />
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse</p>
<p>deb http://ubuntu.cn99.com/ubuntu-cn hardy main restricted universe multiverse</p>
<p>deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe</p>
<p>deb http://archive.ubuntu.com/ubuntu/ hardy main restricted<br />
deb-src http://archive.ubuntu.com/ubuntu/ hardy restricted main universe<br />
deb http://archive.ubuntu.com/ubuntu/ hardy universe<br />
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe<br />
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates universe #Added by software-properties</p>
<p>deb-src http://security.ubuntu.com/ubuntu hardy-security restricted main universe</p>
<p>deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse<br />
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse</p>
<p>deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse<br />
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse</p>
<p>deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse<br />
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse</p>
<p>deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse<br />
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse</p>
<p>deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main multiverse restricted universe<br />
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main restricted universe multiverse</p></blockquote>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2008%2F09%2F09%2F%25e6%2588%2591%25e7%259a%2584ubuntu%25e5%25a2%259e%25e5%258a%25a0%25e4%25ba%2586%25e6%2596%25b0%25e6%25ba%2590%2F&amp;title=%E6%88%91%E7%9A%84Ubuntu%E5%A2%9E%E5%8A%A0%E4%BA%86%E6%96%B0%E6%BA%90" id="wpa2a_14"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2008/09/09/%e6%88%91%e7%9a%84ubuntu%e5%a2%9e%e5%8a%a0%e4%ba%86%e6%96%b0%e6%ba%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>在Windows的新建菜单中增加文件类型</title>
		<link>http://blog.iworm.net/2008/07/04/%e5%9c%a8windows%e7%9a%84%e6%96%b0%e5%bb%ba%e8%8f%9c%e5%8d%95%e4%b8%ad%e5%a2%9e%e5%8a%a0%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b/</link>
		<comments>http://blog.iworm.net/2008/07/04/%e5%9c%a8windows%e7%9a%84%e6%96%b0%e5%bb%ba%e8%8f%9c%e5%8d%95%e4%b8%ad%e5%a2%9e%e5%8a%a0%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 04:01:39 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/?p=395</guid>
		<description><![CDATA[我最近开始学习Python, 没用大型的IDE, 用的是vim, 所以每当需要新建一个.py文件的时候, 总是按右键&#8211;&#62;新建&#8211;&#62;文本文件, 然后改名, 打开这个文件, 输入一些头信息(#!/usr/bin/python # -*- coding: utf-8 -*-). 有没有办法让我可以新建一个.py文件, 并且已经有这些头信息了呢? &#8212;&#8212;想听我分析的往下看, 不想听的直接跳转到下一段&#8212;&#8212; 首先从已有的类型开始分析, 新建一个文本文件, 是0字节的, 没用. 新建一个word文件, 发现新建的是一个10.5k的文件, 估计是从模板生成的. 这不就好了, 到注册表里面看看.doc键值下有什么玄机.打开注册表的HKEY_CLASSES_ROOT, 找到.doc, 会发现它有OpenWithList, ShellNew, Word.Document.6, Word.Document.8等, 从名字上猜测OpenWithList就是常见的用xxx打开, ShellNew可能就是新建文件的意思. 点开ShellNew之后发现里面没内容, 于是就展开Word.Document.6, 看到里面有个ShellNew键, 该键有属性FileName, 值为winword.doc, 恩, 这看起来像是模板的文件名. &#8230; <a href="http://blog.iworm.net/2008/07/04/%e5%9c%a8windows%e7%9a%84%e6%96%b0%e5%bb%ba%e8%8f%9c%e5%8d%95%e4%b8%ad%e5%a2%9e%e5%8a%a0%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>我最近开始学习Python, 没用大型的IDE, 用的是vim, 所以每当需要新建一个.py文件的时候, 总是按右键&#8211;&gt;新建&#8211;&gt;文本文件, 然后改名, 打开这个文件, 输入一些头信息(#!/usr/bin/python # -*- coding: utf-8 -*-). 有没有办法让我可以新建一个.py文件, 并且已经有这些头信息了呢?</p>
<p>&#8212;&#8212;想听我分析的往下看, 不想听的直接跳转到下一段&#8212;&#8212;<br />
首先从已有的类型开始分析, 新建一个文本文件, 是0字节的, 没用. 新建一个word文件, 发现新建的是一个10.5k的文件, 估计是从模板生成的. 这不就好了, 到注册表里面看看.doc键值下有什么玄机.打开注册表的HKEY_CLASSES_ROOT, 找到.doc, 会发现它有OpenWithList, ShellNew, Word.Document.6, Word.Document.8等, 从名字上猜测OpenWithList就是常见的用xxx打开, ShellNew可能就是新建文件的意思. 点开ShellNew之后发现里面没内容, 于是就展开Word.Document.6, 看到里面有个ShellNew键, 该键有属性FileName, 值为winword.doc, 恩, 这看起来像是模板的文件名. 于是我到C盘搜索一下winword.doc, 我一开始就选择在Documents and Settings文件夹中搜索, 因为这个新建菜单是会随不同用户而不同的, 所以应该不会在Windows目录中, 更不会在Program Files目录中. 果然, 搜索到了.</p>
<p>&#8212;&#8212;实现&#8212;&#8212;<br />
在c:\Documents and Settings\用户名\Templates文件夹中建立一个python.py文件, 将文件的头部信息输入好, 保存. 然后在注册表的HKEY_CLASSES_ROOT中找到.py键(如果没有, 就建立一个名字为.py的键), 在该键上按右键, 选择新建&#8211;&gt;键, 名字为ShellNew. 右键点击ShellNew, 选择新建&#8211;&gt;字符串, 名字为FileName, 值为python.py . 关闭注册表编辑器, 稍等一下, 在桌面上按右键, 会发现有了Python, 新建一个试试, 嗯, 不错, 就是我建立的那个模板文件, 里面的头信息都有的.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2008%2F07%2F04%2F%25e5%259c%25a8windows%25e7%259a%2584%25e6%2596%25b0%25e5%25bb%25ba%25e8%258f%259c%25e5%258d%2595%25e4%25b8%25ad%25e5%25a2%259e%25e5%258a%25a0%25e6%2596%2587%25e4%25bb%25b6%25e7%25b1%25bb%25e5%259e%258b%2F&amp;title=%E5%9C%A8Windows%E7%9A%84%E6%96%B0%E5%BB%BA%E8%8F%9C%E5%8D%95%E4%B8%AD%E5%A2%9E%E5%8A%A0%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B" id="wpa2a_16"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2008/07/04/%e5%9c%a8windows%e7%9a%84%e6%96%b0%e5%bb%ba%e8%8f%9c%e5%8d%95%e4%b8%ad%e5%a2%9e%e5%8a%a0%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>将一个分区装到一个文件夹中</title>
		<link>http://blog.iworm.net/2008/03/27/%e5%b0%86%e4%b8%80%e4%b8%aa%e5%88%86%e5%8c%ba%e8%a3%85%e5%88%b0%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e4%b8%ad/</link>
		<comments>http://blog.iworm.net/2008/03/27/%e5%b0%86%e4%b8%80%e4%b8%aa%e5%88%86%e5%8c%ba%e8%a3%85%e5%88%b0%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e4%b8%ad/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 09:58:54 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/2008/03/27/%e5%b0%86%e4%b8%80%e4%b8%aa%e5%88%86%e5%8c%ba%e8%a3%85%e5%88%b0%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e4%b8%ad/</guid>
		<description><![CDATA[现在硬盘越来越大, 有很多人都会给硬盘分好多区, 盘符总共就26个, 出去A盘, B盘是软盘, 起码还有个光驱, 有几个虚拟光驱, 实际上可以使用的盘符差不多20个左右. 昨天看到有人在说&#60;&#60;还有盘符么?&#62;&#62;, 我就把Windows的一个功能告诉大家, 可能知道该功能的人不多. 一块硬盘可以分成好多个分区, 一般情况下一个分区对应一个判读, 也就是大家熟知的c盘, d盘. 但是微软的NTFS格式的分区有个功能, 就是把一个分区装载到一个文件夹中, 比如我把原来的E盘删掉, 把原来E盘的分区装载到C盘的DriverE文件夹中, 这样我使用c:\DriverE就能打开原来E盘的分区了. 这点跟Linux的分区比较类似. 下面跟我一步步做吧. 首先鼠标右键点击桌面上的&#34;我的电脑&#34;, 选择&#34;管理&#34;, 打开后, 选择&#34;磁盘管理&#34;, 会看到系统中的硬盘数量, 每块硬盘的分区等. 从下图中可以看到我还有一个18.18G的空闲分区. &#160; 在该分区上按鼠标右键, 选择创建一个逻辑驱动器. 在接下来的向导中, 不要选择&#34;为驱动器制定盘符&#34;, 而是选择&#34;将它装载到一个空的NTFS文件夹&#34; 选择需要装载这个分区的文件夹, 该文件夹一定要是空的. 点击&#34;下一步&#34;后, 选择快速格式化, 这个分区的文件系统是NTFS或者FAT32都没关系. &#8230; <a href="http://blog.iworm.net/2008/03/27/%e5%b0%86%e4%b8%80%e4%b8%aa%e5%88%86%e5%8c%ba%e8%a3%85%e5%88%b0%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e4%b8%ad/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>现在硬盘越来越大, 有很多人都会给硬盘分好多区, 盘符总共就26个, 出去A盘, B盘是软盘, 起码还有个光驱, 有几个虚拟光驱, 实际上可以使用的盘符差不多20个左右.</p>
<p>昨天看到有人在说<a href="http://www.owind.com/pub/computer/2008/03/24/26-drives-full/" target="_blank">&lt;&lt;还有盘符么?&gt;&gt;</a>, 我就把Windows的一个功能告诉大家, 可能知道该功能的人不多.</p>
<p>一块硬盘可以分成好多个分区, 一般情况下一个分区对应一个判读, 也就是大家熟知的c盘, d盘. 但是微软的NTFS格式的分区有个功能, 就是把一个分区装载到一个文件夹中, 比如我把原来的E盘删掉, 把原来E盘的分区装载到C盘的DriverE文件夹中, 这样我使用c:\DriverE就能打开原来E盘的分区了. 这点跟Linux的分区比较类似.</p>
<p>下面跟我一步步做吧.</p>
<p>首先鼠标右键点击桌面上的&quot;我的电脑&quot;, 选择&quot;管理&quot;, 打开后, 选择&quot;磁盘管理&quot;, 会看到系统中的硬盘数量, 每块硬盘的分区等. 从下图中可以看到我还有一个18.18G的空闲分区.</p>
<p><img src="http://iworm.smugmug.com/photos/271067536_PGwe6-S.png" />&#160;</p>
<p>在该分区上按鼠标右键, 选择创建一个逻辑驱动器.</p>
<p><img src="http://iworm.smugmug.com/photos/271067537_RQgRj-S.png" /> </p>
<p>在接下来的向导中, 不要选择&quot;为驱动器制定盘符&quot;, 而是选择&quot;将它装载到一个空的NTFS文件夹&quot;</p>
<p><img src="http://iworm.smugmug.com/photos/271067540_NCCw8-S.png" /> </p>
<p>选择需要装载这个分区的文件夹, 该文件夹一定要是空的.</p>
<p><img src="http://iworm.smugmug.com/photos/271067546_hbgYo-S.png" /> </p>
<p>点击&quot;下一步&quot;后, 选择快速格式化, 这个分区的文件系统是NTFS或者FAT32都没关系.</p>
<p><img src="http://iworm.smugmug.com/photos/271067550_daRhH-S.png" /> </p>
<p>会看到有一个新分区已经建立成功.</p>
<p><img src="http://iworm.smugmug.com/photos/271067554_ZLNSN-S.png" /> </p>
<p><img src="http://iworm.smugmug.com/photos/271067557_soUFL-S.png" /> </p>
<p>打开我的电脑看一下我的E盘, 发现Backup文件夹的图标是一个硬盘的图标.</p>
<p><img src="http://iworm.smugmug.com/photos/271067564_Pd8y4-S.png" /> </p>
<p>双击进来</p>
<p><img src="http://iworm.smugmug.com/photos/271067569_6KVLh-S.png" /> </p>
<p>简单吗? 这样就能解决盘符不足的问题了.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2008%2F03%2F27%2F%25e5%25b0%2586%25e4%25b8%2580%25e4%25b8%25aa%25e5%2588%2586%25e5%258c%25ba%25e8%25a3%2585%25e5%2588%25b0%25e4%25b8%2580%25e4%25b8%25aa%25e6%2596%2587%25e4%25bb%25b6%25e5%25a4%25b9%25e4%25b8%25ad%2F&amp;title=%E5%B0%86%E4%B8%80%E4%B8%AA%E5%88%86%E5%8C%BA%E8%A3%85%E5%88%B0%E4%B8%80%E4%B8%AA%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD" id="wpa2a_18"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2008/03/27/%e5%b0%86%e4%b8%80%e4%b8%aa%e5%88%86%e5%8c%ba%e8%a3%85%e5%88%b0%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9%e4%b8%ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
		<item>
		<title>Ubuntu 通过蓝牙连接手机上网</title>
		<link>http://blog.iworm.net/2008/01/30/ubuntu-%e9%80%9a%e8%bf%87%e8%93%9d%e7%89%99%e8%bf%9e%e6%8e%a5%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%bd%91/</link>
		<comments>http://blog.iworm.net/2008/01/30/ubuntu-%e9%80%9a%e8%bf%87%e8%93%9d%e7%89%99%e8%bf%9e%e6%8e%a5%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%bd%91/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 14:23:45 +0000</pubDate>
		<dc:creator>iworm</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[ubuntu bluetooth mobile]]></category>

		<guid isPermaLink="false">http://blog.iworm.net/2008/01/30/ubuntu-%e9%80%9a%e8%bf%87%e8%93%9d%e7%89%99%e8%bf%9e%e6%8e%a5%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%bd%91/</guid>
		<description><![CDATA[春节要回家了，但是我首先去老婆家，她家没法上网，有时需要上网查点东西，比较麻烦，还要去网吧。 我的手机是8块钱包25M cmnet/cmwap的流量，手机本身因为性能限制，所以也不可能在需要上网的时候排上用场。 Nokia的PC Suite中可以让电脑通过手机上网，但是那是For Windows的程序，Ubuntu没法用。 后来找了一下论坛，发现这样可以：用蓝牙连接手机和电脑，然后让电脑通过手机拨号，电脑就能上网了，虽然速度不快，但是能解一时燃眉之急。 首先你需要一个蓝牙适配器，很多笔记本自带，我的没有。去电脑城20块买了一个，杂牌，不过查在我的本本上，Ubuntu能识别到这是一个蓝牙适配器，无须安装驱动。 打开手机的蓝牙连接，用手机搜索配对设备，找到后输入密码，确定，在电脑上会弹出个窗口让你输入密码，这个密码其实就是验证使用权的，手机上和电脑上输入一致即可。 ======题外话：用电脑访问手机文件======= 连接成功后，右键点击电脑右上角的蓝牙图标，选择Browse Device，在弹出的界面中选择你的手机，按Connect，如果出现OBEX://[xxxx]格式不正确之类的提示，则说明你少安装了一个组件，在终端下输入 sudo apt-get install gnome-vfs-obexftp 安装完这个包之后，应该能通过电脑浏览手机上的文件了。 ============================== 蓝牙确定可以用了之后，打开终端，输入 sudo apt-get install pppoe 安装pppoe拨号支持 再打开《[分享]ubuntu通过蓝牙适配器连接手机GPRS上网》，按照里面的步骤设定连接。 按照该文章拨号成功后，并不能打开任何网页，这是因为笔记本路由设置不正确。 打开终端，输入ifconfig，会看到以下的内容 &#8230;&#8230;.. ppp0 Link encap:Point-to-Point Protocol inet addr:10.72.88.180 P-t-P:10.6.6.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP &#8230; <a href="http://blog.iworm.net/2008/01/30/ubuntu-%e9%80%9a%e8%bf%87%e8%93%9d%e7%89%99%e8%bf%9e%e6%8e%a5%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%bd%91/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>春节要回家了，但是我首先去老婆家，她家没法上网，有时需要上网查点东西，比较麻烦，还要去网吧。</p>
<p>我的手机是8块钱包25M cmnet/cmwap的流量，手机本身因为性能限制，所以也不可能在需要上网的时候排上用场。</p>
<p>Nokia的PC Suite中可以让电脑通过手机上网，但是那是For Windows的程序，Ubuntu没法用。</p>
<p>后来找了一下论坛，发现这样可以：用蓝牙连接手机和电脑，然后让电脑通过手机拨号，电脑就能上网了，虽然速度不快，但是能解一时燃眉之急。</p>
<p>首先你需要一个蓝牙适配器，很多笔记本自带，我的没有。去电脑城20块买了一个，杂牌，不过查在我的本本上，Ubuntu能识别到这是一个蓝牙适配器，无须安装驱动。</p>
<p>打开手机的蓝牙连接，用手机搜索配对设备，找到后输入密码，确定，在电脑上会弹出个窗口让你输入密码，这个密码其实就是验证使用权的，手机上和电脑上输入一致即可。</p>
<p>======题外话：用电脑访问手机文件=======</p>
<p>连接成功后，右键点击电脑右上角的蓝牙图标，选择Browse Device，在弹出的界面中选择你的手机，按Connect，如果出现OBEX://[xxxx]格式不正确之类的提示，则说明你少安装了一个组件，在终端下输入</p>
<p>sudo apt-get install gnome-vfs-obexftp</p>
<p>安装完这个包之后，应该能通过电脑浏览手机上的文件了。</p>
<p>==============================</p>
<p>蓝牙确定可以用了之后，打开终端，输入</p>
<p>sudo apt-get install pppoe</p>
<p>安装pppoe拨号支持</p>
<p>再打开<a href="http://forum.ubuntu.org.cn/viewtopic.php?t=70377&amp;sid=ebd8315adfbada20fbd35fc45b682305" target="_blank">《[分享]ubuntu通过蓝牙适配器连接手机GPRS上网》</a>，按照里面的步骤设定连接。</p>
<p>按照该文章拨号成功后，并不能打开任何网页，这是因为笔记本路由设置不正确。</p>
<p>打开终端，输入ifconfig，会看到以下的内容</p>
<p>&#8230;&#8230;..<br />
ppp0      Link encap:Point-to-Point Protocol<br />
inet addr:<font color="#ff0000">10.72.88.180</font>  P-t-P:<font color="#ff0000">10.6.6.6</font>  Mask:255.255.255.255<br />
UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1<br />
RX packets:4 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:3<br />
RX bytes:64 (64.0 b)  TX bytes:97 (97.0 b)<br />
&#8230;&#8230;..</p>
<p>这里的inet addr:<font color="#ff0000">10.72.88.180</font>就是你刚才拨号后分配的IP地址，P-t-P:<font color="#ff0000">10.6.6.6</font>就是你的网关地址</p>
<p>此时输入route，会看到以下内容</p>
<p>Kernel IP routing table<br />
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br />
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1<br />
link-local      *               255.255.0.0     U     1000   0        0 eth1<br />
<font color="#ff0000"> default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1</font></p>
<p>你会看到默认路由是192.168.1.1，需要把默认路由改成手机拨号后得到的网关地址，也就是<font color="#ff0000">10.6.6.6</font></p>
<p>输入sudo route delete default</p>
<p>删除原来的默认路由</p>
<p>输入sudo route add default gw <font color="#ff0000">10.6.6.6</font></p>
<p>增加一个默认路由</p>
<p>之后，你就能顺利打开任何网页了。</p>
<p>拨号的命令是pon BluetoothDialup，断开拨号的命令是poff BluetoothDialup</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.iworm.net%2F2008%2F01%2F30%2Fubuntu-%25e9%2580%259a%25e8%25bf%2587%25e8%2593%259d%25e7%2589%2599%25e8%25bf%259e%25e6%258e%25a5%25e6%2589%258b%25e6%259c%25ba%25e4%25b8%258a%25e7%25bd%2591%2F&amp;title=Ubuntu%20%E9%80%9A%E8%BF%87%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E6%89%8B%E6%9C%BA%E4%B8%8A%E7%BD%91" id="wpa2a_20"><img src="http://blog.iworm.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.iworm.net/2008/01/30/ubuntu-%e9%80%9a%e8%bf%87%e8%93%9d%e7%89%99%e8%bf%9e%e6%8e%a5%e6%89%8b%e6%9c%ba%e4%b8%8a%e7%bd%91/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.5/cn/</creativeCommons:license>
	</item>
	</channel>
</rss>

