commit 2699b6b1631bc049f62d457503d25c2364021938 Author: Arturo Filastò art@fuffa.org Date: Mon Mar 10 01:17:38 2014 +0100
Add script for automatically deploying ooniprobe on planetlab --- ooni/nettests/blocking/bridge_reachability.py | 2 +- scripts/install_on_planetlab.sh | 83 +++++++++++++++++++++++++ 2 files changed, 84 insertions(+), 1 deletion(-)
diff --git a/ooni/nettests/blocking/bridge_reachability.py b/ooni/nettests/blocking/bridge_reachability.py index 7742629..7c519ec 100644 --- a/ooni/nettests/blocking/bridge_reachability.py +++ b/ooni/nettests/blocking/bridge_reachability.py @@ -39,7 +39,7 @@ class BridgeReachability(nettest.NetTestCase): if self.input.startswith('Bridge'): self.bridge = self.input.replace('Bridge ', '') self.pyobfsproxy_bin = find_executable('obfsproxy') - + def test_full_tor_connection(self): def getTransport(address): """ diff --git a/scripts/install_on_planetlab.sh b/scripts/install_on_planetlab.sh new file mode 100644 index 0000000..1e63201 --- /dev/null +++ b/scripts/install_on_planetlab.sh @@ -0,0 +1,83 @@ +#!/bin/sh +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` + +# Install Python 2.7.6 +wget http://legacy.python.org/ftp//python/2.7.6/Python-2.7.6.tgz +tar xzf Python-2.7.6.tgz +cd Python-2.7.6 +./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" +make +sudo make altinstall +sudo ln -sf /usr/local/bin/python2.7 /usr/bin/python + +# Install the latest version of libtool +wget http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz +tar xzf libtool-2.4.2.tar.gz +cd libtool-2.4.2 +./configure +make +sudo make install +sudo mv /usr/bin/libtool /usr/bin/libtool.old +sudo ln -s /usr/local/bin/libtool /usr/bin/libtool + +# Install the latest version of autoconf +wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz +tar xzf autoconf-2.69.tar.gz +cd autoconf-2.69 +./configure +make +sudo make install +sudo mv /usr/bin/autoconf /usr/bin/autoconf.old +sudo ln -s /usr/local/bin/autoconf /usr/bin/autoconf + +# Install the latest version of automake +wget http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz +tar xzf automake-1.14.1.tar.gz +cd automake-1.14.1 +./configure +make +sudo make install +sudo mv /usr/bin/automake /usr/bin/automake.old +sudo ln -s /usr/local/bin/automake /usr/bin/automake + +# Install latest version of libevent +wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz +tar xvzf libevent-2.0.21-stable.tar.gz +cd libevent-2.0.21-stable +./autogen.sh +./configure +cp /usr/bin/libtool libtool +make +sudo make install + +# Install the latest version of Tor +wget -O tor.zip https://github.com/hellais/tor/archive/fix/fedora8.zip +unzip tor.zip +cd tor-fix-fedora8 +./autogen.sh +./configure --disable-asciidoc --with-libevent-dir=/usr/local/lib/ +make +sudo make install + +# Install libGeoIP +wget -O master.zip https://github.com/maxmind/geoip-api-c/archive/master.zip +unzip master.zip +cd geoip-api-c-master/ +./bootstrap +./configure +make +sudo make install + +# Install the latest version of pip +wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py +sudo python get-pip.py + +# Install the patched versions of cryptography and pyopenssl +sudo pip install https://github.com/hellais/cryptography/archive/fix/openssl0.9compat.zip +sudo pip install https://github.com/hellais/pyopenssl/archive/fix/openssl0.9.8compat.zip + +# Install ooniprobe and obfsproxy +sudo pip install https://github.com/TheTorProject/ooni-probe/archive/master.zip +sudo pip install obfsproxy
tor-commits@lists.torproject.org