Installing a Debian Machine

Installation
sudo apt install cage chromium kanshi
sudo useradd -d "/var/lib/chromium" --create-home --groups input,render,video --shell /usr/sbin/nologin --system chromium
sudo tee "/etc/systemd/system/wl-chromium.service" >/dev/null <<'EOF'
[Unit]
Description=Wayland Kiosk (Chromium)
Conflicts=getty@tty1.service
After=getty@tty1.service
[Service]
Type=simple
User=chromium
Group=chromium
PAMName=login
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
StandardInput=tty
StandardOutput=journal
StandardError=journal
UtmpIdentifier=tty1
UtmpMode=user
EnvironmentFile=/etc/default/chromium
Environment=XDG_SESSION_TYPE=wayland
ExecStart=/usr/bin/cage -- /usr/bin/chromium $CHROMIUM_OPTS
Restart=always
RestartSec=2
[Install]
WantedBy=graphical.target
EOF
sudo systemctl daemon-reload
sudo systemctl disable --now getty@tty1.service
sudo systemctl enable --now wl-chromium.service
GRUB_TIMEOUT=1
GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=0 loglevel=3"
sudo update-grub
Intel video driver
sudo apt install intel-media-va-driver vainfo
Debugging
sudo apt install evtest python3-evdev libinput-tools