====== Neu aufsetzen ====== ===== Headless einrichten ===== In Boot Partition eine Datei names ssh erstellen. In Boot Partition eine Datei names ''wpa_supplicant.conf erstellen mit Inhalt:'' # Datei wpa_supplicant.conf in der Boot-Partition (Raspbian Stretch) country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="wlan-bezeichnung" psk="passwort" key_mgmt=WPA-PSK } ===== Fröling ===== sudo apt-get install lftp rrdtool mc Datein ins Verzeichnis /data kopieren (liegen im Backup) sudo crontab -e */1 * * * * /data/froling.sh>/dev/null 2>&1 */10 * * * * /data/rrdgraph.sh all>/dev/null 2>&1 */10 * * * * /data/rrdgraph.sh daily>/dev/null 2>&1 20 8-23 * * * /data/mailer.sh>/dev/null 2>&1 ==== Lighttpd ==== sudo apt-get install lighttpd sudo chown www-data:www-data /data/public_html sudo chmod 775 /data/public_html sudo usermod -a -G www-data pi sudo mc -e /etc/lighttpd/lighttpd.conf server.document-root = "/data/public_html" sudo /etc/init.d/lighttpd start ===== Fehlerstatus über Email ===== sudo apt-get install ssmtp mailutils sudo nano /etc/ssmtp/ssmtp.conf root=postmaster mailhub=192.168.178.48:25 hostname=Rasp-Heizung FromLineOverride=YES #!/bin/bash -x # # shell> sudo crontab -e # 20 8-23 * * * /data/mailer.sh>/dev/null 2>&1 # auch beim minütlichen Fröling>/dev/null 2>&1 WERTE=$(cat /data/logfile.txt | grep Fehler) if test "$WERTE" = "Fehler;Kein Fehler ;99;1; ;" then if [ -f fehler.txt ] then rm fehler.txt fi else if [ -f fehler.txt ] then echo Fehler else echo "$WERTE" | mail -s"Fröling Fehler" tom@local.de fi touch fehler.txt fi