apt install -y chromium xorg unclutter
/etc/systemctl/system/xorg.service
- This starts X which manages the screencat xorg.service
[Unit]
Description=Service for Xorg X11
[Service]
ExecStart=/usr/bin/Xorg
[Install]
WantedBy=multi-user.target
/etc/systemctl/system/kiosk.service
- This runs chromium as full screen for a HD sized screen. Be sure to change the URL from google to the web app you want to show[Unit]
Description=Service for Chromium in kiosk mode
After=xorg.service
Wants=network-online.target
[Service]
ExecStart=/usr/bin/chromium --no-sandbox --kiosk --window-size=1920,1080 https://google.com
Environment=DISPLAY=:0
[Install]
WantedBy=multi-user.target
/etc/systemctl/system/configx.service
- This will disable the display blanking feature of X which turns off the display after 10 minutes[Unit]
Description=Disable display blanking on X
After=xorg.service
[Service]
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/xset -dpms
Environment=DISPLAY=:0
Type=oneshot
[Install]
WantedBy=multi-user.target
/etc/systemctl/system/unclutter.service
- This will hide the cursor if it is not moving after one second, to keep your UI clean[Unit]
Description=Hide cursor
After=xorg.service
[Service]
ExecStartPre=/bin/sleep 5
ExecStart=unclutter -idle 1
Environment=DISPLAY=:0
[Install]
WantedBy=multi-user.target
systemctl enable --now xorg
systemctl enable --now kiosk
systemctl enable --now configx
systemctl enable --now unclutter
systemctl daemon-reload
and then restart the relevant services.