Updated install process #4

Merged
sixteenmillimeter merged 11 commits from dev into master 2018-10-11 00:47:50 +00:00
2 changed files with 24 additions and 24 deletions
Showing only changes of commit 3a4ee57982 - Show all commits

View File

@ -1,17 +1,17 @@
#!/bin/bash #!/bin/bash
echo "Running intval3 dependency install script" echo "Running intval3 dependency install script"
apt-get update sudo apt update
apt-get install git ufw nginx jq -y sudo apt install git ufw nginx jq -y
echo "Installing node.js dependencies.." echo "Installing node.js dependencies.."
apt-get install nodejs npm -y sudo apt install nodejs npm -y
npm install -g n sudo npm install -g n
n latest sudo n latest
npm install -g npm@latest sudo npm install -g npm@latest
npm install -g pm2 node-gyp sudo npm install -g pm2 node-gyp
echo "Installing bluetooth dependencies..." echo "Installing bluetooth dependencies..."
apt-get install bluetooth bluez libbluetooth-dev libudev-dev -y sudo apt install bluetooth bluez libbluetooth-dev libudev-dev -y
echo "Finished installing intval3 dependencies" echo "Finished installing intval3 dependencies"

View File

@ -1,28 +1,28 @@
#!/bin/bash #!/bin/bash
echo "Running intval3 install script" echo "Running intval3 install script"
apt-get update sudo apt update
apt-get install git ufw nginx jq -y sudo apt install git ufw nginx jq -y
echo "Installing node.js dependencies.." echo "Installing node.js dependencies.."
apt-get install nodejs npm -y sudo apt install nodejs npm -y
npm install -g n sudo npm install -g n
n 9.1.0 sudo n 9.1.0
npm install -g npm@latest sudo npm install -g npm@latest
npm install -g pm2 node-gyp sudo npm install -g pm2 node-gyp
echo "Installing bluetooth dependencies..." echo "Installing bluetooth dependencies..."
apt-get install bluetooth bluez libbluetooth-dev libudev-dev -y sudo apt install bluetooth bluez libbluetooth-dev libudev-dev -y
systemctl disable bluetooth sudo systemctl disable bluetooth
hciconfig hci0 up sudo hciconfig hci0 up
echo "Configuring ufw (firewall)..." echo "Configuring ufw (firewall)..."
ufw default deny incoming sudo ufw default deny incoming
ufw default allow outgoing sudo ufw default allow outgoing
ufw allow ssh sudo ufw allow ssh
ufw allow http sudo ufw allow http
ufw allow https sudo ufw allow https
ufw enable sudo ufw enable
echo "Installing intval3 project..." echo "Installing intval3 project..."
wget https://github.com/sixteenmillimeter/intval3/archive/master.zip wget https://github.com/sixteenmillimeter/intval3/archive/master.zip