summaryrefslogtreecommitdiffstats
path: root/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2021-11-14 17:23:55 -0500
committermjfernez <mjf@mjfer.net>2021-11-14 17:23:55 -0500
commite4d967be5e306de64b7dbaee82dcd37b4485f44f (patch)
tree17d58f2ed27d3054202f48a225644c29b943f57d /.md/tutorials/tor/how-to-host-a-tor-hidden-service.md
parentfbd07645b2bc37ab1baebdd0953cfa99b59c00b9 (diff)
downloadsite-files-e4d967be5e306de64b7dbaee82dcd37b4485f44f.tar.gz
Added meta tags. Added HTMLCSS tutorial
Diffstat (limited to '.md/tutorials/tor/how-to-host-a-tor-hidden-service.md')
-rw-r--r--.md/tutorials/tor/how-to-host-a-tor-hidden-service.md23
1 files changed, 19 insertions, 4 deletions
diff --git a/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md b/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md
index d13f5d0..2446cf2 100644
--- a/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md
+++ b/.md/tutorials/tor/how-to-host-a-tor-hidden-service.md
@@ -12,11 +12,12 @@ insecure and not a good idea. For a permanent solution, you'll
want to host a real web server as explained
[here](/site/tutorials/www/how-to-make-this-site.html).
-Unlike that article, I will only explain how to do this on Linux since
+Like that article, I will only explain how to do this on Linux since
it's way easier and, to be honest, I've never tried to do it on Windows.
If you've never used Linux before, buy a Raspberry Pi and follow
the basic install guide. If you're strapped for cash, run it in a
-virtual machine, or use Windows Subsystem for Linux.
+virtual machine, or use
+[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install).
## How to spin up a temporary hidden file share with Python
@@ -72,7 +73,8 @@ $ sudo service tor restart
```
Once you do this, you'll get a new onion address located in the
-directory noted above. Use cat to read the hostname file:
+directory noted above. Use cat to read the hostname file and copy it
+down somewhere. This is your ".onion" address:
```
$ cat /var/lib/tor/hidden_service/hostname
@@ -83,7 +85,20 @@ $ cat /var/lib/tor/hidden_service/hostname
Make some directory to hold your files.
```
-$ mkdir -pv files
+$ mkdir -pv ~/files
+```
+
+If you're on WSL you can copy files from your C drive like so:
+
+```
+$ cp -vr /mnt/c/Users/username/Desktop/cats ~/files/
+```
+
+On a remote server (like a Raspberry pi) you can use scp instead
+(replace 'rapsberry' with the hostname or local IP of you Pi):
+
+```
+$ scp -vr cats pi@raspberry:~/files/
```
Since we're only doing this temporarily, we don't care too much about