>> I have a servlet that does some .gif creation for graphs and returns the
>> gif in a page. I don't seem to be able to setup Linux and Tomcat together
>> to do this. I always have to be logged in as root.
>> 
>> I've set xhost +localhost, I've run xauth, I've set DISPLAY=localhost:0.0
>> and =machinename:0.0.
>> 
>> This is all running under xdm as the xserver. I'm wondering now if anyone in
>> the Tomcat world has run into this and solved it?

I have a set of startup scripts which start the server by running some commands as 
root, others under a user account. The script which starts vfxb does the following:

XVFBIN="/usr/X11R6/bin/Xvfb :1 -screen 1 640x480x24"
DISPLAY="localhost:1.1"
export DISPLAY

$XVFBIN &
/usr/openwin/bin/xhost + localhost

Again, this is run as root. Then the script sets up other appropriate variables and
calls:

( su - www ; $TOMCAT_BIN $TOMCAT_ARGS )

This is on Solaris 7, but should be the same. I guess the main points are:
- I use localhost:1.1 to avoid conflict if I want to run a real X server for use on 
the console (0.0)
- I set and export the DISPLAY environment variable.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to