Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to customize ubuntu for a library, they only want to display a web browser with their site in full screen. No address bar, no button user can only click the link on the page. If library's staff enter admin user name and password they can change any settings in ubuntu.

Any suggestion or usefully link is much appreciated.

share|improve this question
Any preference to browser brand/version, or other apps? – david6 Apr 24 '12 at 22:37

1 Answer

I believe this great article explains what you want, with screenshots galore. You want to create a special session in the login manager that will start a browser like Google Chrome using the kiosk option. You can set it up so that normal users automatically log into this kiosk session, but introduce a short time delay to allow an admin user to log into the normal Ubuntu session to administer changes to the system.

The steps are fairly detailed and so I won't reproduce them in their entirety here. But since Ask Ubuntu discourages just linking (in case the linked site goes down), I will cut and paste here the key steps. You should go to the link for the full instructions.

The desktop file you need to create in /usr/share/xsessions/ should have:

[Desktop Entry]
Encoding=UTF-8
Name=Kiosk Mode
Comment=Chromium Kiosk Mode
Exec=/usr/share/xsessions/chromeKiosk.sh
Type=Application

The script chromeKiosk.sh should be placed in the same directory with execute permissions and look like:

#!/bin/bash
xscreensaver -nosplash &
cat ~/.config/chromium/Local\ State | perl -pe "s/\"bottom.*/\"bottom\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f2),/" > ~/.config/chromium/Local\ State
cat ~/.config/chromium/Local\ State | perl -pe "s/\"right.*/\"right\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f1),/" > ~/.config/chromium/Local\ State
while true; do chromium-browser %u --start-maximized; sleep 5s; done
share|improve this answer
1  
If i do this on 12.04 the browser doesn't fill the whole screen. I have a border. It is as if the browser thinks the screen is not 1024x768. Do you have any ideas? – Chris Woollard Apr 27 '12 at 13:53
@ChrisWoollard Did you try the last step "testing" in the article I linked to? – Chan-Ho Suh Apr 27 '12 at 20:18
@Chan-HoSuh Isee that the same problem persists with a custome pyGtK application. Any ideas on how to maximize custom apps? – Juzer Ali Sep 5 '12 at 15:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.