Update system first (apt update && apt upgrade)
Install evdev for resistive touch panel on SPI support - might be ommited. Next install matchbox desktop, and remove lxde, and cleanup unused packaged
apt install xserver-xorg-input-evdev
apt install matchbox-common matchbox-panel matchbox-panel-manager matchbox-themes-extra matchbox-window-manager
apt remove lxde lxpanel lxdm lxde-common
apt autoremove
run raspi-config
set: autologin to console (menu: 1 -> S5 -> B2 )
You need to install X server too:
sudo apt --no-install-recommends install xserver-xorg xserver-xorg-video-fbdev xinit pciutils xinput xfonts-100dpi xfonts-75dpi xfonts-scalable
and chromium-browser , or if you want firefox then skip this and go for "firefox":
sudo apt install chromium-browser
sudo apt install firefox-esr
At end ~/.bashrc add startx line:
if [ -z "${SSH_TTY}" ]; then
startx -- -nocursor
fi
# ...I do an else tmux attach for SSH here
now create file ".xsessionrc" , replace THE_URL_TO_LOAD/LOAD/LOAD.HTML
with your url path what page you want for chromium to load to.
You need to uncommnet firefox releated lins, and comment out chromium-releated.