[wd_asp elements=’search’ ratio=’100%’ id=1]

Autostart Browser in Kiosk Mode – Raspberry Pi 4 Terminal Command

8th September 2021

Raspberry-Pi

Raspberrypi - Codehaven

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.


sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

Then just paste this code


@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.