Update debian.wml
Sebastian Hahn

Sebastian Hahn commited on 2009-08-20 19:06:13
Zeige 1 geänderte Dateien mit 46 Einfügungen und 11 Löschungen.


We now make people aware that using the packages from Lenny might
give them outdated Tors, but it mentions that there are security backports.

Based on patch by rudi_s from #tor (thanks!)
... ...
@@ -19,6 +19,12 @@ If you're using Debian stable (lenny), unstable (sid), or testing
19 19
 <tt>apt-get install tor tor-geoipdb</tt>
20 20
 </p>
21 21
 
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
+
22 28
 <p>
23 29
 Now Tor is installed and running. Move on to <a href="<page
24 30
 docs/tor-doc-unix>#privoxy">step two</a> of the "Tor on Linux/Unix"
... ...
@@ -30,7 +36,7 @@ instructions.
30 36
 <a id="ubuntu"></a>
31 37
 <a id="packages"></a>
32 38
 <h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
33
-Debian etch</a></h2>
39
+Debian</a></h2>
34 40
 <br />
35 41
 
36 42
 <p>
... ...
@@ -43,14 +49,14 @@ fixes.
43 49
 You'll need to set up our package repository before you can fetch
44 50
 Tor. First, you need to figure out the name of your distribution. If
45 51
 you're using Ubuntu 9.04, it's "jaunty". Ubuntu 8.10 is "intrepid",
46
-and Ubuntu 8.04 is "hardy". If you're using Debian etch, it's "etch".
47
-Then add these lines to your <tt>/etc/apt/sources.list</tt> file:<br />
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 />
48 55
 <pre>
49 56
 deb     http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
50
-deb-src http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
51 57
 </pre>
52
-where you substitute the above word (etch, jaunty, intrepid, hardy)
53
-in place of &lt;DISTRIBUTION&gt;.
58
+where you substitute the above word (etch, lenny, sid, jaunty, intrepid,
59
+hardy) in place of &lt;DISTRIBUTION&gt;.
54 60
 </p>
55 61
 
56 62
 <p>
... ...
@@ -82,9 +88,7 @@ features and more bugs), you need to add a different set of lines to
82 88
 your <tt>/etc/apt/sources.list</tt> file:<br />
83 89
 <pre>
84 90
 deb     http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
85
-deb-src http://mirror.noreply.org/pub/tor &lt;DISTRIBUTION&gt; main
86 91
 deb     http://mirror.noreply.org/pub/tor experimental-0.2.1.x-&lt;DISTRIBUTION&gt; main
87
-deb-src http://mirror.noreply.org/pub/tor experimental-0.2.1.x-&lt;DISTRIBUTION&gt; main
88 92
 </pre>
89 93
 where you substitute the name of your distro (etch, lenny, sid, jaunty,
90 94
 intrepid, hardy) in place of &lt;DISTRIBUTION&gt;.
... ...
@@ -113,9 +117,40 @@ instructions.
113 117
 <br />
114 118
 
115 119
 <p>
116
-If you want to build your own debs from source, see our <a
117
-href="https://wiki.torproject.org/noreply/TheOnionRouter/TorOnDebian#BuildFromSource">guide
118
-for building debs</a>.
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
128
+deb-src http://mirror.noreply.org/pub/tor experimental-0.2.1.x-&lt;DISTRIBUTION&gt; main
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.
119 154
 </p>
120 155
 
121 156
 <hr />
122 157