Kiosk Computer
If you have any questions or get stuck as you work through this in-class exercise, please ask the instructor for assistance. Enjoy!
Installing Necessary Software
- In order to set up the Raspberry Pi as a Kiosk Computer, you will need to significantly alter the Pi’s software. The first handout has instructions on how to do so: http://bit.ly/2MCdL7r
- Firstly, prepare the pi by entering these commands:
sudo apt-get clean sudo apt-get autoremove -y
- Now the latest versions must be installed, to do so, enter the command
sudo apt-get update
- This may take a while, so as it is updating, let’s set up the slides we will display.
- You can display any website you like, or you can use a google slideshow.
- You can either create one now or use this one here: http://bit.ly/dsc-signage2
- Once the Pi is done updating, install xdotool and sed using this command:
sudo apt-get install xdotool unclutter sed sudo apt-get install x11-xserver-utils
- Navigate to the autostart directory, to do this, enter the command
cd /etc/xdg/lxsession/LXDE-pi/
- Now, enter the command
sudo nano autostart
- In this nano editor, copy in these lines:
@chromium-browser --kiosk --incognito [your url] @xset s noblank @xset s off @xset -dpms @unclutter -idle 0.1 -root
- Now save and exit from nano by pressing “ctrl” and “X” then “Y”.
- Enter in this command to the command line:
sudo nano /etc/lightdm/lightdm.conf
- Add the following line to the end of the file, then save and exit:
Xserver-command = X -s 0 -dpms
- Reboot the Pi:
sudo reboot
- To exit kiosk mode, do the keystroke ctrl+w
- It is best practice to run kiosk mode on a Raspberry Pi with no log in prompt and no valuable data stored anywhere on the SD card. This way it can boot into the kiosk screen without interruption.