The following code will boot your Raspberry Pi 4 straight into a full screen kiosk mode that displays a specific web page. The screen size is for the official Raspberry Pi screen 7 inch.
This uses Raspbian and chrome, which should come pre installed.
1 2 3 |
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart |
Then just paste this code
1 2 3 4 5 6 |
@lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash /usr/bin/chromium-browser --window-size=800,400 --kiosk --disable-overlay-scrollbar --noerrdialogs --incognito --window-position=0,0 --app=https://www.codehaven.co.uk |
Save all the files.
CTRL-O
CTRL-X
Then sudo reboot, and it will then boot to this website.