Install Chromium in kiosk mode
From https://itnext.io/raspberry-pi-read-only-kiosk-mode-the-complete-tutorial-for-2021-58a860474215
install prerequisites using
sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
install chromium using
sudo apt-get install --no-install-recommends chromium-browser
edit autostart file using
sudo nano /etc/xdg/openbox/autostart
insert lines:
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 --start-fullscreen --kiosk --incognito --noerrdialogs --disable-translate --no-first-run --fast --fast-start --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null --password-store=basic --disable-pinch --overscroll-history-navigation=disabled --disable-features=TouchpadOverscrollHistoryNavigation 'http://localhost:1880/ui'
make everything start on boot using
sudo nano .bash_profile
insert this line:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
Additional information: there was an additionary flag to chromium-browser: temporary-unexpire-flags-m80. This flag was removed from chromium as of 20.6.2021, so the command above is updated. Thanks to the information from Paul den Hertog. There is a possibility, that some flags won’t be necessary, as you are reading this article in the future.
TIP: by pressing Ctrl-Alt-Backspace you can kill chromium and get into command line