852
Bearbeitungen
HKay (Diskussion | Beiträge) (adapt for tinydm) |
HKay (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
||
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Signage with Alpine linux on the raspberry pi
=== hardware ===
This guide works for the Raspberry Pi3 and Raspberry Pi4.
In case you want to run a viewer for Schlangenprogrammiernacht you'll need a Raspberry Pi4 as the javascript viewer ist quite demanding
=== setup image ===
* Format SD-Card as FAT32 with a MSDOS partition table
** select keyboard language (e.g. de-nodeadkeys)
** choose hostname (e.g. "signage")
** chose interface to listen for DHCP for (e.g. eth0)
** select timezone (e.g. Europe/Berlin)
** add user e.g. "sign"
root> apk update
root> apk add nano
root> nano /etc/apk/repositories
root> apk update
* fix file permissions
sign> chmod +x ~/swaystart.sh
* configure XDG_RUNTIME_DIR
sign> echo "if test -z \"\${XDG_RUNTIME_DIR}\"; then
export XDG_RUNTIME_DIR=/tmp/\$(id -u)-runtime-dir
if ! test -d \"\${XDG_RUNTIME_DIR}\"; then
mkdir \"\${XDG_RUNTIME_DIR}\"
chmod 0700 \"\${XDG_RUNTIME_DIR}\"
fi
fi" > ~/.profile
sign> echo "#!/bin/sh
URL=
chromium-browser --kiosk -incognito \
--enable-features=UseOzonePlatform --ozone-platform=wayland \
--start-fullscreen --noerrdialogs --disable-infobars --disk-cache-dir=/dev/null \
--disk-cache-size=1
while true; do
# after a while all browsers begin to stutter. Here is a crude fix
|