4

I am running some programs in Bash in Ubuntu.

The programs download something using network sockets. Their README file says they can be used with tor, and I hope to change the external IP address by using tor with the programs.

I have tried to look up how to use tor with a program in shell on the Internet including tor's official website, but I haven't found a step-by-step explanation. Could you show me how to use a program with tor in Bash, and maybe also point to some resources for learning? (I have some but not much knowledge about networks and network programming.) Thanks.

Tim
  • 253
  • 2
  • 3
  • 10

2 Answers2

3

From the README:

The getxbook program downloads books anonymously. Using it will still result in your IP address being logged (use torify to stop this)...

torify is tool that attempts to wrap your terminal command in a Tor session. There's a good tutorial on what you need to do, here. Then it's just a case of running:

torify <your_command>
Richard Horrocks
  • 3,155
  • 1
  • 15
  • 24
1

To add to what mentioned earlier I would like to say that you can use sudo command at the beginning of the command:

sudo torify <command>

but don't use torify at the beginning