[tor-commits] [ooni-probe/master] Update install script to use system tor.
art at torproject.org
art at torproject.org
Mon Mar 24 15:02:47 UTC 2014
commit 64361e316456e576282076e633c3beeb3125d629
Author: Arturo Filastò <art at fuffa.org>
Date: Mon Mar 10 02:02:38 2014 +0100
Update install script to use system tor.
---
scripts/install_on_planetlab.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/scripts/install_on_planetlab.sh b/scripts/install_on_planetlab.sh
index 1e63201..afa9022 100644
--- a/scripts/install_on_planetlab.sh
+++ b/scripts/install_on_planetlab.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+## You should also create a file from the directory where you run this script
+## called torrc with inside the details of the torrc to use.
+
sudo yum -y groupinstall "Development tools"
sudo yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel libffi-devel screen libeven-devel unzip
cd `mktemp -d`
@@ -60,6 +63,11 @@ cd tor-fix-fedora8
./configure --disable-asciidoc --with-libevent-dir=/usr/local/lib/
make
sudo make install
+sudo mv /usr/bin/tor /usr/bin/tor.old
+sudo ln -s /usr/local/bin/tor /usr/bin/tor
+echo "SocksPort 9050" > /usr/local/etc/tor/torrc
+cat torrc >> /usr/local/etc/tor/torrc
+/etc/init.d/tor restart
# Install libGeoIP
wget -O master.zip https://github.com/maxmind/geoip-api-c/archive/master.zip
@@ -81,3 +89,7 @@ sudo pip install https://github.com/hellais/pyopenssl/archive/fix/openssl0.9.8co
# Install ooniprobe and obfsproxy
sudo pip install https://github.com/TheTorProject/ooni-probe/archive/master.zip
sudo pip install obfsproxy
+
+# Update the Tor running in ooniprobe
+cat ~/.ooni/ooniprobe.conf | sed s/'start_tor: true'/'start_tor: false'/ | sed s/'#socks_port: 8801'/'socks_port: 9050'/ > ~/.ooni/ooniprobe.conf.new
+mv ~/.ooni/ooniprobe.conf.new ~/.ooni/ooniprobe.conf
More information about the tor-commits
mailing list