Add a new button to the Cave kiosk

From VrlWiki
Revision as of 09:58, 16 September 2008 by Jadrian Miles (talk | contribs)
Jump to navigation Jump to search

The Cave kiosk interface automatically displays buttons for scripts in a certain location whose names are formatted in a particular way. The kiosk webpage is located on the wallconsole machine at /var/www/html/kiosk/kiosk.cgi and may be viewed on the web from any machine in the Cave room. Adding a new tab to the interface currently involves editing the source of the web script and is therefore beyond the scope of this article, but adding a button to an existing tab is easy.

  1. Log into wallconsole: ssh cavedemo@wallconsole
  2. cd $G/bin
  3. Find within this directory a script for an existing button; we'll call this script script_1 in the code for the following steps. For example, cave.cscluster.cs137fall08.jadrian corresponds to the "(cscluster) jadrian" button on the "CS137 Fall 2008" tab.
  4. Pick the name of your new script. The name is in four parts: <environment><machine><group><name>. The environment is either cave or powerwall. The machine choices for the cave environment are cscluster or cluster4. The group corresponds to the tab the button will appear on; you'll probably want general (for the "Run Programs" tab) or whatever the active variant of cs137 is. Finally, the name can be whatever you want, and will be the label on the button. Now that you've picked the name, we will refer to that as script_2.
  5. cp script_1 script_2
  6. nano script_2 to edit the script and change the commands it runs. For creating new Cavepainting scripts, you'll probably just want to change the names of the save, load, and data paths.
    • Be sure to double-check that the paths referred to in the script exist by logging into cs-nodes.
  7. Reload the kiosk webpage and your new button should be there!