[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: how to autostart tor on osx?



I spent hours on this, several months ago. I never got it to work. Which seemed impossible, really. Like you, I even tried adding a line to the Privoxy script in StartupItems....and Privoxy would start, but Tor would not. I tried running it from a StartupItems script alone on a single line; then mixing with other scripts, then with/out sudo, and then both with/out setuid/gid...I forget what all.

Nothing. Nada.

I intend to try again, but for now, I just go to the 'Accounts' PreferencePane and point directly at the bare 'tor' binary -- by default '/usr/local/bin/tor'. It leaves an ugly TERM window open, but it works, every time. (At one time I made a wrapper script, and pointed at that. But there is nothing I need which can't be done in the default '/usr/local/etc/tor/torrc' config file. YMMV.)

Other problems were placement of 'torrc' and the logfiles....but those are just *nix permissions problems, and can be fixed/setup any way you prefer.

Looking at the website, I see interest also in a OSX package of MixMinion. I guess I could try doing both, if there were interest? Assuming that this approach is possible -- and it (almost) must be. (Right? <LOL!>)

Anthony

PS: Do we get copies of our own "sends"? This is my second attempt.



Thomas Hardly wrote:
Thanks for the suggestions. I have the directory and script named
correctly. As I mentioned the console message "Starting Tor Service"
appears in my syslog every startup.

I tried running the startup script it in the shell as you suggested
and as you can see below it is choking on the last line of the script
with the command:        RunService "$1"

---
sandbox:~ hard-mac$ sudo /Library/StartupItems/Tor/Tor /Library/StartupItems/Tor/Tor: line 41: $1: unbound variable



th



On Thu, 2 Dec 2004 10:09:34 -0800, Hideki Saito <hidekis@gmail.com> wrote:

Same as yours...did you put it in /Library/StartupItems/Tor ?

/Library/StartupItems/Tor/StartupParameters.plist
/Library/StartItems/Tor/Tor

It will not work unless you actually put in "Tor" directory. (In other
word, "Tor" file inside this archive must match with directory name.

After you install, what will have if you do:
sudo /Library/StartupItems/Tor/Tor start?



On Thu, 2 Dec 2004 01:37:18 -0800, Thomas Hardly <hardmac@gmail.com> wrote:

HI,

Thanks for the file. I have been testing it two machines running
10.3.6 and have yet to make it work. The console message from the
startup file appears but yet it actually fails to start at all. I'm
not sure why it isn't working and have checked over file locations
etc. and all seems that it should be fine and working but alas it
isn't...

What OS version have you been using this on?


th




On Tue, 30 Nov 2004 18:13:02 -0800, Hideki Saito <hidekis@gmail.com> wrote:

Oops, I'm sorry, here's a file (if attachment works...)
Put these files this into /Library/StartupItems/Tor

I'll upload the same file into appropriate directory tonight, as well.




Thomas Hardly wrote:


Hi Hideki,

Thanks for your reply.

I get a 404 not found error for that link. I looked in the /pub/tor/
duirectory and didn't see anything that matched tha file you
mentioned?

Thomas

On Tue, 30 Nov 2004 15:53:08 -0800, Hideki Saito <hidekis@gmail.com> wrote:



Try http://www.anime.net/~sasami/pub/tor/torstartup.zip
Included is a set of script file to start up tor.

There might be some case it won't start up right after restarting, in
that case, you may have to manually issue command like 'killall tor'
(In my purpose, I've just put that line in stop section...




On Tue, 30 Nov 2004 14:54:03 -0800, Thomas Hardly <hardmac@gmail.com> wrote:



I've been testing tor and privoxy on osx systems and am looking for a
method to have it autostart at system startup.

I've tried adding it to the end of the privoxy StartupItem as:

/usr/local/bin/tor &

  but this doesn't seem to work.

I've created a stand alone StartupItem for tor, making it run Last at
startup and that still doesn't seem to work. Anyone have any
suggestions?

Cheers,
Thomas Hardly




-- Hideki Saito mailto: hidekis@gmail.com









--
    ..o:   It's 12 o'clock - do you know where your data is?   :o...
-------------------------------------------------------------------------------------------
Hardening Your Macintosh - http://members.lycos.co.uk/hardapple/
MacSecurity.org - http://www.macsecurity.org

pgp key fingerprint: 0F02 99D5 1D23 E445 22C9 9C90 8F24 FDBA B618 33C4



--


Hideki Saito mailto: hidekis@gmail.com