Search code examples
perlubuntutor

How to use Tor Network on a non-gui server with perl


I want to write a perl-script that loads content from internet-websites through the TOR network. The script should run on a non-gui ubuntu server (Ubuntu 12.04).

Just to make it clear: I want to install no TOR server and no TOR browser. I want to install a TOR client that makes it possible for other programs like perl scripts to access web content through the TOR network.

My questions:

  • Where do I find a TOR client for a non-gui ubuntu-machine?
  • How to install this client?
  • Must I install anything else (maybe some additional cpan modules)?
  • Do you have a short example perl script that loads a website through the TOR network?

Solution

  • sudo apt-get install tor - then you can either use proxychains <your command> OR usewithtor <your command> OR torify <your command>