diff --git a/installation.txt b/installation.txt index 585b980..8b4d13f 100644 --- a/installation.txt +++ b/installation.txt @@ -127,6 +127,50 @@ ps -ef | grep python tail -f /home/pi/piplayer2/piplayer2.log +# SD-Karte read-only nach https://www.heise.de/ct/ausgabe/2016-21-Den-Raspi-als-Bluetooth-Empfaenger-einsetzen-3330683.html + +sudo nano /etc/fstab +# proc /proc proc defaults 0 0 +# /dev/mmcblk0p1 /boot vfat defaults,ro 0 2 +# /dev/mmcblk0p2 / ext4 defaults,noatime,ro 0 1 +# tmpfs /var/log tmpfs nodev,nosuid 0 0 +# tmpfs /var/tmp tmpfs nodev,nosuid,mode=1777 0 0 +# tmpfs /tmp tmpfs nodev,nosuid,mode=1777 0 0 +# tmpfs /home/pi/.config tmpfs nodev,nosuid,mode=1777,uid=pi 0 0 +# tmpfs /home/pi/.moc tmpfs nodev,nosuid,mode=1777,uid=pi 0 0 +# # a swapfile is not a swap partition, no line here +# # use dphys-swapfile swap[on|off] for that + +sudo rm -rf /var/lib/dhcp/ /var/spool /var/lock /etc/resolv.conf +sudo ln -s /tmp /var/lib/dhcp +sudo ln -s /tmp /var/spool +sudo ln -s /tmp /var/lock +sudo ln -s /tmp/resolv.conf /etc/resolv.conf + +sudo nano /etc/rc.local (hier nochmal mit allen Ergänzungen aus den vorherigen Schritten) +# ... +# +# # make /tmp on RAM disk writable +# chmod 777 /tmp +# +# # disable hdmi +# /usr/bin/tvservice -o +# +# # start piplayer +# su pi -c 'python3 /home/pi/piplayer2/piplayer2.py >> /tmp/piplayer2.log 2>&1 &' + +sudo reboot +exit 0 + + + +# Dateisystem temporär beschreibbar machen +sudo mount -o rw,remount / +sudo mount -o rw,remount /boot + + + + diff --git a/notes.md b/notes.md index f1d4da7..6049541 100644 --- a/notes.md +++ b/notes.md @@ -17,17 +17,23 @@ - SD Card read only: "Raspberry in Blue", c't 21/2016, S. 152 - Update unter https://www.heise.de/ct/ausgabe/2016-21-Den-Raspi-als-Bluetooth-Empfaenger-einsetzen-3330683.html In der Befehlsfolge auf Seite 154 fehlt in der ersten Zeile ein Leerzeichen. Der Befehl zum Löschen der Dateien lautet korrekt: - sudo rm -rf /var/lib/dhcp/ /var/spool /var/lock /etc/resolv.conf + sudo rm -rf /var/lib/dhcp/ /var/spool /var/lock /etc/resolv.conf + - Falls Sie das Dateisystem doch nochmal ändern oder Updates einspielen wollen, können Sie es mit "sudo mount -o rw,remount /" + und "sudo mount -o rw,remount /boot" wieder temporär beschreibbar machen. ## Scripting - Bugfix - Interrupts statt busy waiting: http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-part-3 - run statt call https://docs.python.org/3/library/subprocess.html + ## Gehäuse - Buttons per Acryl-Transfer beschriften? ch.16.05.110-115.pdf - Beim Zusammenbau Kamera vor dem Verkleben testen + ## Sonstiges - Backup SD Card + sudo dd if=/dev/mmcblk0 of=/media/tilman/ROT/raspberry-pi-zero_before-read-only.img bs=4M +- Passwort ändern und aufkleben