2010-07-09 01:55:22 +00:00
|
|
|
## translation metadata
|
2010-10-27 10:31:57 +00:00
|
|
|
# Revision: $Revision$
|
2010-07-09 01:55:22 +00:00
|
|
|
# Translation-Priority: 3-low
|
|
|
|
|
|
|
|
#include "head.wmi" TITLE="Tor Project: Debian/Ubuntu Instructions" CHARSET="UTF-8"
|
|
|
|
<div id="content" class="clearfix">
|
|
|
|
<div id="breadcrumbs">
|
2010-08-12 15:17:47 +00:00
|
|
|
<a href="<page index>">Home » </a>
|
2010-07-09 01:55:22 +00:00
|
|
|
<a href="<page docs/documentation>">Documentation » </a>
|
|
|
|
<a href="<page docs/debian>">Debian/Ubuntu Instructions</a>
|
|
|
|
</div>
|
|
|
|
<div id="maincol">
|
2010-10-20 22:45:09 +00:00
|
|
|
<a id="debian"></a>
|
|
|
|
<h2><a class="anchor" href="#debian">Option one: Tor on Debian lenny,
|
|
|
|
Debian sid, or Debian testing</a></h2>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<p>
|
|
|
|
If you're using Debian stable (lenny), unstable (sid), or testing
|
|
|
|
(squeeze), just run<br />
|
|
|
|
<tt>apt-get install tor tor-geoipdb</tt>
|
|
|
|
as root.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Note that this might not always give you the latest stable Tor version, but
|
|
|
|
you will receive important security fixes. To make sure that you're running
|
|
|
|
the latest stable version of Tor, see option two below.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Now Tor is installed and running. Move on to <a href="<page
|
|
|
|
docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
|
|
|
|
instructions.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<a id="ubuntu"></a>
|
|
|
|
<a id="packages"></a>
|
|
|
|
<h2><a class="anchor" href="#ubuntu">Option two: Tor on Ubuntu or
|
|
|
|
Debian</a></h2>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Do not use the packages in Ubuntu's universe.</b> They are unmaintained
|
|
|
|
and out of date. That means you'll be missing stability and security
|
|
|
|
fixes.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
You'll need to set up our package repository before you can fetch
|
2011-01-31 03:32:22 +00:00
|
|
|
Tor. First, you need to figure out the name of your distribution. A
|
|
|
|
quick command to run is <tt>lsb_release -c</tt>. Here's a quick mapping:
|
2010-10-20 22:45:09 +00:00
|
|
|
<ul>
|
2011-01-01 13:50:12 +00:00
|
|
|
<li> Ubuntu 10.10 is "maverick"</li>
|
2010-10-20 22:45:09 +00:00
|
|
|
<li> Ubuntu 10.04 or Trisquel 4.0 is "lucid"</li>
|
|
|
|
<li> Ubuntu 9.10 or Trisquel 3.5 is "karmic"</li>
|
|
|
|
<li> Ubuntu 9.04 is "jaunty"</li>
|
|
|
|
<li> Ubuntu 8.10 is "intrepid"</li>
|
|
|
|
<li> Ubuntu 8.04 is "hardy"</li>
|
|
|
|
<li> Debian Etch is "etch"</li>
|
|
|
|
<li> Debian Lenny is "lenny"</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
Then add this line to your
|
|
|
|
<tt>/etc/apt/sources.list</tt>
|
|
|
|
file:<br />
|
|
|
|
<pre>
|
|
|
|
deb http://deb.torproject.org/torproject.org <DISTRIBUTION> main
|
|
|
|
</pre>
|
2011-01-31 03:32:22 +00:00
|
|
|
where you put the codename of your distribution (i.e. etch, lenny, sid,
|
|
|
|
maverick, lucid, karmic, jaunty, intrepid, hardy or whatever it is)
|
|
|
|
in place of <DISTRIBUTION>.
|
2010-10-20 22:45:09 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Then add the gpg key used to sign the packages by running the following
|
|
|
|
commands at your command prompt:
|
|
|
|
<pre>
|
|
|
|
gpg --keyserver keys.gnupg.net --recv 886DDD89
|
|
|
|
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
|
|
|
|
</pre>
|
|
|
|
Now refresh your sources and install Tor by running the following
|
|
|
|
commands (as root) at your command prompt:
|
|
|
|
<pre>
|
|
|
|
apt-get update
|
|
|
|
apt-get install tor tor-geoipdb
|
|
|
|
</pre>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Now Tor is installed and running. Move on to <a href="<page
|
|
|
|
docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
|
|
|
|
instructions.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style="font-size: small">
|
|
|
|
The DNS name <code>deb.torproject.org</code> is actually a set of independent
|
|
|
|
servers in a DNS round robin configuration. If you for some reason cannot
|
|
|
|
access it you might try to use the name of one of its part instead. Try
|
|
|
|
<code>deb-master.torproject.org</code>,
|
|
|
|
<code>mirror.netcologne.de</code> or
|
|
|
|
<code>tor.mirror.youam.de</code>.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<a id="development"></a>
|
|
|
|
<h2><a class="anchor" href="#development">Option three: Using the
|
|
|
|
development branch of Tor on Debian or Ubuntu</a></h2>
|
|
|
|
<br />
|
|
|
|
|
2011-01-31 03:32:22 +00:00
|
|
|
<p>If you want to use the <a href="<page
|
|
|
|
download/download>#packagediff">development branch</a> of Tor instead
|
|
|
|
(more features and more bugs), you need to add a different set of lines
|
|
|
|
to your <tt>/etc/apt/sources.list</tt> file:<br />
|
2010-10-20 22:45:09 +00:00
|
|
|
<pre>
|
|
|
|
deb http://deb.torproject.org/torproject.org <DISTRIBUTION> main
|
|
|
|
deb http://deb.torproject.org/torproject.org experimental-<DISTRIBUTION> main
|
|
|
|
</pre>
|
2011-01-31 03:32:22 +00:00
|
|
|
where you again substitute the name of your distro (etch, lenny,
|
|
|
|
sid, maverick, lucid, karmic, jaunty, intrepid, hardy) in place of
|
|
|
|
<DISTRIBUTION>.
|
2010-10-20 22:45:09 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Then run the following commands at your command prompt:
|
|
|
|
<pre>
|
|
|
|
gpg --keyserver keys.gnupg.net --recv 886DDD89
|
|
|
|
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
|
|
|
|
apt-get update
|
|
|
|
apt-get install tor tor-geoipdb
|
|
|
|
</pre>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Now Tor is installed and running. Move on to <a href="<page
|
|
|
|
docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
|
|
|
|
instructions.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<a id="source"></a>
|
|
|
|
<h2><a class="anchor" href="#source">Building from source</a></h2>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<p>
|
|
|
|
If you want to build your own debs from source you must first add an
|
|
|
|
appropriate <tt>deb-src</tt> line to <tt>sources.list</tt>.
|
|
|
|
<pre>
|
|
|
|
# For the stable version.
|
|
|
|
deb-src http://deb.torproject.org/torproject.org <DISTRIBUTION> main
|
|
|
|
|
|
|
|
# For the unstable version.
|
|
|
|
deb-src http://deb.torproject.org/torproject.org <DISTRIBUTION> main
|
|
|
|
deb-src http://deb.torproject.org/torproject.org experimental-<DISTRIBUTION> main
|
|
|
|
</pre>
|
|
|
|
You also need to install the necessary packages to build your own debs and the
|
|
|
|
packages needed to build Tor:
|
|
|
|
<pre>
|
|
|
|
apt-get install build-essential fakeroot devscripts
|
|
|
|
apt-get build-dep tor
|
|
|
|
</pre>
|
|
|
|
Then you can build Tor in ~/debian-packages:
|
|
|
|
<pre>
|
|
|
|
mkdir ~/debian-packages; cd ~/debian-packages
|
|
|
|
apt-get source tor
|
|
|
|
cd tor-*
|
|
|
|
debuild -rfakeroot -uc -us
|
|
|
|
cd ..
|
|
|
|
</pre>
|
|
|
|
Now you can install the new package:
|
|
|
|
<pre>
|
|
|
|
sudo dpkg -i tor_*.deb
|
|
|
|
</pre>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Now Tor is installed and running. Move on to <a href="<page
|
|
|
|
docs/tor-doc-unix>#polipo">step two</a> of the "Tor on Linux/Unix"
|
|
|
|
instructions.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<p>If you have suggestions for improving this document, please <a
|
|
|
|
href="<page about/contact>">send them to us</a>. Thanks!</p>
|
|
|
|
|
|
|
|
<!-- END MAIN COL -->
|
2010-07-09 01:55:22 +00:00
|
|
|
</div>
|
|
|
|
<div id = "sidecol">
|
|
|
|
#include "side.wmi"
|
|
|
|
#include "info.wmi"
|
|
|
|
</div>
|
|
|
|
<!-- END SIDECOL -->
|
|
|
|
</div>
|
|
|
|
<!-- END CONTENT -->
|
|
|
|
#include <foot.wmi>
|