Raspberry Pi: Kiosk Chromium

Installation

Installer les paquets:

apt install chromium-browser freerdp2-x11 freerdp2-dev pyqt5-dev pyqt5-dev-tools lightdm unclutter

Exécuter raspi-config et activer:

Autlogin graphic

SSH

Editer un fichier script

nano /home/pi/script.sh

Contenu:

#!/bin/sh xset -dpms # disable DPMS (Energy Star) features. xset s off # disable screen saver xset s noblank # don't blank the video device GEO="$(fbset -s | awk '$1 == "geometry" { print $2":"$3 }')" WIDTH=$(echo "$GEO" | cut -d: -f1) HEIGHT=$(echo "$GEO" | cut -d: -f2) unclutter & # hide X mouse cursor unless mouse activated chromium-browser --display=:0 --ash-host-window-bounds=$WIDTH,$HEIGHT --window-size=$WIDTH,$HEIGHT --window-position=0,0 --ignore-certificate-errors --disable-infobars --noerrdialogs --test-type --kiosk --start-maximized https://www.makeitsimple.be

Rendre le script exécutable:

chmod +x script.sh

Modifier le fichier xsession:

nano .xsession

Contenu: <file bash .xsession>exec /home/pi/script.sh</code>

Splash screen

Installer le paquet:

apt install rpd-plym-splash

Activer le splash screen dans raspi-config

Copier le logo à la place de celui dans /usr/share/plymouth/themes/pix/splash.png