Install Virtualbox w Debian Guest-OS
Folge dieser Anleitung
Lade dieses ISO : LINKZUMDEBIAN_ISO
Connect to Guest via SSH
Setup TOR-Node and Onion Service
To install a Tor Onion Service on Linux, follow these steps:
Install Tor
Ensure you have the latest Tor package installed. On Debian/Ubuntu-based systems:
Prerequisite: Verify the CPU architecture
The package repository offers amd64 and arm64 binaries. Verify your operating system is capable of running the binary by inspecting the output of the following command:
$ sudo dpkg --print-architecture
It should output either amd64 or arm64. The repository does not support other CPU architectures.
1. Install apt-transport-https
To enable all package managers using the libapt-pkg library to access metadata and packages available in sources accessible over https (Hypertext Transfer Protocol Secure).
$ sudo apt install apt-transport-https
2. Create a new file in /etc/apt/sources.list.d/ named tor.sources and add the following entry:
Types: deb deb-src
URIs: https://deb.torproject.org/torproject.org/
Suites: <DISTRIBUTION>
Components: main
Signed-By: /usr/share/keyrings/deb.torproject.org-keyring.gpg
Replace <DISTRIBUTION> with your operating system’s codename. You can run lsb_release -c or check /etc/os-release to find it.
3. Install GnuPG if not already installed:
$ sudo apt install gnupg
4. Then add the gpg key used to sign the packages by running the following command at your command prompt:
$ wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | sudo tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null
5. Install tor and tor debian keyring
We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it with the following commands:
$ sudo apt update
$ sudo apt install tor deb.torproject.org-keyring
Configure Tor for Hidden Service
Edit the Tor configuration file:
sudo nano /etc/tor/torrc
Add the following lines to enable your onion service:
HiddenServiceVersion 3
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir specifies where Tor stores the service’s private key and .onion hostname.
HiddenServicePort 80 127.0.0.1:80 forwards traffic from the Tor network (port 80) to your local web server (e.g., Apache/Nginx on port 80).
Note: Replace 80 with your web server’s port if different (e.g., 8181).
Set Permissions
Ensure the directory has correct ownership and permissions:
sudo mkdir -p /var/lib/tor/hidden_service/
sudo chown debian-tor:debian-tor /var/lib/tor/hidden_service/
sudo chmod 700 /var/lib/tor/hidden_service/
Restart Tor
Apply changes:
sudo systemctl restart tor
Retrieve Your .onion Address
After restarting, Tor generates a .onion address:
cat /var/lib/tor/hidden_service/hostname
This output is your unique .onion domain.
Set Up Your Web Server
Ensure your web server (Apache, Nginx, etc.) is running and accessible on 127.0.0.1:80. For example, with Nginx:
sudo systemctl enable --now nginx
Test Access
Open the Tor Browser and navigate to your .onion address. If configured correctly, your site will load.
Important: Onion services are not accessible via regular browsers. Only the Tor Browser can reach them.
Install Webserver
Apache is available in the main repository of multiple Linux and *BSD distributions. To install apache2 package:
$ sudo apt install apache2
Install mariaDB + Php
To install MariaDB and PHP on Linux, follow these general steps based on Debian/Ubuntu systems:
- Update package lists:
sudo apt update
- Install PHP and required modules (e.g., PHP 8.2):
sudo apt install php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-xml php8.2-xsl php8.2-zip php8.2-bz2 libapache2-mod-php8.2 -y
- Install MariaDB server and client:
sudo apt install mariadb-server mariadb-client -y
- Secure MariaDB installation:
sudo mysql_secure_installation
- Press Enter for the current root password (blank initially).
- Set a new root password.
- Answer
Y to remove anonymous users, disallow remote root login, remove test database, and reload privileges.
- Enable and start services (if not auto-started):
sudo systemctl enable mariadb sudo systemctl start mariadb
- Verify installation:
- Check PHP version:
php -v
- Check MariaDB status:
sudo systemctl status mariadb
💡 Note: For older systems like Debian 10, use php7.4 instead of php8.2. For Amazon Linux 2, use amazon-linux-extras enable php7.4 and yum install php with additional packages.
- Optional: Install phpMyAdmin for a web-based MariaDB interface:
- Download and extract:
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip -O phpmyadmin.zip
- Unzip and move:
unzip phpmyadmin.zip && mv phpMyAdmin-*-all-languages phpmyadmin
- Set permissions:
chmod -R 0755 phpmyadmin
- Configure Apache and set up the web directory as shown in the full tutorial.
optional: Install WordPress