Skip to content

Instantly share code, notes, and snippets.

@RickyVaughn2
Last active July 18, 2019 19:54
Show Gist options
  • Save RickyVaughn2/f2753e9bf3837ba3bc656f0b7a6cd5f3 to your computer and use it in GitHub Desktop.
Save RickyVaughn2/f2753e9bf3837ba3bc656f0b7a6cd5f3 to your computer and use it in GitHub Desktop.
DP/Sense3 Installer
#run the following command:
#sudo visudo
#add the following to the bottom of the file
#alerttech ALL=(ALL) NOPASSWD:ALL
sudo apt install curl -y
sudo apt install git -y
sudo apt install mosquitto mosquitto-clients -y
sudo apt-get install build-essential -y
cd ~/Downloads
git clone https://github.com/eclipse/paho.mqtt.c.git
sudo apt install libssl-dev -y
cd paho.mqtt.c
make
sudo make install
cd ~/Downloads
sudo apt-get install git-core -y
sudo apt-get update
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd ~/Downloads
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g --unsafe-perm node-red
sudo npm install -g pm2
sudo pm2 start /usr/bin/node-red -- -v
sudo pm2 save
sudo pm2 startup
sudo usermod -a -G dialout alerttech
sudo chown -R alerttech /home/alerttech
sudo chmod +x ~/Downloads/comet131
cd ~/Downloads
sudo ./comet131
#run comet now and wait for it to create both files in the homd directory
#once it has, kill comet and continue
#this will change ownership of the parms and log files so that you can edit them easily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment