Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contenuto wpa_supplicant.conf:
- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
- update_config=1
- network={
- ssid="YOUR_SSID_HERE"
- psk="YOUR_SECRET_PASSPHRASE_HERE"
- id_str="SOME_DESCRIPTIVE_NAME"
- }
- # PER LA CONFIGURAZIONE IP STATICO:
- #1) Uno di queste due comandi, a seconda se state usando ethernet o wifi
- ip -4 addr show dev eth0 | grep inet
- ip -4 addr show dev wlan0 | grep inet
- #2) Scopriamo l'ip interno del router
- ip route | grep default | awk '{print $3}'
- #3) I DNS...
- cat /etc/resolv.conf
- #4) E questa รจ la roba da scrivere nel file
- interface eth0
- static ip_address=
- static routers=
- static domain_name_servers=
- interface wlan0
- static ip_address=
- static routers=
- static domain_name_servers=
- # INSTALLARE SWITCHANDO
- wget https://www.switchando.com/switchando/install-switchando.sh && chmod +x install-switchando.sh && ./install-switchando.sh
- # FIRMWARE SONOFF
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement