tor-router/install.sh
Zachary Robert Thomas Boyd 9c8795f330 _
2014-03-08 23:21:46 -05:00

19 lines
511 B
Bash

#!/bin/bash
URL=http://bit.ly/tor-router-zip
WAIT=1
echo "Updating Apt"
apt-get update;
echo "Installing prerequisites"
apt-get install -y -qq php5-cli unzip make uuid;
echo "Downloading auto-configuration toolkit from $URL"
wget $URL -O /tmp/master.zip;
sha1sum /tmp/master.zip > /etc/update_checksum
cd /tmp && unzip ./master.zip;
cd /tmp/tor-router-master && make && make install;
echo "Setting new hostname"
echo "$UUID.tor-routers" > /etc/hostname;
echo "Hostname >>>$UUID.tor-routers<<<"
/sbin/reboot