29
Configure web
Mathematica
The final step is to modify your MSP.conf file to instruct the front end to use this server. The setting of FrontEnd 
LaunchCommand is described in the 
Appendix: Site Configuration
. Here is a sample setting that connects to the
X server on display :1. (This setting is present in MSP.conf as a comment.)
FrontEndLaunchCommand=mathematica  mathlink  display :1  nogui 
 geometry 1000x500+10+10
Now your Unix server should be ready to run webMathematica.
If you find that the front end does not launch correctly, it may help to add the name of the server in the configuration
file.  An  example  is  shown  below;  here,  myserver  is  the  name  of  the  machine  on  which  webMathematica  and
Xvnc are running.
FrontEndLaunchCommand=mathematica  mathlink  display myserver:1 
 nogui  geometry 1000x500+10+10
2.4.2 Other X Related Issues
The following section describes a number of further issues that relate to using webMathematica in conjunction with
an X server. If you have set up an Xvnc server as described 
above
 it should not be necessary to study these.
Connecting to the X Server
When the Mathematica front end runs it must connect to an X server. If the X server is being run by a different user
than that which is running the front end the X server will reject the connection, as shown below.
[root]# su tomcat
bash$ mathematica
Xlib:connection to ":0.0" refused by server
Xlib:Client is not authorized to connect to Server
xset:unable to open display ":0.0"
Xlib:connection to ":0.0" refused by server
Xlib:Client is not authorized to connect to Server
xset:unable to open display ":0.0"
Xlib:connection to ":0.0" refused by server
Xlib:Client is not authorized to connect to Server
xset:unable to open display ":0.0"
Xlib:connection to ":0.0" refused by server
Xlib:Client is not authorized to connect to Server
XMathematica:can t open display:0.0,exiting...
bash$
One way to avoid this problem is to allow all connections from the local machine.
 .
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Comcast Web Hosting