
Hi, So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks. --Keifer

sudo systemctl enable tor On Sun, Dec 1, 2024 at 2:15 PM, Keifer Bly <keifer.bly@gmail.com> wrote: Hi, So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks. --Keifer

So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.
If you've installed Tor from the repositories it will install a systemd .service and it should be enabled by default. Check the status of tor.service : $ systemctl status tor Enable the service on start : $ systemctl enable tor

On Sunday, December 1st, 2024 at 14:15, Keifer Bly <keifer.bly@gmail.com> wrote:
So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.
One way is to use the @reboot time in a cron job. If you run crontab -e you can edit your list of cron jobs and add in something like @reboot /path/to/tor Mine looks like this: SHELL=/bin/bash @reboot ~/conforg/scripts/tor-run.sh The script that gets run is here: https://github.com/wdenton/conforguration/blob/master/conforg/scripts/tor-ru... It sets up a tmux session with four windows: one running Tor, one tailing the log, one showing a bar chart of bandwidth use, and one a shell where I can run a report of bandwidth use. Combined, if the machine reboots then thirty seconds after it comes back Tor is running and I can run `tmux attach` to check in on it, then or weeks later. Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada

Thanks all. --Keifer On Mon, Dec 2, 2024 at 11:24 PM William Denton <william@williamdenton.org> wrote:
On Sunday, December 1st, 2024 at 14:15, Keifer Bly <keifer.bly@gmail.com> wrote:
So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.
One way is to use the @reboot time in a cron job. If you run
crontab -e
you can edit your list of cron jobs and add in something like
@reboot /path/to/tor
Mine looks like this:
SHELL=/bin/bash @reboot ~/conforg/scripts/tor-run.sh
The script that gets run is here:
https://github.com/wdenton/conforguration/blob/master/conforg/scripts/tor-ru...
It sets up a tmux session with four windows: one running Tor, one tailing the log, one showing a bar chart of bandwidth use, and one a shell where I can run a report of bandwidth use. Combined, if the machine reboots then thirty seconds after it comes back Tor is running and I can run `tmux attach` to check in on it, then or weeks later.
Bill
-- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada
_______________________________________________ tor-relays mailing list -- tor-relays@lists.torproject.org To unsubscribe send an email to tor-relays-leave@lists.torproject.org
participants (4)
-
Keifer Bly
-
Tor - 193
-
tor-operator@urdn.com.ua
-
William Denton