This script follows the basic install guide for Ubuntu 9.10 on the tor website.
Just download the script, then run the following commands:
chmod a+x ubuntu_tor.sh
sudo ./ubuntu_tor.sh-----------------------------------------------------
#!/bin/bash
#Automatic Tor Installation and local proxy configuration for Ubuntu.
#Version 1.0
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root or using sudo"
exit 1
fi
echo "deb http://deb.torproject.org/torproject.org $(cat /etc/lsb-release |grep CODENAME|sed 's/\=/ /g'|awk '{print $2}') main" >> /etc/apt/sources.list
if [ $HOME != "/root" ]; then
sudo -u $(echo $HOME |cut -d/ -f3) gpg --keyserver keys.gnupg.net --recv 886DDD89
sudo -u $(echo $HOME |cut -d/ -f3) gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
fi
if [ $HOME == "/root" ]; then
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
fi
apt-get update
apt-get install tor tor-geoipdb polipo vidalia
apt-get remove privoxy
wget https://svn.torproject.org/svn/torbrowser/trunk/build-scripts/config/polipo.conf
cp polipo.conf /etc/polipo/config
cp polipo.conf ~/.polipo
/etc/init.d/polipo restart
/etc/init.d/tor stop
firefox https://addons.mozilla.org/en-US/firefox/addon/2275
vidalia
0 comments:
Post a Comment