Add a new button to the Cave kiosk
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.
- Log into wallconsole:
ssh cavedemo@wallconsole cd $G/bin- Find within this directory a script for an existing button; we'll call this script
script_1in the code for the following steps. For example,cave.cscluster.cs137fall08.jadriancorresponds to the "(cscluster) jadrian" button on the "CS137 Fall 2008" tab. - Pick the name of your new script. The name is in four parts:
<environment><machine><group><name>. The environment is eithercaveorpowerwall. The machine choices for thecaveenvironment arecsclusterorcluster4. The group corresponds to the tab the button will appear on; you'll probably wantgeneral(for the "Run Programs" tab) or whatever the active variant ofcs137is. 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 asscript_2. cp script_1 script_2nano script_2to 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.
- Reload the kiosk webpage and your new button should be there!