[tor-bugs] #29000 [Core Tor/Torsocks]: Let torsocks run from source directory

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 7 22:35:02 UTC 2019


#29000: Let torsocks run from source directory
-------------------------------+-----------------------------------
 Reporter:  traumschule        |          Owner:  dgoulet
     Type:  enhancement        |         Status:  needs_information
 Priority:  Very Low           |      Milestone:
Component:  Core Tor/Torsocks  |        Version:
 Severity:  Minor              |     Resolution:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:
 Reviewer:                     |        Sponsor:
-------------------------------+-----------------------------------

Comment (by traumschule):

 Replying to [comment:1 onirony]:
 > Running torsocks from src/ works fine for me both on OS X and Ubuntu.
 How are you compiling torsocks, and on what system? Also can you paste a
 log of the compilation process? I want to be able to reproduce this.
 Thanks!

 Hi! Did you try above command? Without {{{--version}}} it doesn't fail.
 {{{sh autogen.sh && ./configure && make}}} on debian.

 Without parameters it prints the version and the help but with options it
 fails.
 {{{
 ~/torsocks$ chmod +x ./src/bin/torsocks
 ~/torsocks$ ./src/bin/torsocks
 torsocks 2.3.0

 ./src/bin/torsocks [OPTIONS] [COMMAND [arg ...]]

 usage: ./src/bin/torsocks command args

 Options:
   -h, --help         Show this help
       --shell        Spawn a torified shell
       --version      Show version
   -d, --debug        Set debug mode.
   -u, --user NAME    Username for the SOCKS5 authentication
   -p, --pass NAME    Password for the SOCKS5 authentication
   -i, --isolate      Automatic tor isolation. Can't be used with -u/-p
   -a, --address HOST Specify Tor address
   -P, --port PORT    Specify Tor port
   on, off            Set/Unset your shell to use Torsocks by default
                      Make sure to source the call when using this option.
 (See Examples)
   show, sh           Show the current value of the LD_PRELOAD

 Examples:

 Simple use of torsocks with SSH
     $ torsocks ssh user at host.com -p 1234

 Set your current shell in Tor mode.
     $ . torsocks on

 Please see torsocks(1), torsocks.conf(5) and torsocks(8) for more
 information.
 ~/torsocks$ ./src/bin/torsocks --help
 ERROR: /usr/local/lib/torsocks/libtorsocks.so does not exist! Try re-
 installing torsocks.
 ~/torsocks$ ./src/bin/torsocks --version
 ERROR: /usr/local/lib/torsocks/libtorsocks.so does not exist! Try re-
 installing torsocks.
 ~/torsocks$ ./src/bin/torsocks on
 ERROR: /usr/local/lib/torsocks/libtorsocks.so does not exist! Try re-
 installing torsocks.
 }}}

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


More information about the tor-bugs mailing list