|
clabreg.phas.ubc.ca 142.103.243.136 |
Login as Kiosk
System Settings -> Displays, change the resolution to 1024x768
Stop using xsession login, because the resolution can't be changed to 1024x768
with this method.
sudo mv /usr/share/xsessions/kiosk.desktop /usr/share/xsessions/kiosk.desktop.old sudo mv /usr/share/xsessions/opera.sh /home/kiosk/.Open Startup Applications Preferences, add opera.sh to the startup application list
ssh clabreg sudo vi /home/kiosk/.opera/operaprefs.ini change Home URL=https://secure.phas.ubc.ca/clabreg/
- Install Ubuntu 11.10 and all updates - Change default login session to be ubuntu-2d sudo vi /etc/lightdm/lightdm.conf change the line user-session=ubuntu to user-session=ubuntu-2d - Install xscreensaver: sudo apt-get install xscreensav* -y - Install flashplugin: sudo apt-get install ubuntu-restricted-extras -y - Go to opera website get debian package for Ubuntu and install it: sudo dpkg -i opera*.deb - Create a new standard user kiosk , set a radom password, and enable automatic loginOpera Kiosk Mode Setup
- Login kiosk user, run
xscreensaver-demo
answer with yes/ok to disable screen saver
- Open Opera
Choose preferences
Startup: Start with home page
Home page: https://secure.phas.ubc.ca/clabreg
Uncheck Enable Password Manager on Forms tab
Set History Addresses to 0, unchck Remember content on visited pages on Advanced tab
Right click on search bar Customize > Remove from toolbar
Right click on toolbar Customize > Appearance, only enable Main Bar
Right click and remove all the buttons except Home
- Login as phasadmin
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 1024x768+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
| webmaster@phas.ubc.ca | [Dept. Home Page] | Last updated: |