Im following this tutorial to make by Raspberry Pi a Tor Hotspot. I successfully setuped a working Hotspot which is connected to internet, and now I want that all the traffic will go trough the Tor network.

In this part of the tutorial, we should install Tor using:

sudo apt get install tor

and then edit Tor configuration file using nano:

sudo nano /etc/tor/torrc

to change Tor configuration. I successfuly installed Tor, and the service is working, but for some reason /etc/tor/torrc exists, but it's a blank file.

How can I fix this?

Im using the latest version of Raspabian (Debian port), and Raspberry Pi model B.

  • Have you checked /usr/local/etc/tor/torrc ?
    – mirimir
    Jul 24 '14 at 19:38
  • @mirimir Yes. But /usr/local/etc has no folder called Tor... Jul 24 '14 at 20:08
  • Well, if Tor is running, there must be a torrc somewhere? Try "find / torrc".
    – mirimir
    Jul 24 '14 at 21:22
  • @mirimir There is, but it is empty. Jul 24 '14 at 21:36
  • I was assuming that you had created the empty file by trying to edit it. But whatever, if Tor is working, there must be a non-empty torrc somewhere.
    – mirimir
    Jul 24 '14 at 21:59

Found a solution!

I Formatted the SD card using SDFormatter, and reburn Raspabian using Win32DiskImager - in other words, reinstalled Raspabian.

And then:

sudo apt-get update install tor

just installed tor with the full torrc file. I guess that it's a good solution for most of you with this problem, but because i used my Pi as a Tor Hotspot, it wasnt a big deal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.