You are not logged in.
I purchased my Eee PC primarily for mobile web browsing. To make me feel a little better about my security when browsing from open access points, I decided to install Tor and Privoxy. This configuration provides me with an extra layer of anonymity when I feel like I need it, though you should not rely solely on Tor for strong anonymity. For more information on Tor and Privoxy, check out the project website.
These instructions work for me on Ubuntu, though they should also work for any other Ubuntu variant. They may even work with the default Xandros OS, but I have not tested it.
First open a terminal window and install the necessary programs:
sudo apt-get install tor privoxy
Make sure the torrc file exists (no editing necessary):
sudo nano /etc/tor/torrc
Edit the Privoxy config file:
sudo nano /etc/privoxy/config
Comment out: “logfile logfile” by adding a '#' in front of it.
Comment out: “jarfile jarfile” by adding a '#' in front of it.
Locate a line with: listen-address 127.0.0.1:8118
On the next line add: forward-socks4a / localhost:9050 . (including the trailing dot)
Restart (or start) Tor and Privoxy with:
sudo /etc/init.d/tor restart && sudo /etc/init.d/privoxy restart
You can now configure your applications to work with the newly installed proxy. Since I mainly use Tor in the firefox web browser and want to be able to turn it off and on, I just installed TorButton.
To use this proxy with other applications you can use one of the following settings:
HTTP Proxy:
localhost:9118
or
SOCKS 4 Proxy:
localhost:9050
*IMPORTANT*
If you are like me and you have turned off logging by adding a tmpfs entry for /var/log in your /etc/fstab file, you have more work to do in order for Tor to work after a reboot. (If you did not turn off logging, you REALLY should because you are wasting write cycles on your flash drive.)
Basically we have to create a log file for both Tor and Privoxy before they are initialized or they will not start. To do this I edited the two start up scripts. First edit the Tor script:
sudo nano /etc/init.d/tor
Now add the following code on the second line right after '/bin/bash':
# CUSTOM ADDITION FOR EEE PC
# Added for eeePC to create logfiles in tmpfs
# Also needed is an addtion to /etc/fstab
# tmpfs /var/log tmpfs defaults 0 0
#
# ensure that the logs dont already exist.
if [ ! -d /var/log/tor ]
then
mkdir /var/log/tor
touch /var/log/tor/log
chown -R debian-tor:adm /var/log/tor
fi
# END CUSTOMIZATION
And now edit the Privoxy script with:
sudo nano /etc/init.d/privoxy
Add the following code to the second line right after '/bin/sh':
# CUSTOM ADDITION FOR EEE PC
# Added for eeePC to create logfiles in tmpfs
# Also needed is an addtion to /etc/fstab
# tmpfs /var/log tmpfs defaults 0 0
#
# ensure that the logs dont already exist.
if [ ! -d /var/log/privoxy ]
then
mkdir /var/log/privoxy
touch /var/log/privoxy/errorfile
touch /var/log/privoxy/logfile
chown -R privoxy:adm /var/log/privoxy
fi
# END CUSTOMIZATION
Hope that all makes sense! Good Luck.
Last edited by schwieb (2008-02-15 2:34:12 pm)
Offline
Thanks for the walkthrough... I might give this a try.
Just to be clear, this provides you with anonymity, but does it provide you with any kind of security or privacy? Like it doesn't address the issue of risk with logging into secure sites with username/password, etc, from an open / not fully trusted network, does it? Or does it?
Proxy service that's easy to use would still be nice, though, so I might install it just so I can put torbutton on my Firefox.
Offline
Tor does give you an added layer of security and privacy, it is just not completely fool proof, but nothing is! You might want to read more about it here:
http://www.torproject.org/overview.html.en
Offline
That helps, thank you. ![]()
Offline
I'm using it and it's great.
Don't forget to check the viability of your tor config there:
http://torcheck.xenobite.eu/
Offline
Great tip on checking the security. Thanks.
Offline
This and other methods have worked for me, but after a restart, they do not. I turned logging off, but have made the necessary changes /etc/init.d/(tor and privoxy). I keep getting a message saying that the proxy server is refusing connections. I'm using firefox with the tor button. Any ideas? I checked the faq on the tor site and googled the error and fixed it a couple of times.
Offline
Can you manually start tor and privoxy?
First make sure they are shut down:
sudo /etc/init.d/tor stop
sudo /etc/init.d/privoxy stop
Then start them up again:
sudo /etc/init.d/tor start
sudo /etc/init.d/privoxy start
Post your error messages and I'll try to help you.
Offline
Strange. Privoxy was running but TOR was not. Works perfectly. I suppose the only issue is that Tor doesn't auto start, but that's easy enough to fix. I must have made a type somewhere. Thanks for the help
Offline
I recently put Xubuntu on my p900. It's been a trip. Not the least was getting tor/privoxy running.
Which it now does thanks to the posts here.
Well, at work the guest network I run it on keeps giving me Forwarding failures.
I've got Firefox 3.0.13, with torbutton, privoxy, and tor all running. They work as they should
at home.
The main thing I want to do is listen to music at work. When I use my laptop, running XP, Ultrasurf does
this for me.
I'm guessing that I might need to experiment with the forwarding/listen ports. any hints?
thanks,
Q
Offline
If you are like me and you have turned off logging by adding a tmpfs entry for /var/log in your /etc/fstab file, you have more work to do in order for Tor to work after a reboot. (If you did not turn off logging, you REALLY should because you are wasting write cycles on your flash drive.)
Can someone explain how I disable logging.
Offline
Ok, running Lucid at the mo, followed the instructions in the first few posts and discovered they don't work anymore, went to the website and followed Ubuntu specific instructions there, added the appropriate repo, updated, but then I get this:
kit@kit-laptop:~$ sudo apt-get install tor tor-geoipdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libreadline5 polipo socat tsocks
Suggested packages:
mixmaster mixminion anon-proxy
The following NEW packages will be installed
libreadline5 polipo socat tor tor-geoipdb tsocks
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 3,234kB of archives.
After this operation, 8,212kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Abort.
kit@kit-laptop:~$
Essentially when I do <Y enter> up comes the 'Abort' line.
Any ideas about a way forward?
Last edited by Kitweston (2010-07-21 6:44:07 pm)
Offline
I went back in this morning and picked up where I left off at the apt-get line, everything installed ok, the only additional stage was me shutting down between sessions. Not sure if that is coincidence or not?
Offline
If your output stuff from apt-get is copied and pasted, your 'y' response is in the wrong case so maybe apt-get interpreted it as a 'no'?
Offline
Ruby, I may be wrong as I don't regularly use Terminal but I didn't think that type of dialogue is case sensitive.
In any case (see what I did there
?) I did try in upper as well as lower case several ties before shutting down. Following morning it went through with no issues whatsoever.
Offline