Learn about how you can setup your own website in the Darkweb with Linux.

Services

sudo apt update

# Install one of the following Webservers
sudo apt install apache2
sudo apt install Nginx
# Or Python Server
sudo apt install python3
sudo python3 -m http.server <PORT NUMBER>

# Then you have to install the Tor service 
sudo apt install tor
# And the Tor Browser
# Which you can Download <a href="https://www.torproject.org/de/download/">here[l.o. 24.Dec.2023]</a>

# Then start the Tor service
sudo systemctl start tor
sudo systemctl status tor # Check status

# There's a little more to do
sudo vim /etc/tor/torrc # or nano if vim isn't installed
# Two lines should be commented out, just delete the hashes before them
# (HiddenServiceDir HiddenServicePort)

# Now restart the Tor service 
sudo systemctl restart tor
sudo systemctl status tor

# All the files of it are located at 
sudo su
cd /var/lib/tor/hidden_service
# Here's files like your secret key, and so on
cat hostname # Here's our link

Start and Change the Server

# Start your installed Webserver with
sudo systemctl start <SERVER> # Apache2 oder Nginx
sudo python3 -m http.server <PORT NUMBER> # Python
# Now our link under /var/lib/tor/hidden_service/hostname should be accessible

# The html code for the Site can be found under
cd /var/www/html 
# If you make any changes, restart your Tor service to apply the changes