1. MACHINE – CLABREG
    1. Pentium (Celeron) 333 MHz, 128MB of RAM, 3GB of HDD

 

  1. LINUX
    1. 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.
    2. Create a username called kiosk.
    3. 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)

 

  1. KIOSK CLABREG
    1. Log in as kiosk and load X windows.
    2. Download kiosk.tar [1], kiosk.xpi [2], and twm-kiosk.tar [3] from http://kiosk.mozdev.org. 
    3. Open terminal and gain root access with “su” command.
    4. Untar kiosk.tar [1] in the /usr/lib/mozilla/chrome directory. (http://stlouis-shopper.com/cgi-bin/mozdev-wiki/kiosk-wiki.pl?KioskBrowser)
    5. 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/)
    6. 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.
    7. Fire up the mozilla browser. Select “Open File” in the “File” menu, and load kiosk.xpi [2].
    8. Untar twm-kiosk.tar [3] in the /home/kiosk directory. (http://stlouis-shopper.com/~jtjsoftware/kiosk/twm-kiosk.html)
    9. Copy /home/kiosk/twm/sample-twmrc/kiosk.twmrc to /etc/X11/twm/system.twmrc.
    10. Copy /home/kiosk/twm/sample-twmrc/kiosk-default.sh to the /etc/X11/twm directory.
    11. Edit /etc/X11/twm/system.twmrc and make sure the lines below are there:

                                                               i.      KioskMode

                                                              ii.      RandomPlacement

                                                            iii.      NoTitle

    1. 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 >
    1. Copy /usr/lib/mozilla/chrome/kiosk/content/kiosk-template.xul to /usr/lib/mozilla/chrome/kiosk/content/clabreg.xul.
    2. 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.

    1. Edit /etc/X11/twm/kiosk-default.sh and replace the lines with:

                                                               i.      #!/bin/sh

                                                              ii.      mozilla -chrome chrome://kiosk/content/clabreg.xul

    1. 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)
    2. Edit /usr/lib/mozilla/chrome/kiosk/locale/en-US/kiosk.dtd:

                                                               i.      <!ENTITY base.uri “http://physics.ubc.ca/clabreg/”>.

    1. 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

    1. Reboot.
    2. 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.

 

  1. BASTILLE
    1. 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)

 

  1. BIOS SETUP
    1. Disable boot from floppy and cdrom.
    2. Password protect BIOS setup