Xvfb linux command line.
I have a VPS running linux with ssh access to the command line.
I need to be able to run a java program that runs a component that's Swing/AWT reliant to produce an output file, but it can't since it can't find an X server (or display context)
At the moment the java program works on a linux installation with a display screen.
On a command line with no display my Java program gives the following error:
| Gtk-WARNING **: cannot open display:
With Xvfb installed, when trying to run 'Xvfb :1' it gives the following errors:
| Couldn't open RGB_DB '/usr/share/X11/rgb'
| _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
| _XSERVTransOpen: transport open failed for inet6/s1234567890.onlinehome-server.info:1
| _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
| error opening security policy file /usr/lib64/xserver/SecurityPolicy
| Could not init font path element unix/:7100, removing from list!
When trying to run 'Xvfb :1 -screen 0 800×600x24' it gives the following:
| Invalid screen configuration 800×600x24
Does anyone know how can get Xvfb to work properly?
I'm new to linux so if you need more information, please ask.
Any help massively appreciated.
|