[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Use the debian package instead of setup-dependencies



commit 83c76501e0005ce3ef7787a53efa73638a5b17f9
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Tue Jan 28 22:24:16 2014 +0100

    Use the debian package instead of setup-dependencies
---
 Vagrantfile |   26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/Vagrantfile b/Vagrantfile
index 9a9e490..1b41dee 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -13,22 +13,25 @@ Vagrant.configure("2") do |config|
 end
 
 $script = <<SCRIPT
-cd /ooni/
-export USE_VIRTUALENV=0
-./setup-dependencies.sh -y
-python setup.py install
 
-mkdir -p ~/.ooni
-cp /usr/share/ooni/ooniprobe.conf.sample ~/.ooni/ooniprobe.conf
+echo "deb http://deb.ooni.nu/ooni wheezy main" >> /etc/apt/sources.list
+echo "deb http://deb.torproject.org/torproject.org precise main" >> /etc/apt/sources.list
 
-cd /usr/share/ooni/inputs
-make lists 2>&1 > /dev/null
+# Install deb.ooni.nu key
+gpg --keyserver pgp.mit.edu --recv-key 0x49B8CDF4
+gpg --export 89AB86D4788F3785FE9EDA31F9E2D9B049B8CDF4 | apt-key add -
 
-# https://code.google.com/p/pypcap/issues/detail?id=27
-# pip install pydnet pypcap
+# Install deb.torproject.org key
+gpg --keyserver keys.gnupg.net --recv 886DDD89
+gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
+
+apt-get update
+
+apt-get install -y tor deb.torproject.org-keyring
+apt-get install -y ooniprobe
 
 echo "Login using 'vagrant ssh', and dont forget to run ooniprobe as root."
-echo "First run: 'sudo su; cd /usr/share/ooni; ooniprobe -i decks/basic.testdeck'"
+echo "First run: 'sudo ooniprobe -i /usr/share/ooni/decks/fast.deck'"
 
 SCRIPT
 
@@ -38,5 +41,4 @@ SCRIPT
 
 Vagrant.configure("2") do |config|
     config.vm.provision :shell, :inline => $script
-    config.vm.network :forwarded_port, guest: 8042, host: 8042
 end



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits