===== Schermen DJ-hok ===== ==== Systeem ==== 2 schermen via micro-HDMI verbonden met: * model: RaspBerry Pi 4B (DJ-hok: 8GB RAM, benedenbar: 1GB RAM) * systeem: RaspBerry Pi OS 12 ("bookworm") ==== Client-app slideshow ==== Om te zorgen dat Maarten Zoetemeijer zelf ook posters op de schermen kan knallen gebruiken we op Android de app //AndFTP// en verbinden middels SFTP naar de Pi in de directory sftp://192.168.178.9/home/pi/Pictures ==== Inrichting RaspBerry Pi ==== === Bijwerken en nodige packages erop === sudo apt update && sudo apt full-upgrade && sudo rpi-eeprom-update -a && sudo apt clean && sudo apt autoclean && sudo apt autoremove && deborphan sudo apt install deborphan feh chromium vim mc unclutter === Adapt autostart === pi@raspberrypi:~ $ cat /etc/xdg/lxsession/LXDE-pi/autostart @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash # Toevoegingen KvhP /home/pi/bin/untappd.sh sleep 15 unclutter & /home/pi/bin/slideshow.sh === Slideshow Photo's with `feh` === pi@raspberrypi:~ $ cat bin/slideshow.sh #!/bin/sh # autozoom full-screen "-Z" werkt niet; we staan niet full-screen maar op het rechter scherm ##feh -x --geometry 1080x1920+1080+0 -ZY -B black -Z --stretch --ignore-aspect -D 20 -r Pictures -R 300 # Vorige stand: feh -x --geometry 1080x1920+1080+0 -ZY -B black --scale-down --auto-zoom -D 20 -r /home/pi/Pictures -R 300 === Untappd Bierkaart via Chromium Browser === pi@raspberrypi:~ $ cat bin/untappd.sh #!/bin/sh ## untapped krijtbord #/usr/bin/chromium --kiosk --disable-restore-session-state http://business.untappd.com/boards/48272 & ## untapped foto /usr/bin/chromium --kiosk --disable-restore-session-state http://business.untappd.com/boards/59076 & === Daily reboot === Sinds de Pi op RaspBerry Pi OS 12 ("bookworm") draait is dit niet meer nodig. crontab -e pi@raspberrypi:~ $ sudo tail -2 /var/spool/cron/crontabs/pi # m h dom mon dow command 8 18 * * * sudo shutdown -r now === SWAP === pi@raspberrypi:~ $ sudo dphys-swapfile swapoff pi@raspberrypi:~ $ sudo vim /etc/dphys-swapfile pi@raspberrypi:~ $ egrep 'MAXSWAP|SWAPSIZE' /etc/dphys-swapfile ##CONF_SWAPSIZE=100 CONF_SWAPSIZE=4096 #CONF_MAXSWAP=2048 CONF_MAXSWAP=4096 pi@raspberrypi:~ $ sudo dphys-swapfile setup want /var/swap=4096MByte, checking existing: deleting wrong size file (2147483648), generating swapfile ... of 4096MBytes pi@raspberrypi:~ $ sudo dphys-swapfile swapon pi@raspberrypi:~ $ sudo reboot === Statisch IP === pi@raspberrypi:~ $ grep -A 3 "^interface eth0" /etc/dhcpcd.conf interface eth0 static ip_address=192.168.178.9/24 static routers=192.168.178.1 static domain_name_servers=192.168.178.1 8.8.8.8 8.8.4.4 === Disable compositor === sudo raspi-config * Advanced Settings * Compositor * No