Last active
September 8, 2017 10:23
-
-
Save andriiburka/0d55463e77555b6985aa3021103d8c58 to your computer and use it in GitHub Desktop.
HAP-NodeJS_Installer_Edited_Specially_For_Me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/pi | |
sudo apt-get update | |
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key | |
sudo apt-key add mosquitto-repo.gpg.key | |
cd /etc/apt/sources.list.d/ | |
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list | |
cd | |
sudo apt-get update | |
sudo apt-get install mosquitto mosquitto-clients -y | |
sudo apt-get remove nodejs nodejs-legacy -y | |
sudo apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y | |
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb | |
sudo dpkg -i node_latest_armhf.deb | |
sudo rm -rf node_latest_armhf.deb | |
sudo npm install -g node-gyp | |
sudo git clone --branch v0.4.27 https://github.com/KhaosT/HAP-NodeJS.git | |
cd HAP-NodeJS/ | |
sudo rm -rf accessories/AirConditioner_accessory.js | |
sudo npm install | |
cd | |
sudo npm install forever -g | |
sudo nano /start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment