How to make the Raspberry Pi display a web page fullscreen at power on
This short tutorial should be enough for you to be able to setup a Raspberry Pi with GUI mode and auto login enabled to disable a web page full screen automatically when it turns on.
- Copy
full-screen.sh
into the home folder of the pi user, and run the following command:/home/pi/full-screen.sh
sudo chmod +x full-screen.sh
full-screen.sh
export DISPLAY=:0.0
xset s off
xset -dpms
xset s noblank
chromium-browser --noerrdialogs --kiosk https://google.co.uk --incognito
- Create a folder called autorun inside the
.config
folder of the home folder of the pi user:/home/pi/.config/autorun/kiosk.desktop
cd /home/pi/.config
mkdir autorun
kiosk.desktop
[Desktop Entry]
Type=Application
Exec=/home/pi/full-screen.sh
Hidden=false
X-GNOME-Autostart-enabled=true
Name=kiosk
- Reboot the Raspberry Pi.
sudo reboot now