Rappture
Install
The Rappture application is install in the apps directory along with proper links.
# apt-get install hubzero-rappture
Session Installation
Rappture is used from inside a container and needs several other packages installed to allow use of all its features. This process has been simplified by using the hubzero-rappture-session with only contains the dependencies needed to pull in these other packages.
# chroot /var/lib/vz/template/debian-5.0-amd64-maxwell # apt-get update # apt-get upgrade # apt-get install hubzero-rappture-session
This is also a good time to add some default paths to your session environment so that it doesn't need to be whenever someone logs in. Modify the /etc/profile file as follows:
Change
if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/games" fi
To
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/apps/rappture/bin:/apps/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
fi
Be sure to exit the chroot environment when you are done:
# exit
A workspace may need to be opened and closed a few times before the changes to the session template appear in a workspace.
Test
Rappture comes with several demostration scripts that can effectively test many parts of the package. These demonstrations must be copied to a user's home directory within a workspace before running.
$ mkdir examples $ cp -r /apps/rappture/examples/* examples/. $ cd examples $ ./demo.bash
A window should open on the workspace showing that part of the demonstration. Close that window to see the next demonstration. Some demonstrations may need something inputted to work properly (such as the graphing calculator).