forked from harlo/UnveillanceAnnex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·54 lines (43 loc) · 1.05 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
THIS_DIR=`pwd`
if [ $# -eq 0 ]
then
LAUNCH_ANNEX=true
WITH_CONFIG=0
else
LAUNCH_ANNEX=false
WITH_CONFIG=$1
fi
sudo apt-get install -y gcc lsof
PYTHON_VERSION=$(which python)
if [[ $PYTHON_VERSION == *anaconda/bin/python ]]
then
echo "ANACONDA already installed. Skipping"
else
wget -O lib/anaconda.sh http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh
chmod +x lib/anaconda.sh
echo "**************************************************"
echo "Installing Python Framework via ANACONDA"
sleep 10
./lib/anaconda.sh
sleep 3
ANACONDA=$(grep "anaconda" ~/.bashrc)
echo $ANACONDA >> ~/.bash_profile
sleep 3
fi
source ~/.bash_profile
cd lib/Core
pip install -r requirements.txt
cd $THIS_DIR
pip install -r requirements.txt
cd lib/socksjs-tornado
python setup.py install
cd $THIS_DIR
echo "**************************************************"
python setup.py $WITH_CONFIG
source ~/.bash_profile
sleep 2
if $LAUNCH_ANNEX; then
chmod 0400 conf/*
python unveillance_annex.py -firstuse
fi