Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wget http://direct.fantasy2001.com/switchando-server-SW-BU4.5b04S.zip
- sudo apt-get install mosquitto mosquitto-clients mono-complete screen
- rm -rf HomeAutomation
- rm switchando-server-SW-BU4.5b04S.zip
- cd /var/www/html
- sudo rm -rf ./*
- cd ~
- nano mqtt.txt
- mosquitto_passwd -U mqtt.txt
- cd /etc/mosquitto
- sudo nano mosquitto.conf
- allow_anonymous false
- password_file /home/pi/mqtt.txt
- sudo service mosquitto restart
- cd ~/Switchando\ Server
- mono HomeAutomation\ 4\ Server.exe
- # scaricare lo zip da https://github.com/mirko/SonOTA
- # sul computer (non sul raspberry):
- py -3.5 -m pip install --upgrade pip
- py -3.5 -m pip install --user -r requirements.txt
- py -3.5 sonota.py
- # autorun:
- cd ~/Switchando\ Server/
- nano run
- #!/bin/bash
- sudo pigpiod
- while :
- do
- mono "/home/pi/Switchando Server/HomeAutomation 4 Server.exe"
- sleep 1
- echo "Restarting..."
- done
- chmod +x run
- cd /etc/init.d
- sudo rm bootHA
- sudo nano bootSwitchando
- #!/bin/bash
- cd "/home/pi/Switchando Server"
- screen -d -m "/home/pi/Switchando Server/run"
- sudo chmod +x bootSwitchando
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement