docs/debian: mention apt-transport-tor ; unhide onion address
Traumschule

Traumschule commited on 2018-08-22 08:50:27
Zeige 1 geänderte Dateien mit 48 Einfügungen und 53 Löschungen.

... ...
@@ -87,13 +87,14 @@ version
87 87
 
88 88
 
89 89
 <div id="apt-source">
90
-<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>
90
+<p>You need to add the following entries to <code>/etc/apt/sources.list</code> or a new file in
91
+<code>/etc/apt/sources.list.d/</code>:</p>
91 92
 
92 93
 <blockquote><pre id="sources">deb https://deb.torproject.org/torproject.org jessie main
93 94
 </pre></blockquote>
94 95
 </div>
95 96
 
96
-<p>Note: To use this source line in <i>/etc/apt/sources.list</i> The <a
97
+<p>Note: To use source lines with https:// in <i>/etc/apt/sources.list</i> the <a
97 98
 href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
98 99
 package</a> is required. Install it with
99 100
 <blockquote><pre>
... ...
@@ -101,6 +102,12 @@ apt install apt-transport-https
101 102
 </pre></blockquote>
102 103
 to enable the usage of 'deb https://foo distro main' lines in the /etc/apt/sources.list so that all package managers using the libapt-pkg library can access metadata and packages available in sources accessible over https (Hypertext Transfer Protocol Secure).</p>
103 104
 
105
+<p>To use Apt with Tor later replace <tt>https://</tt> with <tt>tor://</tt> and run
106
+<blockquote><pre>
107
+apt install apt-transport-tor
108
+</pre></blockquote>
109
+</p>
110
+
104 111
 <div id="sig">
105 112
 <p>Then add the gpg key used to sign the packages by running the following commands at your command prompt:</p>
106 113
 <blockquote><pre>
... ...
@@ -112,15 +119,13 @@ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
112 119
 
113 120
 <div id="apt-get">
114 121
 <p>You can install it with the following commands:</p>
115
-<blockquote><pre>$ apt update
116
-<span id="regular-install">$ apt install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
122
+<blockquote><pre>apt update
123
+<span id="regular-install">apt install <span id="apt-package">tor</span> deb.torproject.org-keyring</span>
117 124
 <span id="source-install">$ apt install build-essential fakeroot devscripts
118 125
 $ apt build-dep tor deb.torproject.org-keyring</span></pre></blockquote>
119 126
 
120 127
 <div id="source-install2">
121
-<p>
122
-Then you can build Tor in ~/debian-packages:
123
-</p>
128
+<p>Then you can build Tor in ~/debian-packages:</p>
124 129
 <blockquote><pre>
125 130
 $ mkdir ~/debian-packages; cd ~/debian-packages
126 131
 $ apt source tor
... ...
@@ -149,6 +154,30 @@ or whatever it is)
149 154
 in place of &lt;DISTRIBUTION&gt;.
150 155
 </p>
151 156
 
157
+<p>
158
+If you want to use the <a href="<page download/download-unix>#packagediff">development branch</a> of Tor 
159
+instead (more features and more bugs), you need add a different set of lines to your 
160
+<i>/etc/apt/sources.list</i> file:<br />
161
+<pre style="margin: 1.5em 0 1.5em 2em">
162
+deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
163
+deb     https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
164
+</pre>
165
+</p>
166
+
167
+<p>Note: To use source lines with <tt>https://</tt> in <i>/etc/apt/sources.list</i> the <a
168
+href="https://packages.debian.org/stretch/apt-transport-https">apt-transport-https
169
+package</a> is required. Install it with
170
+<blockquote><pre>
171
+apt install apt-transport-https
172
+</pre></blockquote>
173
+to enable the usage of 'deb https://foo distro main' lines in the /etc/apt/sources.list so that all package managers using the libapt-pkg library can access metadata and packages available in sources accessible over https (Hypertext Transfer Protocol Secure).</p>
174
+
175
+<p>To use Apt with Tor later replace <tt>https://</tt> with <tt>tor://</tt> and run 
176
+<blockquote><pre>
177
+apt install apt-transport-tor
178
+</pre></blockquote>
179
+</p>
180
+
152 181
 <p>
153 182
 Then add the gpg key used to sign the packages by running the following
154 183
 commands at your command prompt:
... ...
@@ -166,16 +195,9 @@ If there are no errors you're good to continue.
166 195
 
167 196
 <p>
168 197
 We provide a Debian package to help you keep our signing key current.  It is
169
-recommended you use it.  Install it using
198
+recommended you use it.  Install it along with tor using
170 199
 <pre style="margin: 1.5em 0 1.5em 2em">
171
-apt install deb.torproject.org-keyring
172
-</pre>
173
-</p>
174
-
175
-<p>
176
-To finally install Tor just run:
177
-<pre style="margin: 1.5em 0 1.5em 2em">
178
-apt install tor
200
+apt install tor deb.torproject.org-keyring
179 201
 </pre>
180 202
 </p>
181 203
 
... ...
@@ -187,7 +209,6 @@ docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
187 209
 instructions.
188 210
 </p>
189 211
 
190
-<noscript>
191 212
 <p style="font-size: small">
192 213
 The DNS name <code>deb.torproject.org</code> is actually a set of independent
193 214
 servers in a DNS round robin configuration.  If you for some reason cannot
... ...
@@ -198,46 +219,20 @@ access it you might try to use the name of one of its part instead.  Try
198 219
 </p>
199 220
 
200 221
 <p><code>deb.torproject.org</code> is also served through now also served via onion service:
201
-<a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a>.
222
+<a href="http://sdscoq7snqtznauu.onion">http://sdscoq7snqtznauu.onion/</a> To use the onion service with 
223
+apt, replace the address in the previously added lines:
224
+<pre style="margin: 1.5em 0 1.5em 2em">.
225
+# For the stable version.
226
+deb tor://sdscoq7snqtznauu.onion/torproject.org buster main
227
+
228
+# For the unstable version.
229
+deb tor://sdscoq7snqtznauu.onion/torproject.org tor-nightly-master-&lt;DISTRIBUTION&gt; main
230
+</pre>
202 231
 <br />
203 232
 See <a href="https://onion.torproject.org/">https://onion.torproject.org</a> for all
204 233
 torproject.org onion addresses.</p>
205 234
 
206
-<hr />
207
-
208
-<a id="development"></a>
209
-<h2><a class="anchor" href="#development">Option three: Using the
210
-development branch of Tor on Debian or Ubuntu</a></h2>
211
-<br />
212
-
213
-<p>If you want to use the <a href="<page
214
-download/download-unix>#packagediff">development branch</a> of Tor instead
215
-(more features and more bugs), you need to add a different set of lines
216
-to your <tt>/etc/apt/sources.list</tt> file:<br />
217
-<pre style="margin: 1.5em 0 1.5em 2em">
218
-deb     https://deb.torproject.org/torproject.org &lt;DISTRIBUTION&gt; main
219
-deb     https://deb.torproject.org/torproject.org tor-experimental-0.3.4.x-&lt;DISTRIBUTION&gt; main
220
-</pre>
221
-where you again substitute the name of your distro (stretch, buster,
222
-sid, xenial, ...) in place of
223
-&lt;DISTRIBUTION&gt;.
224
-</p>
225
-
226
-<p>
227
-Then run the following commands at your command prompt:
228
-<pre style="margin: 1.5em 0 1.5em 2em">
229
-gpg --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
230
-gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
231
-apt update
232
-apt install tor deb.torproject.org-keyring
233
-</pre>
234
-</p>
235
-
236
-<p>
237
-Now Tor is installed and running. Move on to <a href="<page
238
-docs/tor-doc-unix>#using">step two</a> of the "Tor on Linux/Unix"
239
-instructions.
240
-</p>
235
+<noscript>
241 236
 
242 237
 <hr />
243 238
 
244 239