529218b31e4e30e7d4ac08338d0851add0292133
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
53) Debian already has an armhf.
54) </p>
55) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

56) <p>
57) 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

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

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Moritz Bartl authored 11 years ago

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

Peter Palfrader authored 13 years ago

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

Moritz Bartl authored 11 years ago

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

Roger Dingledine authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

111) </pre>
112) </p>
113) 
114) <p>
115) 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

116) 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

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

156) </pre>
157) </p>
158) 
159) <p>
160) 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

161) 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

162) instructions.
163) </p>
164) 
165) <hr />
166) 
167) <a id="source"></a>
168) <h2><a class="anchor" href="#source">Building from source</a></h2>
169) <br />
170) 
171) <p>
172) If you want to build your own debs from source you must first add an
173) 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

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

198) sudo dpkg -i tor_*.deb
199) </pre>
200) </p>
201) 
202) <p>
203) 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

204) 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

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