-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetupAWS.sh
More file actions
31 lines (22 loc) · 840 Bytes
/
setupAWS.sh
File metadata and controls
31 lines (22 loc) · 840 Bytes
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
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
printf "\nsetupAWS.sh: Running installation script..."
printf "\nsetupAWS.sh: doing apt-get update.."
sudo apt-get update
printf "\nsetupAWS.sh: Installing git.."
sudo apt-get install -y git
printf -ne '\n' | apt-get upgrade -y
sudo apt-get install -y build-essential
printf "\nsetupAWS.sh: Installing python-dev..."
sudo apt-get install -y python-dev
printf "\nsetupAWS.sh: Installing pip.."
sudo apt-get install -y python-pip
printf "\nsetupAWS.sh: Cloning CSC326 project from Shafaaf's github"
sudo git clone https://github.com/shafaaf/csc326Project.git
sudo chmod -R 777 csc326Project/
cd csc326Project/csc326
printf "\nsetupAWS.sh: Pip installing requirements.txt"
sudo pip install -r requirements.txt
cd server
sudo python server.py
printf "\nsetupAWS.sh: Running server..."