06 - 107 07 822 info@belois.nl
Sperwerhof 32 | 3862 LV NIJKERK

Autostart Raspberry Pi in Kiosk mode

Autostart Raspberry Pi in Kiosk mode


Eerst moeten we SSH configureren.

Setting up SSH

First we want to setup a static IP address for our Pi on the network. Make sure your pi is connected to your network and in a terminal window type
Note down the gateway and broadcast address and any other address settings you think you may need for your current connection.

Now in terminal we are going to edit your network settings and setup the static address. To do this type

sudo nano /etc/network/interfaces

This will open up your network interfaces file, start by changing the line that says
iface eth0 inet dhcp
iface eth0 inet static

Now you’ll need to add 3 lines straight after if they aren’t already there.

address xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx


Als we dat gedaan hebben kunnen het onderstaande uitvoeren om SSH aan te zetten en het password aan te passen.

Now that you have a static address set you can enable SSH on the pi. We’ll use the wizard that comes with raspbian to do this.
In terminal type

sudo raspi-config

First step should be to change your user password which should be option 2. The default username is pi and the default password is raspberry.


Daarna kunnen we op een andere computer in ons netwerk via SSH verbinding maken naar de raspberry pi.

ssh pi@xxx.xxx.xxx.xxx

Where the X’s represent the static address you gave your Pi in the previous part. If it’s worked you should be asked for your password. Enter the password you chose for your Pi and cross your fingers!

Now you should be greeted with a pi@xxx command prompt, this means you are now logged in and directly controlling your Pi.


Great, now you can put your Pi wherever it is going to live and never touch it again! We can now get on to setting up kiosk mode.

Setting up Kiosk mode

Nu kunnen we de kiosk mode gaan instellen. Voer hiervoor onderstaande opdracht uit:

Autostart Settings

Raspbian uses LXDE for its desktop environment. You can set application to automatically launch right from the autostart config file. Many of the Wheezy tutorials I found suggested modifying the global file but that does not appear to work in Jessie. Instead modify the file found in the pi user’s home directory:

vi /home/pi/.config/lxsession/LXDE-pi/autostart

Comment out the following line to disable the screensaver by adding a # to the beginning:

@xscreensaver -no-splash

Under that line add the following xset options to disable some of the power saving settings and ensure the screensaver is truly off:

@xset s off
@xset s noblank
@xset -dpms

Now, add a line to launch Chromium in kiosk mode. Obviously you’ll want to fill in your own URL at the end:

@chromium-browser --noerrdialogs --kiosk --incognito https://news.google.com

Now reboot and you should see the desktop auto-launch followed shortly by a full screen Chromium window.