SignageWithAlpineLinux: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
support multiple browsers as an option
K (zwischenstand)
(support multiple browsers as an option)
setup-devd
 
=== setup viewerwindowmanager ===
* install window manager
apk add seatd wlr-randr mesa-dri-gallium sway
apk add wlr-randr chromium wtype
 
* start seatd on boot and add "sign" to its group
rc-service seatd start
rc-update add seatd default
adduser sign seat # grant sign access to seatd
 
* copy and edit sway config for user "sign"
mkdir -p /home/sign/.config/sway
output HDMI-A-1 mode 1920x1080
exec /home/sign/swaystart.sh &" >> ~/.config/sway/config
chmod +xtouch /home/sign/swaystart.sh
 
* setup autostart for user "sign"
echo "#!/bin/sh
su -c /home/sign/autostart.sh - sign &" > /etc/local.d/user-sign.start
rc-update add local default
 
* autostart chromium inside sway on boot
echo "#!/bin/sh
sway &" > /home/sign/autostart.sh
 
* fix file permissions
chmod +x /home/sign/autostart.sh
chmod +x /home/sign/swaystart.sh
 
* configure XDG_RUNTIME_DIR
echo "if test -z "${XDG_RUNTIME_DIR}"; then
fi
fi" > /home/sign/.profile
 
* autostart chromium inside sway on boot
=== setup browser (chromium) ===
echo "#!/bin/sh
You can use pretty much any browser that supports wayland. The default is chromium.
sway" > /home/sign/autostart.sh
* install and autostart chromium
apk add chromium
 
echo "#!/bin/sh
chromium-browser --kiosk -incognito \
WAYLAND_DISPLAY=wayland-1 wtype -P F5
done" > /home/sign/swaystart.sh
 
* fix file permissions
=== setup browser (falkon) ===
chmod +x /home/sign/autostart.sh
In case you don't want to use chromium you can also use another browser. For instance falkon.
chmod +x /home/sign/swaystart.sh
* install and autostart falkon
apk add falkon
 
echo "#!/bin/sh
falkon -e -i -f https://example.com &
while true; do
# after a while all browsers begin to stutter. Here is a crude fix
sleep 600
WAYLAND_DISPLAY=wayland-1 wtype -P F5
done" > /home/sign/swaystart.sh
 
=== setup SPN viewer ===
859

Bearbeitungen

Navigationsmenü