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