summaryrefslogtreecommitdiff
path: root/tor.html
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-07-01 07:01:30 -0400
committerGitHub <noreply@github.com>2021-07-01 07:01:30 -0400
commitc72882d4f383bcaf0b9ee0cabb6c07ee25cbff1a (patch)
treeacb739452ee130ea3cbe6ce3ad5771f57062aca7 /tor.html
parent71741bc76e6ecd254876b249654a0e3afa50f320 (diff)
parenteb18006d34821e3309acc8fd48633762cee301a4 (diff)
Merge pull request #27 from el3ctr0lyte/master
Updated tor guide
Diffstat (limited to 'tor.html')
-rw-r--r--tor.html21
1 files changed, 18 insertions, 3 deletions
diff --git a/tor.html b/tor.html
index 0d54b5f..5b5aa41 100644
--- a/tor.html
+++ b/tor.html
@@ -25,9 +25,20 @@
<h2>Setting up Tor</h2>
- <p>First, install tor. On Debian it's as simple as:</p>
-
- <pre><code> apt install tor</code></pre>
+ <p>Firstly we need to add the tor repo's to have the latest up to date version or tor.</p>
+ <pre><code>apt install apt-transport-https</code></pre>
+ <pre><code>echo "deb https://deb.torproject.org/torproject.org buster main" > /etc/apt/sources.list.d/tor</code></pre>
+ <pre><code>echo "deb-src https://deb.torproject.org/torproject.org buster main" >> /etc/apt/sources.list.d/tor</code></pre>
+
+ <p>Then we need to add the gpg keys to our keyring</p>
+
+ <pre><code>curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import</code></code>
+ <pre><code>gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -</code></code>
+
+ <p>Now update and install tor</p>
+
+ <pre><code>apt update</code></pre>
+ <pre><code>apt install tor deb.torproject.org-keyring</code></pre>
<p>Then edit the file <code>/etc/tor/torrc</code>, uncommenting the following lines:</p>
<pre><code> HiddenServiceDir /var/lib/tor/hidden_service/
@@ -72,6 +83,10 @@
<p>
From here we are almost done, all we have to do is enable the site and reload nginx which is also covered in <a href="nginx.html#enable">the webserver tutorial</a>.
</p>
+ <p> Also make sure to update tor on a regular basis by running</p>
+ <pre><code>apt update</code></pre>
+ <pre><code>apt install tor</code></pre>
+
<strong>Contributor</strong> - <a href="https://tomfasano.xyz" target="_blank">tomfasano.xyz</a>
</main>