62636e8266d7195f1a2d2c8c4745ce04a33bd10e
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 = {
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

14) 'tor': { '_stable': {
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

15)                      'wheezy':  [ 'wheezy' ],
16)                      'jessie':  [ 'jessie' ],
Sebastian Hahn add stretch to debian downl...

Sebastian Hahn authored 8 years ago

17)                      'stretch': [ 'stretch' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

18)                      'sid':     [ 'sid' ],
19)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

20)                      'trusty':  [ 'trusty'],
21)                      'xenial':  [ 'xenial'],
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

22)                      'yakkety': [ 'yakkety'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

23)                      },
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

24)          'experimental-0.3.0.x': {
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

25)                      'wheezy':  [ 'wheezy' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

26)                      'jessie':  [ 'jessie' ],
Sebastian Hahn add stretch to debian downl...

Sebastian Hahn authored 8 years ago

27)                      'stretch': [ 'stretch' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

28)                      'sid':     [ 'sid' ],
29)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

30)                      'trusty':  [ 'trusty'],
31)                      'xenial':  [ 'xenial'],
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

32)                      'yakkety': [ 'yakkety'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

33)                      },
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

34)        },
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

35) 'tor (from source)': {
36)          '_stable': {
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

37)                      'wheezy':  [ 'wheezy' ],
38)                      'jessie':  [ 'jessie' ],
Sebastian Hahn add stretch to debian downl...

Sebastian Hahn authored 8 years ago

39)                      'stretch': [ 'stretch' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

40)                      'sid':     [ 'sid' ],
41)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

42)                      'trusty':  [ 'trusty'],
43)                      'xenial':  [ 'xenial'],
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

44)                      'yakkety': [ 'yakkety'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

45)                      },
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

46)          'experimental-0.3.0.x': {
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

47)                      'wheezy':  [ 'wheezy' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

48)                      'jessie':  [ 'jessie' ],
Sebastian Hahn add stretch to debian downl...

Sebastian Hahn authored 8 years ago

49)                      'stretch': [ 'stretch' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

50)                      'sid':     [ 'sid' ],
51)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

52)                      'trusty':  [ 'trusty'],
53)                      'xenial':  [ 'xenial'],
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

54)                      'yakkety': [ 'yakkety'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

55)                      },
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

56)        },
57) };
58) 
59) function init() {
60)     pkg = document.getElementById('package');
61)     for (soft in software) {
62)         if (soft != pkg.value) {
63)             option = document.createElement('option');
64)             option.value = soft;
65)             option.appendChild(document.createTextNode(soft.charAt(0).toUpperCase() + soft.slice(1)));
66)             pkg.appendChild(option);
67)         }
68)     }
69) 
70)     apt_get = document.getElementById('apt-get');
71)     para = document.createElement('p');
72)     para.id = 'sorry';
73)     para.style.display = 'none';
74)     apt_get.parentNode.insertBefore(para, apt_get);
75)     para.appendChild(document.createTextNode("Sorry, this version is not available.\n"));
76) 
77)     document.getElementById('selector').style.display = 'block';
78) 
79)     update();
80) }
81) 
82) function replaceText(src, txt) {
83)     while (src.firstChild)
84)         src.removeChild(src.firstChild);
85)     src.appendChild(document.createTextNode(txt));
86) }
87) 
88) function update() {
89)     pkg = document.getElementById('package');
90)     ver = document.getElementById('version');
91)     package = pkg.value;
92)     version = ver.value;
93)     distrib = document.getElementById('distrib').value;
94)     if (package != pkg.prev) {
95)         while (ver.firstChild)
96)             ver.removeChild(ver.firstChild);
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

97)         var selected;
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

98)         for (version in software[package]) {
99)             option = document.createElement('option');
100)             if (version[0] == '_') {
101)                 version = version.slice(1);
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

102)                 selected = version;
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

103)             }
104)             option.appendChild(document.createTextNode(version));
105)             option.value = version = version.replace(/ \(.*\)/,'');
106) //alert(version);
107)             ver.appendChild(option);
108)         }
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

109)         ver.value = version = selected || version;
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

