6e043d0d7c4bc4b9ea1639a03c3f3af128336665
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

1) ## translation metadata
2) # Revision: $Revision: 19802 $
3) # Translation-Priority: 3-low
4) 
5) #include "head.wmi" TITLE="Tor: Debian/Ubuntu Instructions"
6) 
7) <div class="center">
8) 
9) <div class="main-column">
10) 
11) <a id="debian"></a>
12) <h2><a class="anchor" href="#debian">Option one: Tor on Debian lenny,
13) Debian sid, or Debian testing</a></h2>
14) <br />
15) 
16) <p>
17) If you're using Debian stable (lenny), unstable (sid), or testing
18) (squeeze), just run<br />
19) <tt>apt-get install tor tor-geoipdb</tt>
20) </p>
21) 
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

22) <p>
23) Note that this might not always give you the latest stable Tor version, but
24) you will receive important security fixes. To make sure that you're running
25) the latest stable version of Tor, see option two below.
26) </p>
27) 
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

28) <p>
29) Now Tor is installed and running. Move on to <a href="<page
30) docs/tor-doc-unix>#privoxy">step two</a> of the "Tor on Linux/Unix"
31) instructions.
32) </p>
33) 
34) <hr />
35) 
36) <a id="ubuntu"></a>
37) <a id="packages"></a>
38) <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

39) Debian</a></h2>
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

40) <br />
41) 
42) <p>
43) <b>Do not use the packages in Ubuntu's universe.</b> They are unmaintained
44) and out of date. That means you'll be missing stability and security
45) fixes.
46) </p>
47) 
48) <p>
49) You'll need to set up our package repository before you can fetch
50) Tor. First, you need to figure out the name of your distribution. If
51) you're using Ubuntu 9.04, it's "jaunty". Ubuntu 8.10 is "intrepid",
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

52) and Ubuntu 8.04 is "hardy". If you're using Debian Etch, it's "etch", Debian
53) Lenny is "lenny". Then add this line to your <tt>/etc/apt/sources.list</tt>
54) file:<br />
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

55) <pre>
56) deb     http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
57) </pre>
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

58) where you substitute the above word (etch, lenny, sid, jaunty, intrepid,
59) hardy) in place of &lt;DISTRIBUTION&gt;.
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

60) </p>
61) 
62) <p>
63) Then run
64) <pre>
65) gpg --keyserver keys.gnupg.net --recv 94C09C7F
66) gpg --export 94C09C7F | sudo apt-key add -
67) apt-get update
68) apt-get install tor tor-geoipdb
69) </pre>
Runa A. Sandvik closed tags

Runa A. Sandvik authored 15 years ago

70) </p>
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

71) 
72) <p>
73) Now Tor is installed and running. Move on to <a href="<page
74) docs/tor-doc-unix>#privoxy">step two</a> of the "Tor on Linux/Unix"
75) instructions.
76) </p>
77) 
78) <hr />
79) 
80) <a id="development"></a>
81) <h2><a class="anchor" href="#development">Option three: Using the
82) development branch of Tor on Debian or Ubuntu</a></h2>
83) <br />
84) 
85) <p>If you want to use the <a href="<page
86) download>#packagediff">development branch</a> of Tor instead (more
87) features and more bugs), you need to add a different set of lines to
88) your <tt>/etc/apt/sources.list</tt> file:<br />
89) <pre>
90) deb     http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
Sebastian Hahn take back the update to 0.2...

Sebastian Hahn authored 15 years ago

91) deb     http://mirror.noreply.org/pub/tor experimental-0.2.1.x-&lt;DISTRIBUTION&gt; main
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

92) </pre>
93) where you substitute the name of your distro (etch, lenny, sid, jaunty,
94) intrepid, hardy) in place of &lt;DISTRIBUTION&gt;.
95) </p>
96) 
97) <p>
98) Then run
99) <pre>
100) gpg --keyserver keys.gnupg.net --recv 94C09C7F
101) gpg --export 94C09C7F | sudo apt-key add -
102) apt-get update
103) apt-get install tor tor-geoipdb
104) </pre>
Runa A. Sandvik closed tags

Runa A. Sandvik authored 15 years ago

105) </p>
Roger Dingledine migrate the debian directio...

Roger Dingledine authored 15 years ago

106) 
107) <p>
108) Now Tor is installed and running. Move on to <a href="<page
109) docs/tor-doc-unix>#privoxy">step two</a> of the "Tor on Linux/Unix"
110) instructions.
111) </p>
112) 
113) <hr />
114) 
115) <a id="source"></a>
116) <h2><a class="anchor" href="#source">Building from source</a></h2>
117) <br />
118) 
119) <p>
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

120) If you want to build your own debs from source you must first add an
121) appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
122) <pre>
123) # For the stable version.
124) deb-src http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
125) 
126) # For the unstable version.
127) deb-src http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
Sebastian Hahn take back the update to 0.2...

Sebastian Hahn authored 15 years ago

128) deb-src http://mirror.noreply.org/pub/tor experimental-0.2.1.x-&lt;DISTRIBUTION&gt; main
Sebastian Hahn Update debian.wml

Sebastian Hahn authored 15 years ago

129) </pre>
130) You also need to install the necessary packages to build your own debs and the
131) packages needed to build Tor:
132) <pre>
133) apt-get install build-essential fakeroot devscripts
134) apt-get build-dep tor
135) </pre>
136) Then you can build Tor in ~/debian-packages:
137) <pre>
138) mkdir ~/debian-packages; cd ~/debian-packages
139) apt-get source tor
140) cd tor-*
141) debuild -rfakeroot -uc -us
142) cd ..
143) </pre>
144) Now you can install the new package:
145) <pre>
146) sudo dpkg -i tor_*.deb
147) </pre>
148) </p>
149) 
150) <p>
151) Now Tor is installed and running. Move on to <a href="<page
152) docs/tor-doc-unix>#privoxy">step two</a> of the "Tor on Linux/Unix"
153) instructions.