Running Tor (Linux)
Contents
After completing the guide below for your system, you can confirm Tor is running with:
systemctl status tor
In the rare event that Tor is having connectivity issues, reset the connection:
sudo systemctl restart tor
Debian/Ubuntu
This should work for most Debian-like systems, such as Debian, Ubuntu, Mint, PopOS etc.
The following instructions will install the LTS (Long Term Support) version of Tor from your distro's default repository. If you would always like the latest stable release, the Tor Project maintains their own Debian/Ubuntu repository. The instructions for connecting to this official Tor Project repository can be found here.
-
Open a terminal and install/start Tor:
sudo apt update && sudo apt install tor
Arch / Garuda / Manjaro
-
Open a terminal and install/start Tor:
sudo pacman -S tor
CentOS / Fedora / RHEL
-
Configure the Tor Package repository. Add the following to
/etc/yum.repos.d/tor.repo
:[Tor] name=Tor for Enterprise Linux $releasever - $basearch baseurl=https://rpm.torproject.org/centos/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=https://rpm.torproject.org/centos/public_gpg.key cost=100
For Fedora, the "name" line should be
Tor for Fedora $releasever - $basearch
-
Open a terminal and install Tor:
sudo dnf install tor
-
Enable tor service:
sudo systemctl enable --now tor