Tor on startup and background

How to have tor running on startup and on the background, every time I want to open an program that uses tor I must run “sudo tor”, what’s the best way to avoid that?

The package tor comes with a systemd service located in /usr/lib/systemd/system/tor.service
You just have to enable it:
systemctl enable tor --now
or
systemctl enable tor.service --now

Thanks, i tried both option, the first worked but did not hold on the next reboot, the second worked and hold on reboot.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.