I have a VPS running linux with ssh access to the command line.
I need to be able to run a java program that requires Java, Xvfb and the relevant packages and fonts for it to work to be installed.
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/[url removed, login to view]
| _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
So the server needs
- Java installing
- Xvfb and any related libraries and fonts installed so it works
- Xvfb exported to a display?
I'm not sure about the last one but the Java program 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 or some such)
and I will need the commands to run to replicate this on another server.
I'm new to linux so if you need more information, please ask.