RaspberryPi Zero | Utiliser Chromium en mode Kiosk

Configuration
sudo raspi-config

change pi password
change hostname
set wifi ssid and pass
set timezone
inferface opt -> SSH enable
Boot Options -> Desktop / CLI -> Console Autologin
finish -> reboot

Creating a Minimum X Server Environment for the Chromium Browser

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox -y
sudo apt-get install --no-install-recommends chromium-browser -y

Remove Rainbow Screen

sudo nano /boot/config.txt

# Disable rainbow image at boot
disable_splash=1

Configure Openbox

sudo nano /etc/xdg/openbox/autostart

# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms

# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp

# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'

sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/'  ~/.config/chromium/Default/Preferences

chromium-browser --disable-infobars --noerrdialogs --incognito --check-for-update-interval=1 --simulate-critical-update --kiosk '[https://YOUR-URL-HERE]'

Start X automatically on boot

sudo nano .profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

Vertical screen (OPTIONAL)

sudo nano /boot/config.txt

display_rotate=1