Skip to content

Instantly share code, notes, and snippets.

@RickyVaughn2
Last active March 2, 2017 18:12
Show Gist options
  • Save RickyVaughn2/d3329bf33529d25bfa6065a2fefce348 to your computer and use it in GitHub Desktop.
Save RickyVaughn2/d3329bf33529d25bfa6065a2fefce348 to your computer and use it in GitHub Desktop.
basicNodeMQTT.sh
#!/bin/bash
# - lcoation: https://goo.gl/DjOxoq
# - download: wget https://goo.gl/DjOxoq (this is the .sh file)
# - execute: bash <(curl -s https://gist.githubusercontent.com/RickyVaughn2/d3329bf33529d25bfa6065a2fefce348/raw/1eeb496a42544a6af754cafa373bea678c8cf1b6/basicNodeMQTT.sh)
echo **--**
sudo apt update
sudp apt -y upgrade
echo **--**
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs
sudo apt install -y build-essential
sudo npm install -g npm@2.x
sudo npm install -g node-gyp
echo **--**
sudo npm install -g --unsafe-perm node-red
sudo npm install -g node-red-admin
echo **--**
sudo apt install -y mosquitto
sudo apt install -y mosquitto-clients
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment