[tor-bugs] #7989 [Website]: revise OS X relay instructions

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jan 30 18:14:59 UTC 2013


#7989: revise OS X relay instructions
---------------------+------------------------------------------------------
 Reporter:  phobos   |          Owner:              
     Type:  defect   |         Status:  needs_review
 Priority:  normal   |      Milestone:              
Component:  Website  |        Version:              
 Keywords:           |         Parent:              
   Points:           |   Actualpoints:              
---------------------+------------------------------------------------------

Comment(by arfarf):

 If users are willing to put up with the inherently insecure nature of
 Homebrew, the following command can be run in Terminal to start Tor when
 the user logs in:

 {{{
 ln -sfv /usr/local/opt/tor/*.plist ~/Library/LaunchAgents
 launchctl load ~/Library/LaunchAgents/homebrew.mxcl.tor.plist
 }}}

 The user will then need to create a torrc in /usr/local/etc/tor. Homebrew
 installs /usr/local/etc/tor/torrc.sample which can be modified.

 Starting Tor as a system daemon is more complicated. A user will have to
 do something similar to the following.

 1. Create /Library/LaunchDaemons/org.torproject.tor.plist with the
 following contents:

 {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
     <key>Label</key>
     <string>org.torproject.tor</string>
     <key>ProgramArguments</key>
     <array>
         <string>/usr/local/bin/tor</string>
         <string>-f</string>
         <string>/usr/local/etc/tor/torrc</string>
     </array>
     <key>KeepAlive</key>
     <true/>
 </dict>
 </plist>
 }}}

 2. Create a user for the Tor daemon
 3. Create a data directory for the Tor daemon. /var/db/tor would be a good
 choice. The permissions will have to be changed in this directory to allow
 access for the user created in 2.
 4. Modify /usr/local/etc/tor/torrc to include this valid DataDirectory and
 User.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7989#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list