sudo apt-get install xscreensav* -y
Install flashplugin:
sudo apt-get isntall ubuntu-restricted-extras -y
* I prefer vim for text editing (you can use/download your favourite text editor):
sudo apt-get install vim -y
Go to www.opera.com, choose debian package for Ubuntu,
Install it:
sudo dpkg -i opera*.deb
Create kiosk user, set random password, set automatic login.
Log in kiosk user, run
xscreensaver-demo
Answer with yes/ok
I prefer disable screen saver
Open opera web browser, choose preferences
startup start with home page, enter home page
Uncheck Enable Password manager
History adresses 0, uncheck remember content on visited pages
Right click on search bar Customize > Remove from toolbar (important for security reasons)
Enable main bar
Right click and remove Open, Save, Print buttons same way.
You may leave Find and Home button, but I removed them all to leave more space for web-page on screen.
In about:config disable "Show crash log upload dialogue" and "Show problem dialogue"
Opera > Exit
Log in as admin user.
sudo vim /usr/share/xsessions/kiosk.desktop
[Desktop Entry]
Encoding=UTF-8
Name=kiosk
Comment=Opera Kiosk Mode
Exec=/usr/share/xsessions/opera.sh
Type=Application
sudo vim /usr/share/xsessions/opera.sh
#!/bin/bash
xscreensaver -nosplash &
#while true; do opera; sleep 5s; done
while true; do opera --k --kioskbuttons --kioskresetstation --nochangebuttons --nochangefullscreen --nocontextmenu --nodownload --nokeys --nomail --nomaillinks --nomenu --nominmaxbuttons --noprint --nosave --nosplash --geometry 1280x1024+0+0; sleep 5s; done
* Edit your opera window size (--geometry 1280x1024+0+0)
sudo chmod 755 /usr/share/xsessions/opera.sh
sudo vim /etc/lightdm/lightdm.conf
user-session=kiosk
Add this line, to disable guest account:
allow-guest=false
* For remote access you can install ssh server
sudo apt-get install openssh-server
* For security reasons you can install ubuntu firewall
sudo apt-get install gufw
Alt+F2 gufw, enable firewall, disable incoming trafic, open 22. tcp port for ssh.
sudo passwd root
su
crontab -e
0 1 * * * /sbin/reboot
sudo reboot
* When something goes wrong or you just want to login in regular unity session, you need to edit /etc/lightdm/lightdm.conf, change back
user-session=ubuntu
save and reboot
You can do this from
1) SSH or
2) Reboot machine, hold shift while grub loading, choose recovery mode, root console, enter password.
* You may wish change opera settings folder to read-only, but I found it not necessary to do.
--
http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/
http://www.opera.com/support/mastering/kiosk/