6bfcba96f0a969b23f2b2713873ed93d0277b47f
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"
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

6) 
7) <script>
8) <!--
9) // This code is based on the http://mozilla.debian.net sources.list
10) // generator as originally written by Mike Hommey. It is licensed under
11) // the terms of the GNU GPLv2, http://www.gnu.org/licenses/gpl-2.0.html.
12) var sources = {};
13) var software = {
14) 'tor': { 'experimental-0.2.6.x': { 'squeeze': [ 'squeeze' ],
15)                      'wheezy':  [ 'wheezy' ],
16)                      'jessie':  [ 'jessie' ],
17)                      'sid':     [ 'sid' ],
18)                      'lucid':   [ 'lucid'],
19)                      'precise': [ 'precise'],
20)                      'saucy':   [ 'saucy'],
21)                      'trusty':  [ 'trusty'],
22)                      'utopic':  [ 'utopic'] },
23)          'stable':    { 'squeeze': [ 'squeeze' ],
24)                      'wheezy':  [ 'wheezy' ],
25)                      'jessie':  [ 'jessie' ],
26)                      'sid':     [ 'sid' ],
27)                      'lucid':   [ 'lucid'],
28)                      'precise': [ 'precise'],
29)                      'saucy':   [ 'saucy'],
30)                      'trusty':  [ 'trusty'],
31)                      'utopic':  [ 'utopic'] },
32)        },
33) 'tor (from source)': { 'experimental-0.2.6.x': { 'squeeze': [ 'squeeze' ],
34)                      'wheezy':  [ 'wheezy' ],
35)                      'jessie':  [ 'jessie' ],
36)                      'sid':     [ 'sid' ],
37)                      'lucid':   [ 'lucid'],
38)                      'precise': [ 'precise'],
39)                      'saucy':   [ 'saucy'],
40)                      'trusty':  [ 'trusty'],
41)                      'utopic':  [ 'utopic'] },
42)          'stable':    { 'squeeze': [ 'squeeze' ],
43)                      'wheezy':  [ 'wheezy' ],
44)                      'jessie':  [ 'jessie' ],
45)                      'sid':     [ 'sid' ],
46)                      'lucid':   [ 'lucid'],
47)                      'precise': [ 'precise'],
48)                      'saucy':   [ 'saucy'],
49)                      'trusty':  [ 'trusty'],
50)                      'utopic':  [ 'utopic'] },
51)        },
52) };
53) 
54) function init() {
55)     pkg = document.getElementById('package');
56)     for (soft in software) {
57)         if (soft != pkg.value) {
58)             option = document.createElement('option');
59)             option.value = soft;
60)             option.appendChild(document.createTextNode(soft.charAt(0).toUpperCase() + soft.slice(1)));
61)             pkg.appendChild(option);
62)         }
63)     }
64) 
65)     apt_get = document.getElementById('apt-get');
66)     para = document.createElement('p');
67)     para.id = 'sorry';
68)     para.style.display = 'none';
69)     apt_get.parentNode.insertBefore(para, apt_get);
70)     para.appendChild(document.createTextNode("Sorry, this version is not available.\n"));
71) 
72)     document.getElementById('selector').style.display = 'block';
73) 
74)     update();
75) }
76) 
77) function replaceText(src, txt) {
78)     while (src.firstChild)
79)         src.removeChild(src.firstChild);
80)     src.appendChild(document.createTextNode(txt));
81) }
82) 
83) function update() {
84)     pkg = document.getElementById('package');
85)     ver = document.getElementById('version');
86)     package = pkg.value;
87)     version = ver.value;
88)     distrib = document.getElementById('distrib').value;
89)     if (package != pkg.prev) {
90)         while (ver.firstChild)
91)             ver.removeChild(ver.firstChild);
92)         var selected;
93)         for (version in software[package]) {
94)             option = document.createElement('option');
95)             if (version[0] == '_') {
96)                 version = version.slice(1);
97)                 selected = version;
98)             }
99)             option.appendChild(document.createTextNode(version));
100)             option.value = version = version.replace(/ \(.*\)/,'');
101) //alert(version);
102)             ver.appendChild(option);
103)         }
104)         ver.value = version = selected || version;
105)         pkg.prev = package
106)     }
107)     try {
108)         keys = software[package][version][distrib];
109)     } catch (e) {
110)         try {
111)             keys = software[package]['_' + version][distrib];
112)         } catch (e) { };
113)     }
114)     src = document.getElementById('sources');
115)     txt = '';
116)     need_signed = false;
117)     source_install = false;
118)     target = '';
119)     for (i = 0; keys && (i < keys.length); i++) {
120) //alert(keys[i]);
121)         if (keys[i] in sources) {
122)             txt += sources[keys[i]];
123)             target = keys[i];
124)         } else {
125)             txt += "deb";
126)             if (package.slice(-7, -1) == 'source') {
127)                 txt += '-src';
128)                 package = package.split(' ')[0];
129)                 source_install = true
130)             }
131)             txt += " http://deb.torproject.org/torproject.org";
132)             txt += " ";
133)             if (version != 'stable') {
134)                 txt += package;
135)                 txt += "-";
136)                 txt += version;
137)                 txt += "-";
138)             }
139)             txt += keys[i];
140)             txt += " main";
141)             need_signed = true;
142)             target = keys[i];
143)         }
144)         txt += "\n";
145)     }
146)     replaceText(src, txt);
147)     //document.getElementById('signed').style.display = need_signed ? 'block' : 'none';
148)     document.getElementById('regular-install').style.display = source_install ? 'none' : 'block';
149)     document.getElementById('source-install').style.display = source_install ? 'block' : 'none';
150)     document.getElementById('source-install2').style.display = source_install ? 'block' : 'none';
151)     //replaceText(document.getElementById('apt-target'), (keys && keys.length && target != distrib && target != distrib + '-security') ? ' -t ' + target : '');
152)     replaceText(document.getElementById('apt-package'), package);
153)     document.getElementById('apt-source').style.display = (keys && keys.length) ? 'block' : 'none';
154)     document.getElementById('apt-get').style.display = keys ? 'block' : 'none';
155)     document.getElementById('sorry').style.display = keys ? 'none' : 'block';
156) }
157) 
158) window.onload = init;
159) 
160) -->
161) </script>
162) 
163) 
164) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 11 years ago

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

