Raspberry Pi Full Screen Browser

These are instructions to setup the Raspberry Pi to run the Chromium Browser in full screen kiosk mode.

Running full screen browser on boot

This is part of a series on running a browser full screen on a Raspberry Pi at boot.
The most current version is here:
Raspberry Pi Full Screen Browser (2020-05-27-raspios-buster)

Set Color Depth

Before installing the card in the Raspberry Pi, edit the config.txt and add to the bottom of the file:

# ADDED
framebuffer_depth=32
framebuffer_ignore_alpha=1

 Install Packages

Install card in the Raspberry Pi and update System (please see Raspberry Pi Install for details).
Install MS Core fonts, Chromium web browser, unclutter and x11-xserver-utils:

sudo apt-get install ttf-mscorefonts-installer chromium-browser unclutter x11-xserver-utils
  • ttf-mscorefonts-installer adds common web fonts
  • chromium-browser installs Google’s Chromium browser
  • unclutter is used to hide the mouse pointer
  • x11-xserver-utils installs xset, which is used to disable screen blanking

Edit Startup Scripts

Edit autostart to add chromium, unclutter and comment out xscreensaver.

sudo vi /etc/xdg/lxsession/LXDE/autostart

...
# CHANGED
#@xscreensaver -no-splash

# ADDED
@usr/bin/chromium-browser -incognito --kiosk http://YOUR-URL-HERE
@unclutter
...

Edit inittab to automatically login the pi user:

 sudo vi /etc/inittab

...
# CHANGED
# 1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
...

Edit rc.local to run startx:

sudo vi /etc/rc.local

...
# ADDED
su pi -c startx

# CHANGED
#exit 0
...

Edit /etc/X11/xinit/xinitrc to disable screen blanking:

sudo vi /etc/X11/xinit/xinitrc

#!/bin/sh

# BEGIN ADDED
# Disable screensaver
xset s off

# Disable screensaver blanking
xset s noblank

# Disable DPMS (Energy Star) features
xset -dpms

# END ADDED
...

Remove desktop icons:

rm -rf $HOME/Desktop/*.desktop

Reference:
http://elinux.org/RPi_Debian_Auto_Login
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=8298&p=210611
http://www.geckoboard.com/geckopi-run-geckoboard-on-a-raspberry-pi/

Comments are closed.