-
Notifications
You must be signed in to change notification settings - Fork 13
/
installer.sh
35 lines (27 loc) · 918 Bytes
/
installer.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
# Update and Upgrade your distro before installing anything
sudo apt update && yes | sudo apt upgrade
# Install Python3 and python-related packages
sudo apt-get -y install python3
sudo apt-get -y install python3-pip
yes | sudo pip3 install commentjson
yes | sudo pip3 install websocket-client
sudo apt-get -y install git-core
# Install Webclient pre-requisites - Node.js and NPM
sudo apt-get -y install nodejs
curl -L https://npmjs.org/install.sh | sudo sh
# Install the server nanny used for restarting the Webclient should it terminate
sudo npm install -g forever
# Clone dumserver
git clone https://github.com/wowpin/dumserver.git
cd dumserver
# Set the home directory location
echo "Setting /tmp/dum.home to:"
echo $PWD
echo $(pwd)> /tmp/dum.home
# Install required Python modules
sudo pip3 install -r requirements.txt
cd ..
# Install required Node libraries
cd dumserver/webclient
sudo npm install
cd ..