I've installed Tor for Vidalia, but when I want to run it, it gives me this error:
Vidalia detected that the Tor software exited unexpectedly.
In order to use tor
. Install tor
which will install polipo
as a recommended package.
What you need to configure is polipo/privoxy for tor as your are using http proxy. Tor doesnot use 8118 as its port it uses 9050 and it is a socks proxy. You can use this configuration for polipo
to use with tor
. Just do:
sudo wget https://gitweb.torproject.org/torbrowser.git/blob_plain/HEAD:/build-scripts/config/polipo.conf -O /etc/polipo/config
sudo service tor stop && sudo service polipo stop
sudo service tor start && sudo service polipo start
tor needs to start before polipo, or else polipo will occupy the 9050 port and tor will start with errors
I am giving much focus here on polipo
because tor itself recommends polipo
and is installed by default on tor
installation. You can use privoxy
in place of polipo
as well. Most of the tor
users recommend using the default socks proxy if the application handles it.
If you want to connect everything through tor you need to set system proxy with System Settings > Network > Network Proxy
And then setup proxy to 127.0.0.1
and port to 8118
. Use socks proxy where supported just change port to 9050
and type to socks5
.
Optionally, install any browser proxy switch addons, I use chromium
with proxyswitchy
. Similary choose one for firefox if you use firefox. AFAIK pidgin, xchat, thunderbird support socks5 proxy. I think firefox also supports socks5.
If you are having trouble setting up Tor, a better option is often to use the Tor Browser Bundle, available at the tor website. The browser bundle does not need to be installed, you just run the start-tor-browser
executable in the folder, once you've extracted it with Archive Manager.
Assuming that "Vidalia" is the process you want to stop, run the following from a terminal:
ps -ef | grep Vidalia
Find the process in the result set, and look for the PID (Process ID). Assuming a PID of 31559, you can terminate the process with the following:
sudo kill -9 31559
I had the very same problem and here's the solution which was helpful to me:
Cause(observed):
The message you are getting when you switch on vidalia and consequently when vidalia tries to connect you to the tor network is because tor is set run on startup, meaning when you start vidalia there is already an instance of tor running on your OS and therefore it can't start another(maybe tor is programmed to one instance per session).
Solution(1):
Since tor is already running, use sudo ps -ax |grep tor
to confirm, all you need is to configure your browser to route traffic through tor which i suppose you haven't. See "Browser config" below.
Solution(2):
If you want to operate, customize and/or switch on/off tor easily without the cryptic CLI then you might want to use vidalia. And for that:
sudo killall tor
so that vidalia can launch tor as its child
then ask vidalia to connect you to the tor network and hopefully it will work.
Browser config:
Set your browser to use SOCKS proxy (v5 works, haven't tested it for v4) , ip address:127.0.0.1 and port:9050 when you want to use tor otherwise do not disturb this.
Note that tor will automatically run on each startup, so you'll have to kill it on each and every startup if you want to connect to tor using vidalia. The automatic cure to that which i choose was to use upstart because i didn't want to dig in the tor configs. Squashing is relatively easier.
If your ISP requires you to connect to the internet through proxy server then you'll have to set vidalia to use that proxy setting in order to connect to tor.
Note to readers i aint an expert hacker and many a things i've stated here are based on my observation which seemed quite plausible and might be wrong so please make corrections where ever needed.