Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-26-2009, 05:41 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
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/
| _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 800600x24' it gives the following:
| Invalid screen configuration 800600x24

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 10:46 AM
I want to use command line with Linux ywergs Fedora 7 10-01-2005 09:56 PM
Command Line On Linux??? unwrittenlaw Linux - Newbie 7 11-25-2003 12:59 AM
Command Line Linux Fusion07 Linux - Newbie 6 07-03-2002 12:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration