d69b4f076ad41a34902ccd5cbf14491375ef599d
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
2) # Revision: $Revision: 21798 $
3) # Translation-Priority: 3-low
4) 
5) #include "head.wmi" TITLE="Tor: Linux/BSD/Unix Install Instructions" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

8)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

9)     <a href="<page docs/documentation>">Documentation &raquo; </a>
10)     <a href="<page docs/tor-doc-unix>">Linux/BSD/Unix Client</a>
11)   </div> 
12)   <div id="maincol"> 
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

13)     <h1>Running the <a href="<page index>">Tor</a> client on Linux/BSD/Unix</h1>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

14)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

15)     
16)     <p>
17)     <b>Note that these are the installation instructions for running a Tor
18)     client. If you want to relay traffic for others to help the network grow
19)     (please do), read the <a
20)     href="<page docs/tor-doc-relay>">Configuring a relay</a> guide.</b>
21)     </p>
22)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

23)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

24)     <a id="installing"></a>
25)     <h2><a class="anchor" href="#installing">Step One: Download and Install Tor</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

26)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

27)     
28)     <p>
29)     The latest release of Tor can be found on the <a
30)     href="<page download/download>">download</a> page. We have packages for Debian,
31)     Red Hat, Gentoo, *BSD, etc there too. If you're
32)     using Ubuntu, don't use the default packages: use <a
33)     href="<page docs/debian>#ubuntu">our deb repository</a> instead.
34)     </p>
35)     
36)     <p>If you're building from source, first install <a
37)     href="http://www.monkey.org/~provos/libevent/">libevent</a>, and
38)     make sure you have openssl and zlib (including the -devel packages if
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

39)     applicable). Then run:<br>
40)     <tt>tar xzf tor-<version-stable>.tar.gz; cd tor-<version-stable></tt><br>
41)     <tt>./configure &amp;&amp; make</tt><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

42)     Now you can run tor as <tt>src/or/tor</tt>, or you can run <tt>make install</tt>
43)     (as root if necessary) to install it into /usr/local/, and then you can
44)     start it just by running <tt>tor</tt>.
45)     </p>
46)     
47)     <p>Tor comes configured as a client by default. It uses a built-in
48)     default configuration file, and most people won't need to change any of
49)     the settings. Tor is now installed.
50)     </p>
51)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

52)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

53)     <a id="privoxy"></a>
54)     <a id="polipo"></a>
55)     <h2><a class="anchor" href="#polipo">Step Two: Install Polipo for Web Browsing</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

56)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

57)     
58)     <p>After installing Tor, you need to configure your applications to use it.
59)     </p>
60)     
61)     <p>
62)     The first step is to set up web browsing. Start by installing <a
63)     href="http://www.pps.jussieu.fr/~jch/software/polipo/">Polipo</a> from
64)     your favorite repository. Polipo is a caching web proxy that does http
65)     pipelining well, so it's well-suited for Tor's latencies. Make sure
66)     to get at least Polipo 1.0.4, since earlier versions lack the SOCKS support
67)     required to use Polipo with Tor. You should uninstall privoxy at this
68)     point (e.g. apt-get remove privoxy or yum remove privoxy), so they don't
69)     conflict.
70)     </p>
71)     
72)     <p>Once you've installed Polipo (either from package or from
73)     source), <b>you will need to configure Polipo to use Tor</b>. Grab our <a
74)     href="https://svn.torproject.org/svn/torbrowser/trunk/build-scripts/config/polipo.conf">Polipo
75)     configuration for Tor</a> and put it in place of your current polipo
76)     config file (e.g. /etc/polipo/config or ~/.polipo).
77)     You'll need to restart Polipo for the changes to take effect. For
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

78)     example:<br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

79)     <tt>/etc/init.d/polipo restart</tt>
80)     </p>
81)     
82)     <p>If you prefer, you can instead use Privoxy with <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

83)     href="<wiki>TheOnionRouter/PrivoxyConfig">this
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

84)     sample Privoxy configuration</a>. But since the config files both use
85)     port 8118, you shouldn't run both Polipo and Privoxy at the same time.</p>
86)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

87)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

88)     <a id="using"></a>
89)     <h2><a class="anchor" href="#using">Step Three: Configure your applications to use Tor</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

90)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

