Aggiunta progetto MP-MON

This commit is contained in:
Samuele E. Locatelli
2017-09-16 09:43:46 +02:00
parent 6f58eb7141
commit 5f0cd357c8
91 changed files with 7553 additions and 0 deletions
@@ -0,0 +1,43 @@
#|/bin/bash
#installa il necessario per RPI-MON partendo dal contenuto della folder /home/pi/steamware
#step 1: creo file di log nuovi
rm /var/log/log*.txt
rm /home/pi/steamware/log*.txt
touch /var/log/logReboot.txt
touch /var/log/logBrowser.txt
touch /var/log/logTemp.txt
ln -sf /var/log/logReboot.txt /home/pi/steamware/logReboot.txt
ln -sf /var/log/logBrowser.txt /home/pi/steamware/logBrowser.txt
ln -sf /var/log/logTemp.txt /home/pi/steamware/logTemp.txt
chown pi:pi /home/pi -R
chmod 777 /var/log/log*.txt
#step 2: copio files in /usr/local/bin
chmod +x *.sh
cp *.sh /usr/local/bin/
# step 3: copio target systemd in avvio...
cp -f sendRebootIOB.service /etc/systemd/system/sendRebootIOB.service
echo ""
echo "-----------------------------------------------"
echo "Completare registrazione servizio avvio: digitare i seguenti comandi"
echo "systemctl enable sendRebootIOB"
echo "systemctl daemon-reload"
echo "systemctl status sendRebootIOB"
echo "-----------------------------------------------"
echo ""
echo ""
echo ""
echo "-----------------------------------------------"
echo "Infine creare voce crontab che salvi temperatura CPU/GPU ogni 20 minuti..."
echo "crontab -e"
echo "*/20 * * * * /usr/local/bin/saveTemp.sh"
echo "-----------------------------------------------"