11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

34 webMathematica User GuideIn addition, if you are using a virtual X server, such as Xvnc, you will need to launch this atsystem initialization time. A sample script for launching Xvnc is shown below.!/bin/sh## description: VNC instance for webMathematica# Source function library.. /etc/rc.d/init.d/functions# Source networking configuration.. /etc/sysconfig/networkRETVAL=0# See how we were called.case "$1" instart)# Start daemons.echo -n "Starting VNC: "cd ~tomcatsu tomcat -c '/usr/bin/vncserver -geometry 800x600 -depth 24 :1>/dev/null 2>/dev/null'RETVAL=$?[ $RETVAL -eq 0 ] && touch /var/lock/subsys/vncecho;;stop)# Stop daemons.echo -n "Shutting down VNC: "cd ~tomcatsu tomcat -c '/usr/bin/vncserver -kill :1 >/dev/null 2>/dev/null'RETVAL=$?[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/vncecho;;restart)$0 stop$0 startRETVAL=$?;;*)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!