Skip to content

Commit

Permalink
Update install script with Gladys on NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Dec 1, 2015
1 parent 3f220c3 commit d80fe79
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions rpi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y build-essential

# Installing Node.js
#sudo curl -sL https://deb.nodesource.com/setup | sudo bash -
#sudo apt-get install -y nodejs

#wget http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
#sudo dpkg -i node_0.10.36_armhf.deb

wget https://nodejs.org/dist/v4.2.2/node-v4.2.2-linux-armv7l.tar.xz
tar -xvf node-v4.2.2-linux-armv7l.tar.xz
cd node-v4.2.2-linux-armv7l
Expand All @@ -44,17 +38,12 @@ sudo apt-get install -y libasound2-dev
# NPM global modules
sudo npm install -g pm2

cd /home/pi

sudo apt-get install -y git
#Cloning Gladys into "gladys" directory
git clone https://github.com/GladysProject/Gladys.git gladys
cd gladys

# Installing dependencies
sudo npm install --unsafe-perm
# Installing Gladys - One line ! :)
# --unsafe-perm is because of node serialport module
# which does not correctly install without unsafe perm
sudo npm install -g gladys --unsafe-perm

# Starting Gladys at startup
sudo pm2 startup
sudo pm2 start app.js --name gladys
sudo pm2 start gladys --name gladys
sudo pm2 save

0 comments on commit d80fe79

Please sign in to comment.