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.


Calvin So’s IT Memo Blog: Making Ubuntu 11.04 as Kiosk using Google Chrome.

Bad Behavior has blocked 149 access attempts in the last 7 days.