[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] some steps closer to a fully running setup, documented the open issues
commit 0f7d42ecc861f79d7f14ee98feb35c48496a782f
Author: fh <fh-github@xxxxxxxxxxxxx>
Date: Sun Jul 28 10:54:49 2013 +0200
some steps closer to a fully running setup, documented the open issues
---
Vagrantfile | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/Vagrantfile b/Vagrantfile
index 1434fd2..493580f 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -5,29 +5,44 @@ Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
- config.vm.box = "precise32"
+ config.vm.box = "precise"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
- config.vm.synced_folder ".", "/data/ooniprobe"
+ config.vm.synced_folder ".", "/usr/share/ooni/"
end
$script = <<SCRIPT
apt-get update
-apt-get -y install curl python-setuptools python-dev python-software-properties python-virtualenv virtualenvwrapper vim
+apt-get -y install curl python-setuptools python-dev python-software-properties python-virtualenv virtualenvwrapper vim unzip libpcap-dev
-cd /data/ooniprobe
+cd /usr/share/ooni/
./setup-dependencies.sh
+cd data
+make geoip
+
echo "source ~/.virtualenvs/ooniprobe/bin/activate" >> ~root/.bashrc
mkdir -p ~/.ooni
-cp /data/ooniprobe/data/ooniprobe.conf.sample ~/.ooni/ooniprobe.conf
+cp /usr/share/ooni/data/ooniprobe.conf.sample ~/.ooni/ooniprobe.conf
+
+# https://code.google.com/p/pypcap/issues/detail?id=27
+# pip install pydnet pypcap
+
+apt-get install tor
echo Login using 'vagrant ssh', and dont forget to run ooniprobe as root.
+echo First run: 'sudo su; cd /usr/share/ooni; ./bin/ooniprobe -i decks/before_i_commit.testdeck'
SCRIPT
+# TODO:
+# Somehow, ooniprobe is not capable to connect to tor by default. My current
+# workaround is to kill tor, and set "start_tor: true" in /root/.ooni/ooniprobe.conf
+#
+
+
Vagrant.configure("2") do |config|
config.vm.provision :shell, :inline => $script
end
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits