<?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>Programming Life with Music &#187; Archlinux</title>
	<atom:link href="http://jackaldire.com/tag/archlinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://jackaldire.com</link>
	<description>JackalDire &#039;s Blog</description>
	<lastBuildDate>Tue, 13 Jul 2010 08:29:29 +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://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>在Archlinux上的安装Tor</title>
		<link>http://jackaldire.com/200906/archlinux-tor-config/</link>
		<comments>http://jackaldire.com/200906/archlinux-tor-config/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 06:59:46 +0000</pubDate>
		<dc:creator>JackalDire</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux与开源]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[代理]]></category>

		<guid isPermaLink="false">http://jackaldire.com/?p=54</guid>
		<description><![CDATA[这几天网络环境急剧恶化，不得不把Tor搬出来 pacman -S tor 发现源里就有, 直接装之。装完以后默认的Socks绑定地址是127.0.0.1 9050, 当然也可以在配置文件里改掉: sudo vim /etc/tor/torrc 大概在20行的位置，还有就是默认情况下tor是作为服务启动的，如果想改成手动启动，把配置文件里的RunAsDaemon的值从1改成0就行了。 Tor装好后就要给浏览器设置代理了，firefox这种支持socks代理的浏览器直接把socks代理设置为 127.0.0.1 9050就行了，配合switch proxy tools这种切换代理的插件会很方便。像opera、konqueror等不支持socks代理的浏览器就需要privoxy来帮忙了： pacman -S privoxy privoxy可以将socks代理转换成http代理。需要改一下配置文件： sudo vim /etc/privoxy/config 把下面一行前面的注释去掉，直接加上也行 forward-socks4a / 127.0.0.1:9050 . 注意行末的点，如果改了tor的绑定地址，上边的地址也要相应的改变。然后设置映射到的http地址： listen-address 127.0.0.1:8118 也可以使用默认值，设置好以后把浏览器的代理地址设置成这个地址就ok了。 总算又看到久违的Twitter页面了~ Related Post 自己动手写Linux Shell（二） —— 支持后台执行 (2) 自己动手写Linux Shell（三） —— 支持IO重定向 (1) 自己动手写Linux Shell（一） —— 简单的命令解释器 (2) 我和Linux (0)]]></description>
			<content:encoded><![CDATA[<p id="fp">这几天网络环境急剧恶化，不得不把Tor搬出来</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pacman <span style="color: #660033;">-S</span> tor</pre></div></div>

<p>发现源里就有, 直接装之。装完以后默认的Socks绑定地址是127.0.0.1 9050, 当然也可以在配置文件里改掉:</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;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>tor<span style="color: #000000; font-weight: bold;">/</span>torrc</pre></div></div>

<p>大概在20行的位置，还有就是默认情况下tor是作为服务启动的，如果想改成手动启动，把配置文件里的RunAsDaemon的值从1改成0就行了。</p>
<p style="text-indent:2em">Tor装好后就要给浏览器设置代理了，firefox这种支持socks代理的浏览器直接把socks代理设置为 127.0.0.1 9050就行了，配合switch proxy tools这种切换代理的插件会很方便。像opera、konqueror等不支持socks代理的浏览器就需要privoxy来帮忙了：</p>
<p><span id="more-54"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pacman <span style="color: #660033;">-S</span> privoxy</pre></div></div>

<p>privoxy可以将socks代理转换成http代理。需要改一下配置文件：</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;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>privoxy<span style="color: #000000; font-weight: bold;">/</span>config</pre></div></div>

<p>把下面一行前面的注释去掉，直接加上也行</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">forward<span style="color: #000040;">-</span>socks4a   <span style="color: #000040;">/</span>               127.0.0.1<span style="color: #008080;">:</span><span style="color: #0000dd;">9050</span> .</pre></div></div>

<p>注意行末的点，如果改了tor的绑定地址，上边的地址也要相应的改变。然后设置映射到的http地址：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">listen-address  127.0.0.1:<span style="color: #000000;">8118</span></pre></div></div>

<p>也可以使用默认值，设置好以后把浏览器的代理地址设置成这个地址就ok了。</p>
<p style="text-indent:2em">总算又看到久违的Twitter页面了~</p>

	<h4>Related Post</h4>
	<ul class="st-related-posts">
	<li><a href="http://jackaldire.com/201001/write-your-own-shell-2-background-task/" title="自己动手写Linux Shell（二） —— 支持后台执行 (2010年01月31日)">自己动手写Linux Shell（二） —— 支持后台执行</a> (2)</li>
	<li><a href="http://jackaldire.com/201001/write-your-own-shell-3-io-redirection/" title="自己动手写Linux Shell（三） —— 支持IO重定向 (2010年01月31日)">自己动手写Linux Shell（三） —— 支持IO重定向</a> (1)</li>
	<li><a href="http://jackaldire.com/201001/write-your-own-shell-1-a-simple-command-interpreter/" title="自己动手写Linux Shell（一） —— 简单的命令解释器 (2010年01月29日)">自己动手写Linux Shell（一） —— 简单的命令解释器</a> (2)</li>
	<li><a href="http://jackaldire.com/200905/linux-and-i/" title="我和Linux (2009年05月14日)">我和Linux</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://jackaldire.com/200906/archlinux-tor-config/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
