28
Install Xvnc
Installation of Xvnc is quite straightforward; you unpack the archive and then copy the relevant files into some local
bin directory, e.g. /usr/local/bin. (Note that some modern Linux distributions already have Xvnc installed.)
Copying of the Xvnc binaries is shown below.
[server1]$ cp vncviewer vncserver vncpasswd vncconnect Xvnc
/usr/local/bin
Launch Xvnc
Launching Xvnc is also quite straightforward; this should be done as the user that will be running webMathematica,
for example, the user tomcat. The first time Xvnc is launched, it asks for a password. In the example below, the
server is launched as display :1.
[server1]$ su tomcat
[server1]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
New X desktop is server1:1
Creating default startup script /home/tomcat/.vnc/xstartup
Starting applications specified in /home/tomcat/.vnc/xstartup
Log file is /home/tomcat/.vnc/server1.wolfram.com:1.log
Test Xvnc
Once it is launched, it is a good idea to test the server by running an application to use it, for example, the Mathemat
ica front end. This is shown below.
[server1]$ su tomcat
[server1]$ mathematica display :1
Of course, when this is done, you do not see an actual window on your screen; this is because it is a virtual server.
To see the window from the Mathematica front end, you can run the vncviewer. This can be done as shown
below.
[server1]$ vncviewer :1
This should show you a screen with the front end window visible. You should be able to type into the front end and
see it working. At any time webMathematica is running, you can view the desktop with vncviewer.
.
<
New Page 1
Comcast Web Hosting