SignageWithAlpineLinux: Unterschied zwischen den Versionen

K
keine Bearbeitungszusammenfassung
(adapt for tinydm)
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 and #uncomment the community repository
root> apk update
 
* fix file permissions
sign> chmod +x ~/swaystart.sh
sign> mkdir -p /tmp/1000-runtime-dir
 
* 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=httphttps://exampleschlangen.combytewerk.org/watch/
chromium-browser --kiosk -incognito \
--enable-features=UseOzonePlatform --ozone-platform=wayland \
--start-fullscreen --noerrdialogs --disable-infobars --disk-cache-dir=/dev/null \
--disk-cache-size=1 '\$URL' &
while true; do
# after a while all browsers begin to stutter. Here is a crude fix
852

Bearbeitungen