b9852566146f2845fbfbd8aa9a2f24d076bff25d
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"
Peter Palfrader Move Debian sources.list ge...

Peter Palfrader authored 7 years ago

6) {#meta#:
7) <script type="text/javascript" src="debian-selector.js"></script>
8) :#meta#}
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

9) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

10) <div id="content" class="clearfix">
11)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Roger Dingledine authored 10 years ago

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

Andrew Lewman authored 13 years ago

17) <a id="debian"></a>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

18) <h2><a class="anchor" href="#debian">Option one: Tor on Debian Stretch - 
19) stable, Debian Buster - testing, or Debian Sid - unstable</a></h2>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

20) <br />
21) 
22) <p>
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

23) If you're using Debian, just run as root:
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

24) <blockquote><pre># apt install tor</pre></blockquote>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

25) </p>
26) 
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

27) <p>Debian provides the
28) <a href="https://packages.debian.org/stretch/tor">LTS</a>
hiro Provide a note regarding de...

hiro authored 6 years ago

29) version of Tor. Note that this might not always give you the latest stable
30) Tor version, but you will receive important security fixes. To make sure
31) that you're running the latest stable version of Tor, see option two below.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

32) </p>
33) 
34) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

35) When Tor is installed and running move on to 
36) <a href="<page docs/tor-doc-unix>#using">step two</a> of the
37) "<a href="<page docs/tor-doc-unix>">Tor on Linux/Unix</a>" instructions.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

38) </p>
39) 
40) <hr />
41) 
42) <a id="ubuntu"></a>
43) <a id="packages"></a>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

44) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

45) Debian</a></h2>
46) 
47) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 12 years ago

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

Andrew Lewman authored 13 years ago

51) </p>
52) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 10 years ago

53) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

54) <b>Raspbian is not Debian.</b> Tor might run fine on the Raspberry Pi 2 / 3
55) but not the first generation Pi.
56) These packages might be confusingly broken for Raspbian users, since Raspbian 
57) called their architecture armhf but Debian already has an armhf. See <a
Roger Dingledine begin the slide toward link...

Roger Dingledine authored 10 years ago

58) href="http://tor.stackexchange.com/questions/242/how-to-run-tor-on-raspbian-on-the-raspberry-pi">this
59) post</a> for details.
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 10 years ago

60) </p>
61) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

62) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

63) <b>Admin access</b>:
64) To install Tor you need root privileges. Below all commands that need to be run
65) as root user like apt and dpkg are prepended with '&num;',
66) while commands to be run as user with '$' resembling the standard
67) prompt in a terminal. To open a root terminal you have several options:
68) <code>sudo su</code>, or <code>sudo -i</code>,  or <code>su -i</code>.
69) Note that sudo asks for your user password, while su expects
70) the root password of your system.
71) </p>
72) 
73) <p>
74) <b>apt-transport-tor</b>:
75) To use source lines with <tt>https://</tt> in <i>/etc/apt/sources.list</i> the
76) <a href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https package</a>
77) is required. Install it with
78) <blockquote><pre>
79) &num; apt install apt-transport-https
80) </pre></blockquote>
81) to enable all package managers using the libapt-pkg library to access metadata
82) and packages available in sources accessible over https (Hypertext Transfer Protocol Secure).
83) </p>
84) 
85) <p>
86) <b>sources.list</b>:
87) You'll need to set up our package repository before you can fetch Tor. First,
88) you need to figure out the name of your distribution. A quick command to run is
89) <tt>lsb_release -c</tt> or <tt>cat /etc/debian_version</tt>.
90) If in doubt about your Debian version, check
91) <a href="https://www.debian.org/releases/">the Debian website</a>.
92) For Ubuntu, ask
93) <a href="https://en.wikipedia.org/wiki/List_of_Ubuntu_releases#Table_of_versions">Wikipedia</a>.
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

94) </p>
95) 
96) <div id="selector" style="display: none;">
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

97) <blockquote>I run
Peter Palfrader Do not use onchange=<inline...

Peter Palfrader authored 7 years ago

98) <select id="distrib">
hiromipaw Change select options

hiromipaw authored 6 years ago

99) <option value="jessie">Debian oldstable (jessie)</option>
100) <option value="stretch" selected="selected">Debian stable (stretch)</option>
nusenu Bug 25107: fix sources.list...

nusenu authored 6 years ago

