Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2008-02-15 2:33:12 pm

schwieb
Senior Member
From: North Carolina
Registered: 2008-02-15
Posts: 127

Installing Tor and Privoxy on your Eee PC

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)


It's not the size of your computer that matters, it's how you use it!

Offline

 

#2 2008-02-15 3:00:00 pm

mkrishnan
Moderator
From: Grand Rapids, MI, USA
Registered: 2007-11-06
Posts: 3444

Re: Installing Tor and Privoxy on your Eee PC

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.


Mohan

Offline

 

#3 2008-02-15 3:06:58 pm

schwieb
Senior Member
From: North Carolina
Registered: 2008-02-15
Posts: 127

Re: Installing Tor and Privoxy on your Eee PC

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


It's not the size of your computer that matters, it's how you use it!

Offline

 

#4 2008-02-15 4:05:53 pm

mkrishnan
Moderator
From: Grand Rapids, MI, USA
Registered: 2007-11-06
Posts: 3444

Re: Installing Tor and Privoxy on your Eee PC

That helps, thank you. smile


Mohan

Offline

 

#5 2008-02-22 6:49:19 am

needhelp
New member
Registered: 2008-02-22
Posts: 6

Re: Installing Tor and Privoxy on your Eee PC

I'm using it and it's great.
Don't forget to check the viability of your tor config there:

http://torcheck.xenobite.eu/


eeePC pearl white, 4G, 512mo, with eeebuntu 0.3 lightened, compiz-fusion on and it rocks !

Offline

 

#6 2008-02-22 6:57:27 am

schwieb
Senior Member
From: North Carolina
Registered: 2008-02-15
Posts: 127

Re: Installing Tor and Privoxy on your Eee PC

Great tip on checking the security.  Thanks.


It's not the size of your computer that matters, it's how you use it!

Offline

 

#7 2008-03-17 2:22:57 pm

freewheel
Member
From: Nashville, TN
Registered: 2007-11-27
Posts: 21
Website

Re: Installing Tor and Privoxy on your Eee PC

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.


+=-_Freewheel_-=+
**Reality is open source. Hack at will.**

Offline

 

#8 2008-03-17 8:03:47 pm

schwieb
Senior Member
From: North Carolina
Registered: 2008-02-15
Posts: 127

Re: Installing Tor and Privoxy on your Eee PC

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.


It's not the size of your computer that matters, it's how you use it!

Offline

 

#9 2008-03-19 4:07:09 pm

freewheel
Member
From: Nashville, TN
Registered: 2007-11-27
Posts: 21
Website

Re: Installing Tor and Privoxy on your Eee PC

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


+=-_Freewheel_-=+
**Reality is open source. Hack at will.**

Offline

 

#10 2009-08-10 10:18:52 am

Qiset
New member
Registered: 2009-08-06
Posts: 8

Re: Installing Tor and Privoxy on your Eee PC

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

 

#11 2010-07-18 12:58:30 am

duceduc
New member
Registered: 2010-07-18
Posts: 1
Website

Re: Installing Tor and Privoxy on your Eee PC

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

 

#12 2010-07-21 6:42:39 pm

Kitweston
New member
Registered: 2009-10-31
Posts: 6

Re: Installing Tor and Privoxy on your Eee PC

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

 

#13 2010-07-22 1:06:26 am

Kitweston
New member
Registered: 2009-10-31
Posts: 6

Re: Installing Tor and Privoxy on your Eee PC

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

 

#14 2010-07-22 5:00:31 am

RubyTuesday
Senior Member
Registered: 2009-02-06
Posts: 746

Re: Installing Tor and Privoxy on your Eee PC

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'?


- RubyTuesday

"While the sun is bright / Or in the darkest night
No one knows / She comes and goes"

Offline

 

#15 2010-07-22 2:25:21 pm

Kitweston
New member
Registered: 2009-10-31
Posts: 6

Re: Installing Tor and Privoxy on your Eee PC

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 wink?)  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

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson