Raspberry pi kiosk mode part 1
Setup Raspberry Pi to start in Kiosk mode on raspbian with midori browser.
Install Raspbian Debian Wheezy
The first step is to install Raspbian on the Raspberry Pi. There are 2 ways to do this.
- via the Raspberry Pi NOOBS image. (http://www.raspberrypi.org/help/noobs-setup/) Install the NOOBS image and install Raspbian via the NOOBS install manager
- install directly the Raspbian image (http://www.raspberrypi.org/documentation/installation/installing-images/README.md)
At the end you need a fresh Raspbian Debian Wheezy installed on your Raspberry Pi.
Configure Raspbian
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 :
- Update the Raspi config tool (Advanced Options)
- Enable SSH
- Disable overscan. (Advanced Options)
- Change your boot to desktop environment.
Installation
- Update system
After reboot (GUI environment will automatically startup) SSH to the raspberry pi then update system
$ sudo apt-get update $ sudo apt-get upgrade - Get tools
Now we install the tools we need to perfectly show the app webpage.
$ sudo apt-get install midori x11-xserver-utils matchbox unclutterThe above command will install midori (browser), matchbox, x11 server utils and unclutter (to hide the cursor from the screen)
- Save this shell script:
/home/pi/fullscreen.sh$ nano /home/pi/fullscreen.sh $ sudo chmod 755 /home/pi/fullscreen.shFullscreen shell script should look like this:
unclutter & matchbox-window-manager & midori -e Fullscreen -a http://localhost:3000 - Edit the autostart file to run the script:
$ sudo nano ~/.config/lxsession/LXDE-pi/autostartThe autostart files needs to look like this:
@xset s off @xset -dpms @xset s noblank @/home/pi/fullscreen.sh
Good to know
- Default Raspbian login:
user: pi pass: raspberry
Sources
- https://github.com/basdegroot/raspberry-pi-kiosk/blob/master/readme.md