How it works?
Xvfb emulates an X server without outputing it to monitor. Applications connect to it and run under the impression the GUI is there. Its as simple as that!. No modification needed on the applications that going to be run on it.
Read more : http://en.wikipedia.org/wiki/Xvfb
How to do it?
First, make sure you have Xvfb installed. If you dont, install it using your package manager.
In Fedora, use
yum install xorg-x11-server-Xvfb
Then, run Xvfb in any unique/unused display number, in this example, I put 100. Disable access control to the display so that you dont have to go through the hassle of setting access control for it.
Xvfb :100 -ac
Now that you got Xvfb up and running, time to start the app.
Before starting the app, export the DISPLAY environment variable to point to display number 100
execute the command for the app, and ure good to go :D