Xvfb is a virtual frame buffer that is installed
on gigasource so that the bldmastr
user can run tests that use the X11 system.
http://chartworks.com/support/server/XvfbonUnix.html
install.xvfb
and
xvfb.server
scripts from
http://developers.sun.com/solaris/articles/solaris_graphics.html
xvfb.server
.
I needed to set X_OPTIONS to:
X_OPTIONS="-screen 0 1280x1024x32 -pixdepths 8 24 -fbdir /tmp -co $XVFB_DIR/rgb -fp $XVFB_DIR/fonts/misc/,$XVFB_DIR/fonts/Speedo/,$XVFB_DIR/fonts/Type1/,$XVFB_DIR/fonts/75dpi/,$XVFB_DIR/fonts/100dpi/ -sp $XVFB_DIR/SecurityPolicy"
install.xvfb
Testing and Troubleshooting Once the X server is running, you can use your servlet application to confirm that Java platform graphics are working. If you have trouble, check that the X server is operating properly. As the user running the X display (tomcat by default) follow these steps, matching the value of -display to match your server:See also Ptolemy Java Headless Page% /usr/openwin/bin/xclock -display :2 &You can use xwd (X window dump) to capture the image. Under the Solaris 9 OE, I find that /usr/openwin/bin/xwd crashes (see Sun bug id 4766571), so I use a copy I've obtained from the X11 distribution that I've placed in /usr/X11R6/bin:% /usr/X11R6/bin/xwd -display :2 -root -out /tmp/xclock.xwdThen copy the image file over to another system and display it to check that graphics are working, using xwud:% /usr/openwin/bin/xwud -in /tmp/xclock.xwdYIf xclock won't run, then the server is probably not running. Make sure that xsun.server or xvfb.server is properly configured.