Andrew Lewman authored 14 years ago

172) <a id="debian"></a>
Roger Dingledine future-proof it as suggeste...

Roger Dingledine authored 10 years ago

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

Andrew Lewman authored 14 years ago

174) Debian sid, or Debian testing</a></h2>
175) <br />
176) 
177) <p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

178) If you're using Debian, just run
179) </blockquote><pre>  apt-get install tor </pre></blockquote>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

180) as root.
181) </p>
182) 
183) <p>
184) Note that this might not always give you the latest stable Tor version, but
185) you will receive important security fixes. To make sure that you're running
186) the latest stable version of Tor, see option two below.
187) </p>
188) 
189) <p>
190) 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

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

192) instructions.
193) </p>
194) 
195) <hr />
196) 
197) <a id="ubuntu"></a>
198) <a id="packages"></a>
199) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
200) Debian</a></h2>
201) <br />
202) 
203) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 14 years ago

207) </p>
208) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

215) </p>
216) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

217) <p>
218) 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

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

220) quick command to run is <tt>lsb_release -c</tt> or <tt>cat /etc/debian_version</tt>.
Peter Palfrader Stop listing ancient ubuntu...

Peter Palfrader authored 10 years ago

221) If in doubt about your Debian version, check <a href="http://www.debian.org/releases/">the Debian website</a>.
222) For Ubuntu, ask <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

223) </p>
224) 
225) <div id="selector" style="display: none;">
226) <blockquote>
227) I'm running
228) <select id="distrib" onchange="update()">
229) <option value="squeeze">Debian oldstable (Squeeze)</option>
230) <option value="wheezy" selected="selected">Debian stable (Wheezy)</option>
231) <option value="jessie">Debian testing (Jessie)</option>
232) <option value="sid">Debian sid</option>
233) <option value="lucid">Ubuntu Lucid Lynx</option>
234) <option value="precise">Ubuntu Precise Pangolin</option>
235) <option value="saucy">Ubuntu Saucy Salamander</option>
236) <option value="trusty">Ubuntu Trusty Tahr</option>
237) <option value="utopic">Ubuntu Utopic Unicorn</option>
238) </select>
239) and installing
240) <select id="package" onchange="update()"></select>
241) version
242) <select id="version" onchange="update()"></select>
243) </blockquote>
244) 
245) 
246) <div id="apt-source">
247) <p>You need to add the following entry in <code>/etc/apt/sources.list</code> or a new file in <code>/etc/apt/sources.list.d/</code>:</p>
248) 
249) <blockquote><pre id="sources">deb http://deb.torproject.org/torproject.org wheezy main
250) </pre></blockquote>
251) </div>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

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

Sebastian Hahn authored 9 years ago

