3c84d62498f289083b36e229f88e4cdc0c3e9bdb
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"
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 7 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 7 years ago

20)                      'trusty':  [ 'trusty'],
21)                      'wily':    [ 'wily'],
22)                      'xenial':  [ 'xenial'],
23)                      },
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 7 years ago

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

Peter Palfrader authored 7 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 7 years ago

30)                      'trusty':  [ 'trusty'],
31)                      'wily':    [ 'wily'],
32)                      'xenial':  [ 'xenial'],
33)                      },
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 7 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 7 years ago

42)                      'trusty':  [ 'trusty'],
43)                      'wily':    [ 'wily'],
44)                      'xenial':  [ 'xenial'],
45)                      },
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 7 years ago

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

Peter Palfrader authored 7 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 7 years ago

52)                      'trusty':  [ 'trusty'],
53)                      'wily':    [ 'wily'],
54)                      'xenial':  [ 'xenial'],
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 13 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

Andrew Lewman authored 13 years ago

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

Roger Dingledine authored 9 years ago

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

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

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

Roger Dingledine authored 10 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 10 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 10 years ago

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

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

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

305) </p>
306) 
307) <p>
308) Then add the gpg key used to sign the packages by running the following
309) commands at your 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 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

339) <p>
340) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

367) deb     http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

382) </pre>
383) </p>
384) 
385) <p>
386) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

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

Andrew Lewman authored 13 years ago

401) # For the stable version.
402) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
403) 
404) # For the unstable version.
405) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 7 years ago

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

Andrew Lewman authored 13 years ago

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

Matt Pagan authored 9 years ago

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

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

415) apt-get install build-essential fakeroot devscripts
416) apt-get build-dep tor
417) </pre>
418) Then you can build Tor in ~/debian-packages:
Peter Palfrader Fix the <pre>s in debian

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

428) sudo dpkg -i tor_*.deb
429) </pre>
430) </p>
431) 
432) <p>
433) Now Tor is installed and running. Move on to <a href="<page
Andrew Lewman update the step two link.

Andrew Lewman authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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