d426ebf8885e4a69b1ce1f1ae611352111453bf3
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'],
22)                      },
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 8 years ago

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

Peter Palfrader authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

38)                      'sid':     [ 'sid' ],
39)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

40)                      'trusty':  [ 'trusty'],
41)                      'xenial':  [ 'xenial'],
42)                      },
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 8 years ago

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

Peter Palfrader authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

47)                      'sid':     [ 'sid' ],
48)                      'precise': [ 'precise'],
Peter Palfrader deb.tpo: update suites

Peter Palfrader authored 8 years ago

49)                      'trusty':  [ 'trusty'],
50)                      'xenial':  [ 'xenial'],
51)                      },
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

94)         for (version in software[package]) {
95)             option = document.createElement('option');
96)             if (version[0] == '_') {
97)                 version = version.slice(1);
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

99)             }
100)             option.appendChild(document.createTextNode(version));
101)             option.value = version = version.replace(/ \(.*\)/,'');
102) //alert(version);
103)             ver.appendChild(option);
104)         }
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

131)             txt += " ";
132)             txt += keys[i];
133)             txt += " main";
134)             need_signed = true;
135)             target = keys[i];
Sebastian Hahn Always show deb-src entry o...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 11 years ago

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

Andrew Lewman authored 14 years ago

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

Roger Dingledine authored 10 years ago

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

Andrew Lewman authored 14 years ago

177) Debian sid, or Debian testing</a></h2>
178) <br />
179) 
180) <p>
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

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

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

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 14 years ago

210) </p>
211) 
Roger Dingledine Raspbian is not Debian.

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

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

Roger Dingledine authored 11 years ago

218) </p>
219) 
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 14 years ago

220) <p>
221) 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

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

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

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

226) </p>
227) 
228) <div id="selector" style="display: none;">
229) <blockquote>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 8 years ago

232) <option value="wheezy">Debian oldstable (wheezy)</option>
233) <option value="jessie" selected="selected">Debian stable (jessie)</option>
234) <option value="stretch">Debian testing (stretch)</option>
Sebastian Hahn sid is unstable

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Peter Palfrader authored 8 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

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

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Sebastian Hahn authored 8 years ago

363) 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 14 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

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

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

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

Andrew Lewman authored 14 years ago

396) # For the stable version.
397) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
398) 
399) # For the unstable version.
400) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
Sebastian Hahn Update debian packge with 0...

Sebastian Hahn authored 8 years ago

401) 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 14 years ago

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

Matt Pagan authored 10 years ago

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

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

410) apt-get install build-essential fakeroot devscripts
411) apt-get build-dep tor
412) </pre>
413) Then you can build Tor in ~/debian-packages:
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 14 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 14 years ago

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

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

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 14 years ago

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