Raspberry Pi webkiosk

Make Raspberry Pi show a web page at boot.

Features

  • Full screen.
  • No errors.
  • Remote edit via SSH

Install Raspbian to SD card

see www.raspberrypi.org.

Start

Connect LAN, HDMI, keyboard and power.

Configure

When starting Raspbian for the first time you will see the Raspi Config tool. If it doesn’t start automatically, you can do it manually with sudo raspi-config. There are a few things you need to configure in raspi-config: (tip: config is slow. Wait some time after selecting options)

  • Advanced -> Update config tool
  • Advanced -> Enable SSH (remote config)
  • Advanced -> Disable overscan. This option tries to adjust the resolution for your Raspberry Pi. But it will only f**k things up 🙂
  • Boot to desktop with user pi. This will start-up the GUI instead of the CLI and automatically login to user ‘pi’.

Now reboot. Normally Raspi-config ask to reboot, but if it doesn’t you can reboot with sudo reboot

After rebooting the GUI environment will automatically startup and you will see the LXDE desktop environment.

Find Raspberry ip

use http://www.advanced-ip-scanner.com

hc_024

SSH

Use putty to remote modify Raspberry Pi from pc. www.putty.org/

hc_025

Insert host ip and click Open.
user:pi password:raspberry
Paste code with right mouse click.

Update repository

sudo apt-get update
sudo apt-get upgrade

Now we install the tools we need to perfectly show the webpage. The next command will install chromium (browser), x11 server utils and unclutter (to hide the cursor from the screen)

sudo apt-get install chromium x11-xserver-utils unclutter

Edit autostart file with nano.
(this has changed in Debian Wheezy. In the old versions it was /etc/xdg/lxsession/LXDE/autostart)

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

The autostart files needs to look like this.(use # to comment”)

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xset s off
@xset -dpms
@xset s noblank
@sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium/Default/Preferences
@chromium --noerrdialogs --kiosk http://www.skjolddisplay.no --incognito

The @xset options will disable the energy-options from the X-server so the screen won’t be shut down after a x amount of time. The @sed line will prevent errors to be shown. And finally Chromium will be startup in kiosk mode (with no error messages). Change the url to the url you want it to show. Local files are also possibly. -pi is to login user pi.
Press Ctrl+x to exit. press y to save. Press enter on the filename.

Hide boot text.

sudo nano /boot/cmdline.txt

Add following text to end of line.

quiet

Press Ctrl+x to exit. press y to save. Press enter on the filename.

restart Raspberry Pi with.

sudo reboot

Now Chromium will start after the raspberry pi is booted up and will show the webpage.(takes time)

 

Source: https://github.com/basdegroot/raspberry-pi-kiosk

pi ip’s: http://skjolddisplay.no/diverse/raspberrypi/ips.dat

installing kiosk browsers: https://github.com/elalemanyo/raspberry-pi-kiosk-screen