7249d28fce4ce09e8871da740fb90529fde78b23
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 = {
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

14) 'tor': { '_stable': { 'squeeze': [ 'squeeze' ],
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)                      'lucid':   [ 'lucid'],
20)                      'precise': [ 'precise'],
21)                      'saucy':   [ 'saucy'],
Sebastian Hahn ... without breaking the sc...

Sebastian Hahn authored 8 years ago

22)                      'trusty':  [ 'trusty'], },
Sebastian Hahn update debian stuff more

Sebastian Hahn authored 8 years ago

23)          'experimental-0.2.7.x':    { 'wheezy':  [ 'wheezy' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

26)                      'sid':     [ 'sid' ],
27)                      'lucid':   [ 'lucid'],
28)                      'precise': [ 'precise'],
29)                      'saucy':   [ 'saucy'],
Sebastian Hahn ... without breaking the sc...

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

31)        },
Sebastian Hahn underscore means default. ouch

Sebastian Hahn authored 9 years ago

32) 'tor (from source)': { '_stable': { 'squeeze': [ 'squeeze' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

36)                      'sid':     [ 'sid' ],
37)                      'lucid':   [ 'lucid'],
38)                      'precise': [ 'precise'],
39)                      'saucy':   [ 'saucy'],
Sebastian Hahn ... without breaking the sc...

Sebastian Hahn authored 8 years ago

40)                      'trusty':  [ 'trusty'], },
Sebastian Hahn update debian stuff more

Sebastian Hahn authored 8 years ago

41)          'experimental-0.2.7.x':    { 'wheezy':  [ 'wheezy' ],
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 8 years ago

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

Sebastian Hahn authored 9 years ago

44)                      'sid':     [ 'sid' ],
45)                      'lucid':   [ 'lucid'],
46)                      'precise': [ 'precise'],
47)                      'saucy':   [ 'saucy'],
Sebastian Hahn ... without breaking the sc...

Sebastian Hahn authored 8 years ago

48)                      'trusty':  [ 'trusty'], },
Sebastian Hahn Update Debian page to inclu...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

145)         }
146)         txt += "\n";
147)     }
148)     replaceText(src, txt);
149)     document.getElementById('regular-install').style.display = source_install ? 'none' : 'block';
150)     document.getElementById('source-install').style.display = source_install ? 'block' : 'none';
151)     document.getElementById('source-install2').style.display = source_install ? 'block' : 'none';
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 13 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

Andrew Lewman authored 13 years ago

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

Roger Dingledine authored 9 years ago

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

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

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

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

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

Andrew Lewman authored 13 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>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

228) <select id="distrib" onchange="update()">
Sebastian Hahn update debian stuff more

Sebastian Hahn authored 8 years ago

229) <option value="squeeze">Debian oldoldstable (Squeeze)</option>
Sebastian Hahn Jessie is stable now

Sebastian Hahn authored 8 years ago

230) <option value="wheezy">Debian oldstable (Wheezy)</option>
231) <option value="jessie" selected="selected">Debian (Jessie)</option>
Sebastian Hahn sid is unstable

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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) </select>
Sebastian Hahn Try to fit form fields in o...

Sebastian Hahn authored 9 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

307) Now refresh your sources, running the following command (as root) at your
308) 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">
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

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

Peter Palfrader authored 12 years ago

319) apt-get install deb.torproject.org-keyring
320) </pre>
321) </p>
322) 
323) <p>
324) To finally install Tor just run:
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 tor
Andrew Lewman revisit the debian instruct...

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

361) 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 13 years ago

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

Peter Palfrader authored 13 years ago

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

Peter Palfrader authored 10 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

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

Andrew Lewman authored 13 years ago

394) # For the stable version.
395) deb-src http://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
396) 
397) # For the unstable version.
398) 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

399) 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 13 years ago

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

Matt Pagan authored 9 years ago

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

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

Peter Palfrader authored 12 years ago

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

Andrew Lewman authored 13 years ago

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

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

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

Sebastian Hahn authored 9 years ago

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

Andrew Lewman authored 13 years ago

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