110)         pkg.prev = package
111)     }
112)     try {
113)         keys = software[package][version][distrib];
114)     } catch (e) {
115)         try {
116)             keys = software[package]['_' + version][distrib];
117)         } catch (e) { };
118)     }
119)     src = document.getElementById('sources');
120)     txt = '';
121)     need_signed = false;
122)     source_install = false;
123)     target = '';
124)     for (i = 0; keys && (i < keys.length); i++) {
125) //alert(keys[i]);
126)         if (keys[i] in sources) {
127)             txt += sources[keys[i]];
128)             target = keys[i];
129)         } else {
130)             if (package.slice(-7, -1) == 'source') {
131)                 package = package.split(' ')[0];
Sebastian Hahn Always show deb-src entry o...

Sebastian Hahn authored 9 years ago

132)                 source_install = true;
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

133)             }
Sebastian Hahn Always show deb-src entry o...

Sebastian Hahn authored 9 years ago

134)             txt += "http://deb.torproject.org/torproject.org";
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

135)             txt += " ";
136)             txt += keys[i];
137)             txt += " main";
138)             need_signed = true;
139)             target = keys[i];
Sebastian Hahn Always show deb-src entry o...

Sebastian Hahn authored 9 years ago

140)             txt = "deb " + txt + "\ndeb-src " + txt;
Sebastian Hahn Show stable entry along wit...

Sebastian Hahn authored 9 years ago

141)             if (version != 'stable') {
142)                 txt2 = "http://deb.torproject.org/torproject.org";
143)                 txt2 += " ";
144)                 txt2 += package;
145)                 txt2 += "-";
146)                 txt2 += version;
147)                 txt2 += "-";
148)                 txt2 += keys[i];
149)                 txt2 += " main";
150)                 txt = txt + "\ndeb " + txt2 + "\ndeb-src " + txt2;
151)             }
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

152)         }
153)         txt += "\n";
154)     }
155)     replaceText(src, txt);
156)     document.getElementById('regular-install').style.display = source_install ? 'none' : 'block';
157)     document.getElementById('source-install').style.display = source_install ? 'block' : 'none';
158)     document.getElementById('source-install2').style.display = source_install ? 'block' : 'none';
159)     replaceText(document.getElementById('apt-package'), package);
160)     document.getElementById('apt-source').style.display = (keys && keys.length) ? 'block' : 'none';
161)     document.getElementById('apt-get').style.display = keys ? 'block' : 'none';
162)     document.getElementById('sorry').style.display = keys ? 'none' : 'block';
163) }
164) 
165) window.onload = init;
166) 
167) -->
168) </script>
169) 
170) 
171) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 11 years ago

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

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 10 years ago

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

Andrew Lewman authored 14 years ago

181) Debian sid, or Debian testing</a></h2>
182) <br />
183) 
184) <p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

187) as root.
188) </p>
189) 
190) <p>
191) Note that this might not always give you the latest stable Tor version, but
192) you will receive important security fixes. To make sure that you're running
193) the latest stable version of Tor, see option two below.
194) </p>
195) 
196) <p>
197) 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

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

199) instructions.
200) </p>
201) 
202) <hr />
203) 
204) <a id="ubuntu"></a>
205) <a id="packages"></a>
206) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
207) Debian</a></h2>
208) <br />
209) 
210) <p>
Sebastian Hahn Update Debian versions and...

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 14 years ago

214) </p>
215) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

222) </p>
223) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

224) <p>
225) 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

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

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

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

230) </p>
231) 
232) <div id="selector" style="display: none;">
233) <blockquote>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

234) I run
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

235) <select id="distrib" onchange="update()">
Peter Palfrader deb.tpo: update suites, II

Peter Palfrader authored 8 years ago

236) <option value="wheezy">Debian oldstable (wheezy)</option>
237) <option value="jessie" selected="selected">Debian stable (jessie)</option>
238) <option value="stretch">Debian testing (stretch)</option>
Sebastian Hahn sid is unstable

Sebastian Hahn authored 9 years ago

239) <option value="sid">Debian unstable (sid)</option>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