91)     
92)     <p>After installing Tor and Polipo, you need to configure your
93)     applications to use them. The first step is to set up web browsing.</p>
94)     
95)     <p>You should use Tor with Firefox and Torbutton, for best safety.
96)     Simply install the <a
97)     href="https://addons.mozilla.org/firefox/2275/">Torbutton
98)     plugin</a>, restart your Firefox, and you're all set:
99)     </p>
100)     
101)     <img alt="Torbutton plugin for Firefox"
Andrew Lewman more image path fixes.

Andrew Lewman authored 13 years ago

102)     src="$(IMGROOT)/screenshot-torbutton.png"
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

103)     border="1">
104)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

105)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

106)     
107)     <p>
108)     If you plan to run Firefox on a different computer than Tor, see the <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

109)     href="<wikifaq>#SocksListenAddress">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

110)     FAQ
111)     entry for running Tor on a different computer</a>.
112)     </p>
113)     
114)     <p>To Torify other applications that support HTTP proxies, just
115)     point them at Polipo (that is, localhost port 8118). To use SOCKS
116)     directly (for instant messaging, Jabber, IRC, etc), you can point
117)     your application directly at Tor (localhost port 9050), but see <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

118)     href="<wikifaq>#SOCKSAndDNS">this
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

119)     FAQ entry</a> for why this may be dangerous. For applications
120)     that support neither SOCKS nor HTTP, take a look at <a
121)     href="http://tsocks.sourceforge.net/">tsocks</a> or <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

122)     href="<wiki>TheOnionRouter/TorifyHOWTO#socat">socat</a>.
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

123)     </p>
124)     
125)     <p>For information on how to Torify other applications, check out the
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

126)     <a href="<wiki>TheOnionRouter/TorifyHOWTO">Torify
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

127)     HOWTO</a>.
128)     </p>
129)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

130)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

131)     <a id="verify"></a>
132)     <h2><a class="anchor" href="#verify">Step Four: Make sure it's working</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

133)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

134)     
135)     <p>
136)     Next, you should try using your browser with Tor and make
137)     sure that your IP address is being anonymized. Click on
138)     <a href="https://check.torproject.org/">the
139)     Tor detector</a>
140)     and see whether it thinks you're using Tor or not.
141)     #<a href="http://ipchicken.com/">this site</a>
142)     #to see what IP address it thinks you're using.
143)     (If that site is down, see <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

144)     href="<wikifaq>#IsMyConnectionPrivate">this
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

145)     FAQ entry</a> for more suggestions on how to test your Tor.)
146)     </p>
147)     
148)     <p>If you have a personal firewall that limits your computer's
149)     ability to connect to itself (this includes something like SELinux on
150)     Fedora Core 4), be sure to allow connections from
151)     your local applications to Polipo (local port 8118) and Tor (local port
152)     9050). If
153)     your firewall blocks outgoing connections, punch a hole so
154)     it can connect to at least TCP ports 80 and 443, and then see <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

155)     href="<wikifaq>#FirewalledClient">this
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

156)     FAQ entry</a>.  If your SELinux config is not allowing tor or privoxy to
157)     run correctly, create a file named booleans.local in the directory
158)     /etc/selinux/targeted.  Edit this file in your favorite text editor and
159)     insert "allow_ypbind=1".  Restart your machine for this change to take
160)     effect.
161)     </p>
162)     
163)     <p>If it's still not working, look at <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

164)     href="<wikifaq>#ItDoesntWork">this
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

165)     FAQ entry</a> for hints.</p>
166)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

167)     <hr>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

168)     <a id="server"></a>
169)     <a id="relay"></a>
170)     <h2><a class="anchor" href="#relay">Step Five: Configure it as a relay</a></h2>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

171)     <br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

172)     
173)     <p>The Tor network relies on volunteers to donate bandwidth. The more
174)     people who run relays, the faster the Tor network will be. If you have
175)     at least 20 kilobytes/s each way, please help out Tor by configuring your
176)     Tor to be a relay too. We have many features that make Tor relays easy
177)     and convenient, including rate limiting for bandwidth, exit policies so
178)     you can limit your exposure to abuse complaints, and support for dynamic
179)     IP addresses.</p>
180)     
181)     <p>Having relays in many different places on the Internet is what
182)     makes Tor users secure. <a
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

183)     href="<wikifaq>#RelayAnonymity">You
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

184)     may also get stronger anonymity yourself</a>,
185)     since remote sites can't know whether connections originated at your
186)     computer or were relayed from others.</p>
187)     
188)     <p>Read more at our <a href="<page docs/tor-doc-relay>">Configuring a relay</a>
189)     guide.</p>
190)     
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

191)     <hr>