# assumes that you are using a debian host
# ensure that tor is installed
sudo apt install tor
# create the directories for the hidden service
sudo mkdir -p /var/lib/tor/dendrite/
sudo chown debian-tor:debian-tor /var/lib/tor/dendrite/
sudo chmod 700 /var/lib/tor/dendrite/
# edit the tor config file
sudo vim /etc/tor/torrc
## pls insert these lines:
HiddenServiceDir /var/lib/tor/dendrite/
HiddenServicePort 8008 127.0.0.1:8008
# restart tor
sudo systemctl restart tor
sudo systemctl enable tor
# retrieve the .onion address
sudo cat /var/lib/tor/dendrite/hostname
# access your Dendrite over the tor network with:
http://<address.onion>:8008