Version 0.3 Stand: 23.03.2017 ---------------------------------------------------------------------------- User: pi PW: qaws User: root PW: qaws --------------------------------------------------------------------------- 1) neustes Rasbian Lite Image auf SD-Card schreiben 2) per UART SSH aktivieren User: pi PW: raspberry 3) per SSH einloggen mit User: pi PW: raspberry 3.1) Root-Nutzer freigenen: 3.1.1) --> PW: qaws 3.1.2) sudo nano /etc/ssh/sshd_config <-- die Berechtigung für rootssh setzten, PermitRootLogin yes 3.1.3) sudo reboot 4) mit root einloggen: 4.1) raspi-config 4.1.1) Change User Password --> User: pi PW: qaws 4.1.2) Boot Options --> CLI ohne auto loggin 4.1.3) Localisation Options 4.1.3.1) Change Locale --> DE@de-UTF8 4.1.3.2) Change Timezone --> Berlin 4.1.4) Interfacing Options 4.1.4.1) enable Camera 4.1.5) reboot 5) mit root einloggen 5.1) hostname -b TLCXX 5.2) apt-get update 5.3) apt-get upgrade 5.4) apt-get install watchdog ppp usb-modeswitch weavedconnectd python3-picamera usbmount screenfetch 5.5) Sakis 5.5.1) wget http://raspberry-at-home.com/files/sakis3g.tar.gz 5.5.2) mkdir /usr/bin/modem3g 5.5.3) chmod 777 /usr/bin/modem3g 5.5.4) cp sakis3g.tar.gz /usr/bin/modem3g 5.5.5) cd /usr/bin/modem3g 5.5.6) tar -zxvf sakis3g.tar.gz 5.5.7) chmod +x sakis3g 5.5.8) cd /root 5.6) Speedtest CLI 5.6.1) wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py 5.6.2) chmod +x speedtest-cli 5.7) Swap deaktivieren 5.7.1) dphys-swapfile swapoff 5.7.2) systemctl disable dphys-swapfile 5.7.3) apt-get purge dphys-swapfile 5.8) Watchdog 5.8.1) modprobe bcm2835_wdt 5.8.2) echo "bcm2835_wdt" | tee -a /etc/modules 5.8.3) nano /etc/watchdog.conf 5.8.3.1) # entfernen bei: watchdog-device = /dev/watchdog UND max-load-1 = 24 5.8.4) nano /lib/systemd/system/watchdog.service 5.8.4.1) ergänzen um WantedBy=multi-user.target 5.8.5) systemctl enable watchdog.service 5.9) USB Mount 5.9.1) nano /etc/usbmount/usbmount.conf 5.9.2) FS_MOUNTOPTIONS="-fstype=vfat,gid=users,dmask=0007,fmask=0117" einfügen Edit /lib/systemd/system/systemd-udevd.service and change the line MountFlags=slave to MountFlags=shared then reboot 6) mit WinSCP als root einloggen 6.1) zoom.sh und test.sh in /root kopieren 6.2) chmod +x zoom.sh 6.3) chmod +x test.sh 6.4) camera.py und config.txt in /home/pi/ kopieren <-- gehört user pi 6.5) /home/pi/picture_Number.txt erstellen und 0 eintragen 6.6) camera_boot.log erstellen 7) Auto Start 7.1) crontab -e 7.2) @reboot /usr/bin/python3 /home/pi/camera.py 2>&1 >> /home/pi/camera_boot.log 2>&1 einfügen 8) Ordner anlegen 9.1) mkdir /media/usb/pictures 9.2) mkdir /media/usb/log