summaryrefslogtreecommitdiff
path: root/tor.html
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-07-01 13:42:47 -0400
committerGitHub <noreply@github.com>2021-07-01 13:42:47 -0400
commit40a71d15124cbeb472919e49296fd289bb18acaf (patch)
treefa3a840eb19e547b3bf14d3c5282cc106757fdc3 /tor.html
parent09e8d8df7a96cae0b9b12af236a7f6958e79fe70 (diff)
parentb52ddb17e8f505f70ed98e8a87268b411511b128 (diff)
Merge branch 'master' into master
Diffstat (limited to 'tor.html')
-rw-r--r--tor.html49
1 files changed, 33 insertions, 16 deletions
diff --git a/tor.html b/tor.html
index 0d54b5f..eb7bad9 100644
--- a/tor.html
+++ b/tor.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang=en>
<head>
- <title>Mirror your site over tor</title>
+ <title>Mirror your site over Tor</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel='stylesheet' type='text/css' href='style.css'>
@@ -17,21 +17,31 @@
<p>
Now that you have a website, why not offer it on a private alternative such as the onion network?
</p>
- <aside>
- <a href="https://landchad.net" >LandChad.net</a> does not condone
- any illegal activities or websites on the dark web nor the usage of
- this tutorial to launch such sites.
- </aside>
<h2>Setting up Tor</h2>
- <p>First, install tor. On Debian it's as simple as:</p>
+ <h3>Installing Tor</h3>
+
+ <p>Firstly we need to add the Tor repos to our system to get the latest version of Tor:</p>
+ <pre><code>apt install -y apt-transport-https gpg
+echo "deb https://deb.torproject.org/torproject.org buster main
+deb-src https://deb.torproject.org/torproject.org buster main" > /etc/apt/sources.list.d/tor.list</code></pre>
+
+ <p>Then we need to add the gpg keys to our keyring:</p>
+
+ <pre><code>curl -s https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
+gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -</code></pre>
- <pre><code> apt install tor</code></pre>
+ <p>Now update and install Tor:</p>
- <p>Then edit the file <code>/etc/tor/torrc</code>, uncommenting the following lines:</p>
- <pre><code> HiddenServiceDir /var/lib/tor/hidden_service/
- HiddenServicePort 80 127.0.0.1:80</code></pre>
+ <pre><code>apt update
+apt install tor deb.torproject.org-keyring</code></pre>
+
+ <h3>Enabling Tor</h3>
+
+ <p>Next edit the file <code>/etc/tor/torrc</code>, uncommenting the following lines:</p>
+ <pre><code>HiddenServiceDir /var/lib/tor/hidden_service/
+HiddenServicePort 80 127.0.0.1:80</code></pre>
<aside>
<h4>Optional: Running multiple onion services</h4>
<p>If you want to forward multiple virtual ports for a single onion
@@ -41,19 +51,19 @@
HiddenServiceDir line.</p>
</aside>
- <p>Now start and enable tor at boot</p>
+ <p>Now start and enable Tor at boot:</p>
<pre><code> systemctl enable --now tor </code></pre>
<p>If the next command outputs <q>active</q> in green you're golden!</p>
<pre><code> systemctl status tor</code></pre>
- <p>Now you're server is on the dark web. The following command will give you your onion address:</p>
+ <p>Now your server is on the dark web. The following command will give you your onion address:</p>
<pre><code> cat /var/lib/tor/hidden_service/hostname</code></pre>
<h2>Adding the Nginx Config</h2>
<p>
From here, the steps are almost identical to setting up a normal website configuration file.
- Follow the steps as if you were making a new website on the webserver
+ Follow the steps as if you were making a new website in the webserver
<a href="nginx.html">tutorial</a> up until the server block of code. Instead, paste this:
</p>
@@ -70,9 +80,16 @@
<p>The <code>root</code> line is the path to whichever website of yours you'd like to mirror.</p>
</aside>
<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>.
+ Now 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>
- <strong>Contributor</strong> - <a href="https://tomfasano.xyz" target="_blank">tomfasano.xyz</a>
+
+ <h3>Update regularly!</h3>
+
+ <p>Make sure to update Tor on a regular basis by running:</p>
+ <pre><code>apt update
+apt install tor</code></pre>
+
+ <p><strong>Contributor</strong> - <a href="https://tomfasano.xyz" target="_blank">tomfasano.xyz</a></p>
</main>
<footer><a href="https://landchad.net">LandChad.net</a></br>Because Everyone should be an Internet LandChad.</br><li><a href="index.html"><img src="pix/chad.gif" alt="chad"></a></li><li><a href="rss.xml"><img src="pix/rss.svg" alt="RSS"></a></li><li><a href="pix/btc.png"><img src="pix/btc.svg" alt="BTC"></a></li><li><a href="pix/xmr.png"><img src="pix/xmr.svg" alt="XMR"></a></li><li><a href="https://github.com/lukesmithxyz/landchad"><img src="pix/git.svg" alt="Github"></a></footer>