240) <option value="precise">Ubuntu Precise Pangolin</option>
241) <option value="trusty">Ubuntu Trusty Tahr</option>
Peter Palfrader deb.tpo: update suites, II

Peter Palfrader authored 8 years ago

242) <option value="xenial">Ubuntu Xenial Xerus</option>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

244) and want
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

245) <select id="package" onchange="update()"></select>
246) version
247) <select id="version" onchange="update()"></select>
248) </blockquote>
249) 
250) 
251) <div id="apt-source">
252) <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>
253) 
254) <blockquote><pre id="sources">deb http://deb.torproject.org/torproject.org wheezy main
255) </pre></blockquote>
256) </div>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

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

Sebastian Hahn authored 9 years ago

258) <div id="sig">
259) <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
260) <blockquote><pre>
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 8 years ago

261) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

262) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
263) </pre></blockquote>
264) </div>
265) 
266) 
267) <div id="apt-get">
268) <p>You can install it with the following commands:</p>
269) <blockquote><pre>$ apt-get update
270) <span id="regular-install">$ apt-get install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
271) <span id="source-install">$ apt-get install build-essential fakeroot devscripts
272) $ apt-get build-dep tor deb.torproject.org-keyring</span></pre></blockquote>
273) 
274) <div id="source-install2">
275) <p>
276) Then you can build Tor in ~/debian-packages:
277) </p>
278) <blockquote><pre>
279) $ mkdir ~/debian-packages; cd ~/debian-packages
280) $ apt-get source tor
281) $ cd tor-*
282) $ debuild -rfakeroot -uc -us
283) $ cd ..
284) </pre></blockquote>
285) <p>Now you can install the new package:</p>
286) <blockquote><pre>
287) $ sudo dpkg -i tor_*.deb
288) </pre></blockquote>
289) </div>
290) </div>
291) </div>
292) 
293) <noscript>
294) <p>
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

304) </p>
305) 
306) <p>
307) Then add the gpg key used to sign the packages by running the following
308) commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

309) <pre style="margin: 1.5em 0 1.5em 2em">
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 8 years ago

310) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

311) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
312) </pre>
Peter Palfrader mention our keyring package

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

325) apt-get install deb.torproject.org-keyring
326) </pre>
327) </p>
328) 
329) <p>
330) To finally install Tor just run:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

333) </pre>
334) </p>
335) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

338) <p>
339) 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

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

341) instructions.
342) </p>
343) 
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

366) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

372) </p>
373) 
374) <p>
375) Then run the following commands at your command prompt:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

376) <pre style="margin: 1.5em 0 1.5em 2em">
Roger Dingledine use the full keyid for the...

Roger Dingledine authored 8 years ago

377) gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

378) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
379) apt-get update
Peter Palfrader No need to explicitly ask f...

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

381) </pre>
382) </p>
383) 
384) <p>
385) 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

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

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

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

Andrew Lewman authored 14 years ago

400) # For the stable version.
401) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
402) 
403) # For the unstable version.
404) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Peter Palfrader experimental is 0.3.0.x now...

Peter Palfrader authored 7 years ago

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

Andrew Lewman authored 14 years ago

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

Matt Pagan authored 10 years ago

407) Substitute the name of your distro (wheezy, sid, trusty, ...) in place of &lt;DISTRIBUTION&gt;. Now refresh your sources by running (as root):
408) <pre style="margin: 1.5em 0 1.5em 2em">
409) apt-get update
410) </pre>
411) 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

412) packages needed to build Tor:
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) apt-get install build-essential fakeroot devscripts
415) apt-get build-dep tor
416) </pre>
417) Then you can build Tor in ~/debian-packages:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

419) mkdir ~/debian-packages; cd ~/debian-packages
420) apt-get source tor
421) cd tor-*
422) debuild -rfakeroot -uc -us
423) cd ..
424) </pre>
425) Now you can install the new package:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

427) sudo dpkg -i tor_*.deb
428) </pre>
429) </p>
430) 
431) <p>
432) 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

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

434) instructions.
435) </p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

437) 
438) <!-- END MAIN COL -->