Saturday, May 7, 2011

Making Ubuntu 11.04 as Kiosk using Google Chrome

1. Create Kiosk Users (with password)
2. Switch to Login Kiosk Users, Open Chrome to create default setting, Set Screensaver Setting (E.g. 5 minutes with no password lock)
3. Logout Kiosk Users, Switch back to your normal users
4. sudo vi /usr/share/xsessions/kiosk.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Kiosk Mode
Comment=Chromium Kiosk Mode
Exec=/usr/share/xsessions/chromeKiosk.sh
Type=Application
5. sudo vi /usr/share/xsessions/chromeKiosk.sh
#!/bin/bash
while true; do google-chrome %u --incognito; sleep 5s; done
6. sudo chmod 755 /usr/share/xsessions/chromeKiosk.sh
7. sudo vi /home/kiosk/.dmrc
[Desktop]
Session=kiosk
Language=en_US
8. sudo chown root.root .dmrc
9. sudo chmod 644 .dmrc
10. sudo vi /home/kiosk/.config/google-chrome/Default/Preferences

  "browser": {
      "window_placement": {
         "maximized": true,
        }

      "exited_cleanly": true,

11. Change Kiosk Users to Auto Login without asking Password
12. Login Kiosk and Test

PS: Chrome will automatically reopen after 5 second, somehow if you want to logout that session, just kill chomeKiosk.sh in console will do.

Reference: http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/step6/Set-up-Kiosk-Desktop-Mode-in-Xsessions/?images#images

5 comments:

  1. Hi

    Thank you very much - your idea helped me setting up a Kiosk-Mode surfing Laptop with limited internet Access in less than an hour of installing.

    I also made the Chrome/Chromium preferences owned by root and launch chromium-browser using the ' -kiosk http://example.com ' which exactly fullfills my requirement :-)

    ReplyDelete
  2. Auto-login feature is not working for me. Whenever I boot my system (with autologin enabled) it just leaves me at a blank screen. Pressing Alt+F1 takes me to shell prompt and asks me for login userid. Also how to disable auto-login feature once this is implemented successfully.

    Can you please help me with this

    ReplyDelete
  3. One extension I found that seems like it will work well with a kiosk is called idle reset. You can give it a URL and set a time for inactivity. It also has the option of clearing out cookies. After a certain period of inactivity, it will reload the "home page" and optionally delete cookies in the process.

    ReplyDelete
  4. Thanks for sharing information about Kiosks.

    ReplyDelete
  5. Very informative blog. Nice explain how to create Ubuntu 11.04 as Kiosk using Google Chrome. Kiosk mode chrome is a great facility of Google Chrome. Thanks for the useful information.

    ReplyDelete