61a4bb18a38d2aeb637cad26f8cea12d29083119
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 14 years ago

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

Andrew Lewman authored 14 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 14 years ago

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

Andrew Lewman authored 14 years ago

9)     <a href="<page docs/documentation>">Documentation &raquo; </a>
10)     <a href="<page docs/debian>">Debian/Ubuntu Instructions</a>
11)   </div>
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

12)   <div id="maincol">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

13) <a id="debian"></a>
Roger Dingledine if you're still on debian l...

Roger Dingledine authored 11 years ago

14) <h2><a class="anchor" href="#debian">Option one: Tor on Debian squeeze,
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

15) Debian sid, or Debian testing</a></h2>
16) <br />
17) 
18) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 13 years ago

19) If you're using Debian, just run<br />
Peter Palfrader No need to explicitly ask f...

Peter Palfrader authored 12 years ago

20) <tt>apt-get install tor</tt>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

21) as root.
22) </p>
23) 
24) <p>
25) Note that this might not always give you the latest stable Tor version, but
26) you will receive important security fixes. To make sure that you're running
27) the latest stable version of Tor, see option two below.
28) </p>
29) 
30) <p>
31) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 13 years ago

32) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

33) instructions.
34) </p>
35) 
36) <hr />
37) 
38) <a id="ubuntu"></a>
39) <a id="packages"></a>
40) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
41) Debian</a></h2>
42) <br />
43) 
44) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 13 years ago

45) <b>Do not use the packages in Ubuntu's universe.</b> In the past they have
46) not reliably been updated. That means you could be missing stability
47) and security fixes.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

48) </p>
49) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

50) <p>
51) <b>Raspbian is not Debian.</b> These packages will be confusingly broken
52) for Raspbian users, since Raspbian called their architecture armhf but
Roger Dingledine begin the slide toward link...

Roger Dingledine authored 11 years ago

53) Debian already has an armhf. See <a
54) href="http://tor.stackexchange.com/questions/242/how-to-run-tor-on-raspbian-on-the-raspberry-pi">this
55) post</a> for details.
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

56) </p>
57) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

58) <p>
59) 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

60) Tor. First, you need to figure out the name of your distribution. A
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

61) quick command to run is <tt>lsb_release -c</tt> or <tt>cat /etc/debian_version</tt>.
62) Here's a quick mapping:
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

63) <ul>
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

64) <li> Debian unstable (sid) is "sid"</li>
Moritz Bartl updated debian and ubuntu v...

Moritz Bartl authored 11 years ago

65) <li> Debian 7.0 (wheezy) is "wheezy"</li>
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

66) <li> Debian 6.0 (squeeze) is "squeeze"</li>
Moritz Bartl updated debian and ubuntu v...

Moritz Bartl authored 11 years ago

67) <li> Ubuntu 13.04 is "raring"</li>
68) <li> Ubuntu 12.10 is "quantal"</li>
Roger Dingledine looks like we have oneiric...

Roger Dingledine authored 12 years ago

69) <li> Ubuntu 12.04 is "precise"</li>
70) <li> Ubuntu 11.10 is "oneiric"</li>
Andrew Lewman add ubuntu/trisquel version...

Andrew Lewman authored 13 years ago

71) <li> Ubuntu 11.04 is "natty"</li>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

72) <li> Ubuntu 10.04 or Trisquel 4.0 is "lucid"</li>
73) </ul>
74) 
75) Then add this line to your
76) <tt>/etc/apt/sources.list</tt>
77) file:<br />
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

78) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

79) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
80) </pre>
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

81) where you put the codename of your distribution (i.e. lenny, sid,
82) maverick or whatever it is)
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

83) in place of &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

84) </p>
85) 
86) <p>
87) Then add the gpg key used to sign the packages by running the following
88) commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

89) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

90) gpg --keyserver keys.gnupg.net --recv 886DDD89
91) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
92) </pre>
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

93) Now refresh your sources, running the following command (as root) at your
94) command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

95) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

96) apt-get update
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

97) </pre>
98) If there are no errors you're good to continue.
99) </p>
100) 
101) <p>
102) We provide a Debian package to help you keep our signing key current.  It is
103) recommended you use it.  Install it using
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

104) <pre style="margin: 1.5em 0 1.5em 2em">
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

105) apt-get install deb.torproject.org-keyring
106) </pre>
107) </p>
108) 
109) <p>
110) To finally install Tor just run:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

111) <pre style="margin: 1.5em 0 1.5em 2em">
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

112) apt-get install tor
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

113) </pre>
114) </p>
115) 
116) <p>
117) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 13 years ago

118) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

119) instructions.
120) </p>
121) 
122) <p style="font-size: small">
123) The DNS name <code>deb.torproject.org</code> is actually a set of independent
124) servers in a DNS round robin configuration.  If you for some reason cannot
125) access it you might try to use the name of one of its part instead.  Try
126) <code>deb-master.torproject.org</code>,
127) <code>mirror.netcologne.de</code> or
128) <code>tor.mirror.youam.de</code>.
129) </p>
130) 
131) <hr />
132) 
133) <a id="development"></a>
134) <h2><a class="anchor" href="#development">Option three: Using the
135) development branch of Tor on Debian or Ubuntu</a></h2>
136) <br />
137) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

138) <p>If you want to use the <a href="<page
139) download/download>#packagediff">development branch</a> of Tor instead
140) (more features and more bugs), you need to add a different set of lines
141) to your <tt>/etc/apt/sources.list</tt> file:<br />
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

142) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

143) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
144) deb     http://deb.torproject.org/torproject.org experimental-&lt;DISTRIBUTION&gt; main
145) </pre>
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

146) where you again substitute the name of your distro (lenny,
147) sid, maverick, ...) in place of
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

148) &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

149) </p>
150) 
151) <p>
152) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

153) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

154) gpg --keyserver keys.gnupg.net --recv 886DDD89
155) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
156) apt-get update
Peter Palfrader No need to explicitly ask f...

Peter Palfrader authored 12 years ago

157) apt-get install tor deb.torproject.org-keyring
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

158) </pre>
159) </p>
160) 
161) <p>
162) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 13 years ago

163) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

164) instructions.
165) </p>
166) 
167) <hr />
168) 
169) <a id="source"></a>
170) <h2><a class="anchor" href="#source">Building from source</a></h2>
171) <br />
172) 
173) <p>
174) If you want to build your own debs from source you must first add an
175) appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

176) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

177) # For the stable version.
178) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
179) 
180) # For the unstable version.
181) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
182) deb-src http://deb.torproject.org/torproject.org experimental-&lt;DISTRIBUTION&gt; main
183) </pre>
184) You also need to install the necessary packages to build your own debs and the
185) packages needed to build Tor:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

186) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

187) apt-get install build-essential fakeroot devscripts
188) apt-get build-dep tor
189) </pre>
190) Then you can build Tor in ~/debian-packages:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

191) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

192) mkdir ~/debian-packages; cd ~/debian-packages
193) apt-get source tor
194) cd tor-*
195) debuild -rfakeroot -uc -us
196) cd ..
197) </pre>
198) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

199) <pre style="margin: 1.5em 0 1.5em 2em">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

200) sudo dpkg -i tor_*.deb
201) </pre>
202) </p>
203) 
204) <p>
205) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 13 years ago

206) docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

207) instructions.
208) </p>
209) 
210) <hr />
211) 
212) <p>If you have suggestions for improving this document, please <a
213) href="<page about/contact>">send them to us</a>. Thanks!</p>
214) 
215) <!-- END MAIN COL -->