- MACHINE – CLABREG
- Pentium (Celeron) 333
MHz, 128MB of RAM, 3GB of HDD
- LINUX
- Install a Linux distro
(check out http://www.distrowatch.com). I installed RedHat 7.3. You might have
to add more steps if you are going to install another version of RedHat
or a different distro. For
example, /usr/lib/mozilla/chrome is not part of Fedora
Core 3.
- Create a username
called kiosk.
- For easy updating and
resolving dependencies, you need to install or setup one of the following:
apt, up2date or yum. (http://dag.wieers.com/home-made/apt/FAQ.php)
- KIOSK CLABREG
- Log in as kiosk and
load X windows.
- Download kiosk.tar
[1], kiosk.xpi
[2],
and twm-kiosk.tar [3] from http://kiosk.mozdev.org.
- Open terminal and gain
root access with “su” command.
- Untar kiosk.tar
[1]
in the /usr/lib/mozilla/chrome directory. (http://stlouis-shopper.com/cgi-bin/mozdev-wiki/kiosk-wiki.pl?KioskBrowser)
- Add the last 3 lines
from /usr/lib/mozilla/chrome/kiosk/installed-chrome.txt to /usr/lib/mozilla/chrome/installed-chrome.txt. (http://kiosk.mozdev.org/aggregator-kiosk/)
- Execute rebuild-databases.sh or mozilla-rebuild-databases.pl in the /usr/lib/mozilla directory. If both of them are missing, copy the
files from /usr/lib/mozilla/chrome/kiosk.
- Fire up the mozilla
browser. Select “Open File” in the “File” menu, and load kiosk.xpi
[2].
- Untar twm-kiosk.tar
[3]
in the /home/kiosk directory. (http://stlouis-shopper.com/~jtjsoftware/kiosk/twm-kiosk.html)
- Copy /home/kiosk/twm/sample-twmrc/kiosk.twmrc to /etc/X11/twm/system.twmrc.
- Copy /home/kiosk/twm/sample-twmrc/kiosk-default.sh to the /etc/X11/twm directory.
- Edit /etc/X11/twm/system.twmrc and make sure the
lines below are there:
i.
KioskMode
ii.
RandomPlacement
iii.
NoTitle
- Edit /usr/lib/mozilla/chrome/kiosk/content/contents.rdf
and add
the following at the bottom, just before
</RDF:RDF> (for more info go to http://stlouis-shopper.com/cgi-bin/mozdev-wiki/kiosk-wiki.pl?KioskBrowser/Customizable):
< RDF:Seq about="urn:mozilla:overlays" >
< RDF:li resource="chrome://kiosk/content/clabreg.xul"/ >
< /RDF:Seq >
< RDF:Seq about="chrome://kiosk/content/clabreg.xul" >
< RDF:li > chrome://kiosk/content/home-btnOverlay.xul < /RDF:li >
< RDF:li > chrome://kiosk/content/forward-back-btnsOverlay.xul < /RDF:li >
< /RDF:Seq >
- Copy /usr/lib/mozilla/chrome/kiosk/content/kiosk-template.xul to /usr/lib/mozilla/chrome/kiosk/content/clabreg.xul.
- Execute rebuild-databases.sh or mozilla-rebuild-databases.pl again in the /usr/lib/mozilla directory.
NOTE: After
modifying /usr/lib/mozilla/chrome/kiosk/content/contents.rdf, always execute rebuild-databases.sh or mozilla-rebuild-databases.pl
in the /usr/lib/mozilla directory.
- Edit /etc/X11/twm/kiosk-default.sh and replace the lines
with:
i.
#!/bin/sh
ii.
mozilla -chrome chrome://kiosk/content/clabreg.xul
- Edit /etc/X11/gdm/Init/Default. Below the line “/usr/X11R6/bin/xsetroot
-solid ‘#3563390’”, add “xterm -e /home/kiosk/twm/twm-kiosk”. (See example at http://stlouis-shopper.com/~jtjsoftware/kiosk/jim-kiosk.html)
- Edit /usr/lib/mozilla/chrome/kiosk/locale/en-US/kiosk.dtd:
i.
<!ENTITY base.uri “http://physics.ubc.ca/clabreg/”>.
- Edit /etc/inittab and make sure there
are no “#” in front of the following lines:
i.
id:5:initdefault:
ii.
x:5:respawn:/etc/X11/prefdm –nodaemon
- Reboot.
- Once
it’s up and running, go to myUBC.
Log in using your username and password (or make it up). Click the “Never for this site”
button, when prompted “Do you want Password Manager to remember this logon?”. The point here is to not to save
usernames and passwords on kiosk.
- BASTILLE
- Install and run
bastille to lock down your box. (http://www.bastille-linux.org,
http://www.tldp.org/linuxfocus/English/September2000/article166.shtml,
http://www.unofficial-support.com/article/how-to/bastille_linux)
- BIOS SETUP
- Disable boot from
floppy and cdrom.
- Password protect BIOS
setup