3047321b4df7adf0b27ebd9c137a34df2d357285
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 13 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

3) # Translation-Priority: 3-low
4) 
5) #include "head.wmi" TITLE="Tor Project: Debian/Ubuntu 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/debian>">Debian/Ubuntu Instructions</a>
11)   </div>
12)   <div id="maincol"> 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

13) <a id="debian"></a>
14) <h2><a class="anchor" href="#debian">Option one: Tor on Debian lenny,
15) Debian sid, or Debian testing</a></h2>
16) <br />
17) 
18) <p>
19) If you're using Debian stable (lenny), unstable (sid), or testing
20) (squeeze), just run<br />
21) <tt>apt-get install tor tor-geoipdb</tt>
22) as root.
23) </p>
24) 
25) <p>
26) Note that this might not always give you the latest stable Tor version, but
27) you will receive important security fixes. To make sure that you're running
28) the latest stable version of Tor, see option two below.
29) </p>
30) 
31) <p>
32) Now Tor is installed and running. Move on to <a href="<page
33) docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
34) instructions.
35) </p>
36) 
37) <hr />
38) 
39) <a id="ubuntu"></a>
40) <a id="packages"></a>
41) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
42) Debian</a></h2>
43) <br />
44) 
45) <p>
46) <b>Do not use the packages in Ubuntu's universe.</b> They are unmaintained
47) and out of date. That means you'll be missing stability and security
48) fixes.
49) </p>
50) 
51) <p>
52) You'll need to set up our package repository before you can fetch
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

53) Tor. First, you need to figure out the name of your distribution. A
54) quick command to run is <tt>lsb_release -c</tt>.  Here's a quick mapping:
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

55) <ul>
Sebastian Hahn Maverick packages are avail...

Sebastian Hahn authored 13 years ago

56) <li> Ubuntu 10.10 is "maverick"</li>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

57) <li> Ubuntu 10.04 or Trisquel 4.0 is "lucid"</li>
58) <li> Ubuntu 9.10 or Trisquel 3.5 is  "karmic"</li>
59) <li> Ubuntu 9.04 is "jaunty"</li>
60) <li> Ubuntu 8.10 is "intrepid"</li>
61) <li> Ubuntu 8.04 is "hardy"</li> 
62) <li> Debian Etch is "etch"</li>
63) <li> Debian Lenny is "lenny"</li>
64) </ul>
65) 
66) Then add this line to your
67) <tt>/etc/apt/sources.list</tt>
68) file:<br />
69) <pre>
70) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
71) </pre>
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

72) where you put the codename of your distribution (i.e. etch, lenny, sid,
73) maverick, lucid, karmic, jaunty, intrepid, hardy or whatever it is)
74) in place of &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

75) </p>
76) 
77) <p>
78) Then add the gpg key used to sign the packages by running the following
79) commands at your command prompt:
80) <pre>
81) gpg --keyserver keys.gnupg.net --recv 886DDD89
82) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
83) </pre>
84) Now refresh your sources and install Tor by running the following
85) commands (as root) at your command prompt:
86) <pre>
87) apt-get update
88) apt-get install tor tor-geoipdb
89) </pre>
90) </p>
91) 
92) <p>
93) Now Tor is installed and running. Move on to <a href="<page
94) docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
95) instructions.
96) </p>
97) 
98) <p style="font-size: small">
99) The DNS name <code>deb.torproject.org</code> is actually a set of independent
100) servers in a DNS round robin configuration.  If you for some reason cannot
101) access it you might try to use the name of one of its part instead.  Try
102) <code>deb-master.torproject.org</code>,
103) <code>mirror.netcologne.de</code> or
104) <code>tor.mirror.youam.de</code>.
105) </p>
106) 
107) <hr />
108) 
109) <a id="development"></a>
110) <h2><a class="anchor" href="#development">Option three: Using the
111) development branch of Tor on Debian or Ubuntu</a></h2>
112) <br />
113) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

114) <p>If you want to use the <a href="<page
115) download/download>#packagediff">development branch</a> of Tor instead
116) (more features and more bugs), you need to add a different set of lines
117) to your <tt>/etc/apt/sources.list</tt> file:<br />
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

118) <pre>
119) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
120) deb     http://deb.torproject.org/torproject.org experimental-&lt;DISTRIBUTION&gt; main
121) </pre>
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

122) where you again substitute the name of your distro (etch, lenny,
123) sid, maverick, lucid, karmic, jaunty, intrepid, hardy) in place of
124) &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

125) </p>
126) 
127) <p>
128) Then run the following commands at your command prompt:
129) <pre>
130) gpg --keyserver keys.gnupg.net --recv 886DDD89
131) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
132) apt-get update
133) apt-get install tor tor-geoipdb
134) </pre>
135) </p>
136) 
137) <p>
138) Now Tor is installed and running. Move on to <a href="<page
139) docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
140) instructions.
141) </p>
142) 
143) <hr />
144) 
145) <a id="source"></a>
146) <h2><a class="anchor" href="#source">Building from source</a></h2>
147) <br />
148) 
149) <p>
150) If you want to build your own debs from source you must first add an
151) appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
152) <pre>
153) # For the stable version.
154) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
155) 
156) # For the unstable version.
157) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
158) deb-src http://deb.torproject.org/torproject.org experimental-&lt;DISTRIBUTION&gt; main
159) </pre>
160) You also need to install the necessary packages to build your own debs and the
161) packages needed to build Tor:
162) <pre>
163) apt-get install build-essential fakeroot devscripts
164) apt-get build-dep tor
165) </pre>
166) Then you can build Tor in ~/debian-packages:
167) <pre>
168) mkdir ~/debian-packages; cd ~/debian-packages
169) apt-get source tor
170) cd tor-*
171) debuild -rfakeroot -uc -us
172) cd ..
173) </pre>
174) Now you can install the new package:
175) <pre>
176) sudo dpkg -i tor_*.deb
177) </pre>
178) </p>
179) 
180) <p>
181) Now Tor is installed and running. Move on to <a href="<page
182) docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
183) instructions.
184) </p>
185) 
186) <hr />
187) 
188) <p>If you have suggestions for improving this document, please <a
189) href="<page about/contact>">send them to us</a>. Thanks!</p>
190) 
191) <!-- END MAIN COL -->