<?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>Tsung.暴躁 &#187; GFW</title>
	<atom:link href="http://tsung.bz/tag/gfw/feed/" rel="self" type="application/rss+xml" />
	<link>http://tsung.bz</link>
	<description>How To Rock On?</description>
	<lastBuildDate>Thu, 29 Jul 2010 08:55:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://tsung.bz/?pushpress=hub'/>
		<item>
		<title>Ubuntu底下用proxychains越墙安装dropbox</title>
		<link>http://tsung.bz/2010/07/12/fuck-gfw-to-install-dropbox-online-under-ubuntu/</link>
		<comments>http://tsung.bz/2010/07/12/fuck-gfw-to-install-dropbox-online-under-ubuntu/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 04:58:28 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[GFW]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[proxychains]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=253</guid>
		<description><![CDATA[优秀的云存储服务Dropbox被华丽丽的和谐了~windows底下直接可以下到客户端，ubuntu底下还要去网络上获取安装资源，这就碰到一个问题，给任意本地程序添加代理功能。当然，这里的任意可能有些复杂，比如前段时间DNS的原因我在公司上不去empathy的gtalk客户端，用了代理也是没用，估计是因为我在proxychains设置了代理DNS（可能理解有误）。下面简单说下安装步骤： 1、到dropbox下载ubuntu的DEB安装包，并安装。 2、安装完DEB后关掉dropbox。 3、安装proxychains，sudo apt-get install proxychains 4、运行 proxychains dropbox start -i &#038; （这里&#038;的意思是在终端打印出调试信息） 这样，就能顺利完成安装了 感谢@riku的提醒，可以参考他这篇文章更改设置：http://w.riku.me/blog/pino]]></description>
			<content:encoded><![CDATA[<p>优秀的云存储服务Dropbox被华丽丽的和谐了~windows底下直接可以下到客户端，ubuntu底下还要去网络上获取安装资源，这就碰到一个问题，给任意本地程序添加代理功能。当然，这里的任意可能有些复杂，比如前段时间DNS的原因我在公司上不去empathy的gtalk客户端，用了代理也是没用，估计是因为我在proxychains设置了代理DNS（可能理解有误）。下面简单说下安装步骤：<br />
1、到dropbox下载ubuntu的DEB安装包，并安装。<br />
2、安装完DEB后关掉dropbox。<br />
3、安装proxychains，sudo apt-get install proxychains<br />
4、运行 proxychains dropbox start -i &#038; （这里&#038;的意思是在终端打印出调试信息）<br />
这样，就能顺利完成安装了<br />
感谢@riku的提醒，可以参考他这篇文章更改设置：<a href="http://w.riku.me/blog/pino">http://w.riku.me/blog/pino</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2010/07/12/fuck-gfw-to-install-dropbox-online-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu底下SSH+Polipo越过围墙</title>
		<link>http://tsung.bz/2010/04/20/use-ssh-and-polipo-to-fuck-gfw/</link>
		<comments>http://tsung.bz/2010/04/20/use-ssh-and-polipo-to-fuck-gfw/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 00:59:58 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[GFW]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[expect]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[polipo]]></category>
		<category><![CDATA[privoxy]]></category>
		<category><![CDATA[socks5]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=171</guid>
		<description><![CDATA[最终方案 自动登录代码，基于expect #!/usr/bin/expect -f set timeout 300 spawn ssh -qTfnN -D 7070 xxxxx@my.cutessh.info expect &#123; &#160; &#160; &#160; &#160; &#34;*yes/no*&#34; &#123; send &#34;yes\r&#34; &#125; &#160; &#160; &#160; &#160; &#34;*password*&#34; &#123; send &#34;xxxxx\r&#34; &#125; &#125; interact &#160; 开机启动代码，放在/etc/rc.local &#160; sleep 60 &#38;&#38; /usr/bin/expect -f /home/tsung/ssh.exp &#160; polipo配置文件，放在/etc/polipo/config &#160; socksParentProxy = &#34;localhost:7070&#34; socksProxyType = socks5 &#160; proxyAddress [...]]]></description>
			<content:encoded><![CDATA[<p><strong>最终方案</strong></p>
<li>自动登录代码，基于expect</li>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re3">#!/usr/bin/expect -f</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">set</span> timeout <span class="nu0">300</span></div>
</li>
<li class="li1">
<div class="de1">spawn <span class="kw2">ssh</span> -qTfnN -D <span class="nu0">7070</span> xxxxx@my.cutessh.info</div>
</li>
<li class="li1">
<div class="de1">expect <span class="br0">&#123;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;*yes/no*&quot;</span> <span class="br0">&#123;</span> send <span class="st0">&quot;yes<span class="es0">\r</span>&quot;</span> <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;*password*&quot;</span> <span class="br0">&#123;</span> send <span class="st0">&quot;xxxxx<span class="es0">\r</span>&quot;</span> <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">interact</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<li>开机启动代码，放在/etc/rc.local</li>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">sleep</span> <span class="nu0">60</span> &amp;&amp; /usr/bin/expect -f /home/tsung/<span class="kw2">ssh</span>.exp</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<li>polipo配置文件，放在/etc/polipo/config</li>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">socksParentProxy = <span class="st0">&quot;localhost:7070&quot;</span></div>
</li>
<li class="li1">
<div class="de1">socksProxyType = socks5</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">proxyAddress = <span class="st0">&quot;127.0.0.1&quot;</span></div>
</li>
<li class="li1">
<div class="de1">proxyPort = <span class="nu0">1984</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
<p><strong>弯路</strong></p>
<li>本来想用privoxy作socks转http，死活不成功，最终在一个网站看到说对karmic发行版貌似不支持，用sysv-rc-conf看了下，服务是打开的</li>
<li>刚开始没写好启动代码，用任务去跑</li>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">crontab -e</div>
</li>
<li class="li1">
<div class="de1">*/<span class="nu0">5</span> * * * * /usr/bin/expect -f /home/tsung/<span class="kw2">ssh</span>.exp &gt;&gt; /home/tsung/errtask <span class="nu0">2</span>&gt;&amp;<span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2010/04/20/use-ssh-and-polipo-to-fuck-gfw/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>puff的1984端口被占用</title>
		<link>http://tsung.bz/2010/04/19/puff-1984-port/</link>
		<comments>http://tsung.bz/2010/04/19/puff-1984-port/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 05:40:46 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[GFW]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=167</guid>
		<description><![CDATA[电脑puff突然连不上了,用netstat -a看了下端口的确是打开的..在网上找到了查找哪个进程占用的方法,备忘下: 1.netstat -aon&#124;findstr &#8220;1984&#8243; 得到结果 TCP 10.0.0.176:1984 74.125.155.125:5222 ESTABLISHED 1668 可以看到是进程1668的程序占用了端口 2.tasklist&#124;findstr &#8220;1668&#8243; 得到结果 googletalk.exe 1668 Console 0 59,224 K 居然是被gtalk占用..关掉gtalk,开puff,再开gtalk,恢复正常]]></description>
			<content:encoded><![CDATA[<p>电脑puff突然连不上了,用netstat -a看了下端口的确是打开的..在网上找到了查找哪个进程占用的方法,备忘下:<br />
1.netstat -aon|findstr &#8220;1984&#8243;<br />
得到结果 TCP    10.0.0.176:1984        74.125.155.125:5222    ESTABLISHED     1668<br />
可以看到是进程1668的程序占用了端口<br />
2.tasklist|findstr &#8220;1668&#8243;<br />
得到结果 googletalk.exe              1668 Console                 0     59,224 K<br />
居然是被gtalk占用..关掉gtalk,开puff,再开gtalk,恢复正常</p>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2010/04/19/puff-1984-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu9.10底下交叉编译gccgo</title>
		<link>http://tsung.bz/2009/11/17/cross-compile-gccgo-under-ubuntu-9-10-amd64/</link>
		<comments>http://tsung.bz/2009/11/17/cross-compile-gccgo-under-ubuntu-9-10-amd64/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 22:48:45 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[amd64]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[gccgo]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[go]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=56</guid>
		<description><![CDATA[Google刚推出了go语言，所以拿出来折腾下，由于是64位的系统，加上gccgo本身一些bug，折腾过程中遇到几个问题，这里简单列下（一些很容易找到的就略过），问题不分先后： 1、设置CFLAGS，执行./configure前执行export CFLAGS=&#8217;-m64&#8242;，具体我的configure是这样的../gccgo/configure &#8211;enable-languages=c,c++,go &#8211;disable-multilib 这里要disable掉multilib，我是觉得64位没必要非纠结32位 2、找不到linux/user.h，实际上是在sys/user.h，也就是在/usr/include/sys才有，另外有人找不到cs ss ds es fs gs那些，可参看http://groups.google.com/group/golang-nuts/browse_thread/thread/fe10ca33f7ad36aa/a7a1e9f274ae3204?lnk=raot&#038;pli=1 3、go.install-plugin target找不到： &#8212; Make-lang.in (revision 154084) +++ Make-lang.in (working copy) @@ -96,6 +96,7 @@ go.install-common: installdirs -$(INSTALL_PROGRAM) gccgo$(exeext) $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext) -chmod a+x $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext) +go.install-plugin: go.install-man: go.uninstall: 参看http://archives.free.net.ph/message/20091115.235810.c2ed4344.en.html 整个过程纠结了两天，主要是make要很长时间一出错就得重新开始，人生。。 GCCGO的安装过程比较像底下这家伙：http://www.atoztoa.com/2009/11/making-gccgo-in-ubuntu.html （访问需要越墙） 接下来是编译go，下载代码好像花了满长时间的，第一次执行./all.bash的时候，貌似出了比较奇怪的错误，后面找到原因是没有给GOBIN目录设置权限，chmod 755 $GOBIN，然后参照How to install the Google GO compiler on Ubuntu Linuxe，我又在bashrc里添加了export PATH=$GOBIN:$PATH。再一次执行./all.bash，出现： #&#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>Google刚推出了go语言，所以拿出来折腾下，由于是64位的系统，加上gccgo本身一些bug，折腾过程中遇到几个问题，这里简单列下（一些很容易找到的就略过），问题不分先后：</p>
<p>1、设置CFLAGS，执行./configure前执行export CFLAGS=&#8217;-m64&#8242;，具体我的configure是这样的../gccgo/configure &#8211;enable-languages=c,c++,go &#8211;disable-multilib 这里要disable掉multilib，我是觉得64位没必要非纠结32位</p>
<p>2、找不到linux/user.h，实际上是在sys/user.h，也就是在/usr/include/sys才有，另外有人找不到cs ss ds es fs gs那些，可参看http://groups.google.com/group/golang-nuts/browse_thread/thread/fe10ca33f7ad36aa/a7a1e9f274ae3204?lnk=raot&#038;pli=1</p>
<p>3、go.install-plugin target找不到：<br />
&#8212; Make-lang.in    (revision 154084)<br />
+++ Make-lang.in    (working copy)<br />
@@ -96,6 +96,7 @@ go.install-common: installdirs<br />
    -$(INSTALL_PROGRAM) gccgo$(exeext) $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)<br />
    -chmod a+x $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext) </p>
<p>+go.install-plugin:<br />
go.install-man: </p>
<p>go.uninstall:<br />
参看http://archives.free.net.ph/message/20091115.235810.c2ed4344.en.html</p>
<p>整个过程纠结了两天，主要是make要很长时间一出错就得重新开始，人生。。<br />
GCCGO的安装过程比较像底下这家伙：http://www.atoztoa.com/2009/11/making-gccgo-in-ubuntu.html （访问需要越墙）</p>
<p>接下来是编译go，下载代码好像花了满长时间的，第一次执行./all.bash的时候，貌似出了比较奇怪的错误，后面找到原因是没有给GOBIN目录设置权限，chmod 755 $GOBIN，然后参照<a href="http://www.jeremymorgan.com/blog/linux/how-to-install-the-google-go-compiler-on-ubuntu-linux/">How to install the Google GO compiler on Ubuntu Linuxe</a>，我又在bashrc里添加了export PATH=$GOBIN:$PATH。再一次执行./all.bash，出现：<br />
#&#8212; FAIL: http.TestClient<br />
#    Get http://www.google.com/robots.txt: unexpected EOF<br />
#&#8212; FAIL: http.TestRedirect<br />
#    Get http://codesearch.google.com/: unexpected EOF<br />
#FAIL<br />
#make[1]: *** [test] Error 1<br />
这个的错误的原因又是万恶的GFW，打开VPN，马上就正常了，看截图：<br />
<a href="http://tsung.bz/wp-content/uploads/2009/11/tsung@Tsung-Develop-go-src_001.png"><img src="http://tsung.bz/wp-content/uploads/2009/11/tsung@Tsung-Develop-go-src_001-300x207.png" alt="tsung@Tsung: ~-Develop-go-src_001" title="tsung@Tsung: ~-Develop-go-src_001" width="300" height="207" class="alignleft size-medium wp-image-81" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2009/11/17/cross-compile-gccgo-under-ubuntu-9-10-amd64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>买了个VPN测试</title>
		<link>http://tsung.bz/2009/11/08/vpn-test/</link>
		<comments>http://tsung.bz/2009/11/08/vpn-test/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 08:52:30 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[GFW]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=31</guid>
		<description><![CDATA[在billzhong那购买了一个月VPN测试，本来ubuntu9.10装了WICD管理网络，但是不支持VPN管理，不得不换回network-manager。发现用来看youtube还是慢了点。]]></description>
			<content:encoded><![CDATA[<p>在billzhong那购买了一个月VPN测试，本来ubuntu9.10装了WICD管理网络，但是不支持VPN管理，不得不换回network-manager。发现用来看youtube还是慢了点。</p>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2009/11/08/vpn-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>墙</title>
		<link>http://tsung.bz/2009/11/04/%e5%a2%99/</link>
		<comments>http://tsung.bz/2009/11/04/%e5%a2%99/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 06:17:36 +0000</pubDate>
		<dc:creator>Tsung.W</dc:creator>
				<category><![CDATA[GFW]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://tsung.bz/?p=17</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://tsung.bz/wp-content/uploads/2009/11/berlinwall.jpg" target="_blank"><img class="size-medium wp-image-18 aligncenter" style="border: 1px solid black;" title="berlinwall" src="http://tsung.bz/wp-content/uploads/2009/11/berlinwall-300x163.jpg" alt="berlinwall" width="300" height="163" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tsung.bz/2009/11/04/%e5%a2%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