101) <option value="buster">Debian testing (buster)</option>
Sebastian Hahn sid is unstable

Sebastian Hahn authored 9 years ago

102) <option value="sid">Debian unstable (sid)</option>
nusenu Bug 25107: sources.list gen...

nusenu authored 6 years ago

103) <option value="trusty">Ubuntu Trusty Tahr (14.04 LTS)</option>
104) <option value="xenial">Ubuntu Xenial Xerus (16.04 LTS)</option>
105) <option value="artful">Ubuntu Artful Aardvark (17.10)</option>
nusenu debian.html: sources.list g...

nusenu authored 5 years ago

106) <option value="bionic">Ubuntu Bionic Beaver (18.04 LTS)</option>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

107) </select>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

108) and want
Peter Palfrader Do not use onchange=<inline...

Peter Palfrader authored 7 years ago

109) <select id="package"></select>
110) <select id="version"></select>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

111) </blockquote>
112) 
113) <div id="apt-source">
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

114) <p>
115) You need to add the following entries to <code>/etc/apt/sources.list</code>
116) or a new file in <code>/etc/apt/sources.list.d/</code>:
117) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

118) 
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

119) <blockquote><pre id="sources">
120) deb https://deb.torproject.org/torproject.org jessie main
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

121) </pre></blockquote>
122) </div>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

123) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

124) <div id="sig">
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

125) <p>Then add the gpg key used to sign the packages by running the following
126) commands at your command prompt:
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

127) <blockquote><pre>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

128) &num; gpg --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
129) &num; gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
130) </pre></blockquote></p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

131) </div>
132) 
133) <div id="apt-get">
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

134) <p>We provide a Debian package to help you keep our signing key current. It is
135) recommended you use it. Install it with the following commands:</p>
136) <blockquote><pre>&num; apt update
137) <span id="regular-install">&num; apt install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
138) <span id="source-install">&num; apt install build-essential fakeroot devscripts
139) &num; apt build-dep tor deb.torproject.org-keyring
140) </span>
141) </pre></blockquote>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

142) 
143) <div id="source-install2">
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

144) <p>Then you can build Tor in ~/debian-packages:</p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

145) <blockquote><pre>
146) $ mkdir ~/debian-packages; cd ~/debian-packages
Iain R. Learmonth Switch out references to ap...

Iain R. Learmonth authored 6 years ago

147) $ apt source tor
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

148) $ cd tor-*
149) $ debuild -rfakeroot -uc -us
150) $ cd ..
151) </pre></blockquote>
152) <p>Now you can install the new package:</p>
153) <blockquote><pre>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

154) &num; dpkg -i tor_*.deb
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

155) </pre></blockquote>
156) </div>
157) </div>
158) </div>
159) 
160) <noscript>
161) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

162) Then add this line to your <tt>/etc/apt/sources.list</tt> file:<br />
163) <blockquote><pre>
hiro Fix no script version of de...

hiro authored 6 years ago

164) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
traumschule docs/debian: minor fix

traumschule authored 5 years ago

165) </pre></blockquote>
nusenu Bug 25107: replace ancient...

nusenu authored 6 years ago

166) where you put the codename of your distribution (i.e. stretch, buster, sid
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

167) or whatever it is) in place of &lt;DISTRIBUTION&gt;.
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

168) </p>
169) 
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

170) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

171) If you want to use the
172) <a href="<page download/download-unix>#packagediff">development branch</a>
173) of Tor instead (more features and more bugs), you need add a different set of
174) lines to your <i>/etc/apt/sources.list</i> file:<br />
175) <blockquote><pre>
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

176) deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
177) deb     https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
178) </pre></blockquote>
179) </p>
180) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

181) <p>
182) Then add the gpg key used to sign the packages by running the following
183) commands at your command prompt:
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

184) <blockquote><pre>
185) &num; gpg --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
186) &num; gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
187) </pre></blockquote>
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

188) Now refresh your sources, running the following command (as root) at your
189) command prompt:
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

190) <blockquote><pre>
191) &num; apt update
192) </pre></blockquote>
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

193) If there are no errors you're good to continue.
194) </p>
195) 
196) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

197) We provide a Debian package to help you keep our signing key current. It is
198) recommended you use it. Install it together with tor:
199) <blockquote><pre>
200) &num; apt install tor deb.torproject.org-keyring
201) </pre></blockquote>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