253) <div id="sig">
254) <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
255) <blockquote><pre>
256) gpg --keyserver keys.gnupg.net --recv 886DDD89
257) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
258) </pre></blockquote>
259) </div>
260) 
261) 
262) <div id="apt-get">
263) <p>You can install it with the following commands:</p>
264) <blockquote><pre>$ apt-get update
265) <span id="regular-install">$ apt-get install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
266) <span id="source-install">$ apt-get install build-essential fakeroot devscripts
267) $ apt-get build-dep tor deb.torproject.org-keyring</span></pre></blockquote>
268) 
269) <div id="source-install2">
270) <p>
271) Then you can build Tor in ~/debian-packages:
272) </p>
273) <blockquote><pre>
274) $ mkdir ~/debian-packages; cd ~/debian-packages
275) $ apt-get source tor
276) $ cd tor-*
277) $ debuild -rfakeroot -uc -us
278) $ cd ..
279) </pre></blockquote>
280) <p>Now you can install the new package:</p>
281) <blockquote><pre>
282) $ sudo dpkg -i tor_*.deb
283) </pre></blockquote>
284) </div>
285) </div>
286) </div>
287) 
288) <noscript>
289) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

290) Then add this line to your
291) <tt>/etc/apt/sources.list</tt>
292) file:<br />
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

296) where you put the codename of your distribution (i.e. lenny, sid,
Peter Palfrader s/maverick/saucy/

Peter Palfrader authored 10 years ago

297) saucy or whatever it is)
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

299) </p>
300) 
301) <p>
302) Then add the gpg key used to sign the packages by running the following
303) commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

312) </pre>
313) If there are no errors you're good to continue.
314) </p>
315) 
316) <p>
317) We provide a Debian package to help you keep our signing key current.  It is
318) recommended you use it.  Install it using
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

320) apt-get install deb.torproject.org-keyring
321) </pre>
322) </p>
323) 
324) <p>
325) To finally install Tor just run:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

328) </pre>
329) </p>
330) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

331) </noscript>
332) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

333) <p>
334) 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

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

336) instructions.
337) </p>
338) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

340) <p style="font-size: small">
341) The DNS name <code>deb.torproject.org</code> is actually a set of independent
342) servers in a DNS round robin configuration.  If you for some reason cannot
343) access it you might try to use the name of one of its part instead.  Try
344) <code>deb-master.torproject.org</code>,
345) <code>mirror.netcologne.de</code> or
346) <code>tor.mirror.youam.de</code>.
347) </p>
348) 
349) <hr />
350) 
351) <a id="development"></a>
352) <h2><a class="anchor" href="#development">Option three: Using the
353) development branch of Tor on Debian or Ubuntu</a></h2>
354) <br />
355) 
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

361) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Sebastian Hahn We have 0.2.6 packages now,...

Sebastian Hahn authored 9 years ago

362) deb     http://deb.torproject.org/torproject.org tor-experimental-0.2.6.x-&lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

363) </pre>
Peter Palfrader we no longer do intrepid an...

Peter Palfrader authored 13 years ago

364) where you again substitute the name of your distro (lenny,
Peter Palfrader s/maverick/saucy/

Peter Palfrader authored 10 years ago

365) sid, saucy, ...) in place of
Andrew Lewman add a suggestion from Spenc...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

367) </p>
368) 
369) <p>
370) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

376) </pre>
377) </p>
378) 
379) <p>
380) 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

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

382) instructions.
383) </p>
384) 
385) <hr />
386) 
387) <a id="source"></a>
388) <h2><a class="anchor" href="#source">Building from source</a></h2>
389) <br />
390) 
391) <p>
392) If you want to build your own debs from source you must first add an
393) 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

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

Andrew Lewman authored 14 years ago

395) # For the stable version.
396) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
397) 
398) # For the unstable version.
399) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Sebastian Hahn We have 0.2.6 packages now,...

Sebastian Hahn authored 9 years ago

400) deb-src http://deb.torproject.org/torproject.org tor-experimental-0.2.6.x-&lt;DISTRIBUTION&gt; main
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

401) </pre>
Matt Pagan We should tell people build...

Matt Pagan authored 10 years ago

402) Substitute the name of your distro (wheezy, sid, trusty, ...) in place of &lt;DISTRIBUTION&gt;. Now refresh your sources by running (as root):
403) <pre style="margin: 1.5em 0 1.5em 2em">
404) apt-get update
405) </pre>
406) You also need to install the necessary packages to build your own debs and the 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

407) packages needed to build Tor:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

409) apt-get install build-essential fakeroot devscripts
410) apt-get build-dep tor
411) </pre>
412) Then you can build Tor in ~/debian-packages:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

414) mkdir ~/debian-packages; cd ~/debian-packages
415) apt-get source tor
416) cd tor-*
417) debuild -rfakeroot -uc -us
418) cd ..
419) </pre>
420) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

422) sudo dpkg -i tor_*.deb
423) </pre>
424) </p>
425) 
426) <p>
427) 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

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

429) instructions.
430) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

431) </noscript>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

432) 
433) <!-- END MAIN COL -->