Raspberry Pi: 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 previous step has instructions on how to do so.
- 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 these commands:
- 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.
- 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.
- In nano, do this keystroke: ctl o then enter, then ctrl x
- Enter in this command to the command line:
- Sudo nano /etc/lightdm/lightdm.conf
- Now in this new nano window, find and uncomment (delete the # symbol) and edit this line:
- Xserver-command = X -s 0 -dpms
- Reboot the Pi:
- Sudo reboot
- To exit kiosk mode, do keystroke: ctrl w.