202) </p>
203) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

204) </noscript>
Traumschule docs/debian: mention apt-tr...

Traumschule authored 5 years ago

205) <noscript>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

206) 
207) <hr />
208) 
209) <a id="source"></a>
210) <h2><a class="anchor" href="#source">Building from source</a></h2>
211) 
212) <p>
213) If you want to build your own debs from source you must first add an
214) appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

215) </p>
216) <blockquote><pre>
217) &num; For the stable version.
hiro Fix no script version of de...

hiro authored 6 years ago

218) deb-src https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

219) 
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

220) &num; For the unstable version.
hiro Fix no script version of de...

hiro authored 6 years ago

221) deb-src https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Traumschule doc/debian: Bump Tor to 0.3...

Traumschule authored 5 years ago

222) deb-src https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

223) </pre></blockquote>
224) <p>
225) Substitute the name of your distro (stretch, buster, sid, xenial, ...) in
226) place of &lt;DISTRIBUTION&gt;. Now refresh your sources by running (as root):
227) </p>
228) <blockquote><pre>
229) &num; apt update
230) </pre></blockquote>
231) <p>
hiromipaw Update Debian distros coden...

hiromipaw authored 6 years ago

232) You also need to install the necessary packages to build your own debs and the
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

233) packages needed to build Tor:
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

234) </p>
235) <blockquote><pre>
236) &num; apt install build-essential fakeroot devscripts
237) &num; apt build-dep tor
238) </pre></blockquote>
239) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

240) Then you can build Tor in ~/debian-packages:
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

241) </p>
242) <blockquote><pre>
243) $ mkdir ~/debian-packages; cd ~/debian-packages
244) $ apt source tor
245) $ cd tor-*
246) $ debuild -rfakeroot -uc -us
247) $ cd ..
248) </pre></blockquote>
249) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

250) Now you can install the new package:
251) </p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

252) <blockquote><pre>
253) &num; dpkg -i tor_*.deb
254) </pre></blockquote>
255) 
256) </noscript>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

257) 
258) <p>
traumschule docs/debian: improve the gu...

traumschule authored 5 years ago

259) Now Tor is installed and running. Move on to
260) <a href="<page docs/tor-doc-unix>#using">step two</a> of the
261) "Tor on Linux/Unix" instructions.
262) </p>
263) 
264) <p style="font-size: small">
265) The DNS name <code>deb.torproject.org</code> is actually a set of independent
266) servers in a DNS round robin configuration. If you for some reason cannot
267) access it you might try to use the name of one of its part instead. Try
268) <code>deb-master.torproject.org</code>,
269) <code>mirror.netcologne.de</code> or
270) <code>tor.mirror.youam.de</code>.
271) </p>
272) 
273) <hr />
274) 
275) <a id="apt-over-tor"></a>
276) <h2><a class="anchor" href="#apt-over-tor">Use Apt over Tor</a></h2>
277) 
278) <p>
279) <code>deb.torproject.org</code> is also served through via an onion service:
280) <a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a>
281) </p>
282) 
283) <p>
284) To use Apt with Tor the according apt transport needs to be installed:
285) </p>
286) <blockquote><pre>
287) &num; apt install apt-transport-tor
288) </pre></blockquote>
289) 
290) <p>
291) Then replace the address in the lines added before with, for example:
292) </p>
293) <blockquote><pre>
294) &num; For the stable version.
295) deb tor://sdscoq7snqtznauu.onion/torproject.org &lt;DISTRIBUTION&gt; main
296) 
297) &num; For the unstable version.
298) deb tor://sdscoq7snqtznauu.onion/torproject.org tor-nightly-master-&lt;DISTRIBUTION&gt; main
299) </pre></blockquote>
300) <p>
301) Now refresh your sources and try if it's still possible to install tor:
302) </p>
303) <blockquote><pre>
304) &num; apt update
305) &num; apt install tor
306) </pre></blockquote>
307) <p>
308) See <a href="https://onion.torproject.org/">onion.torproject.org</a>
309) for all torproject.org onion addresses.</p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

310) </p>
311) 
312) <!-- END MAIN COL -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

313)   </div>
314)   <div id = "sidecol">
315) #include "side.wmi"
316) #include "info.wmi"
317)   </div>
318)   <!-- END SIDECOL -->
319) </div>
320) <!-- END CONTENT -->