Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay, so I want to run a GUI application as daemon on a server without X. The application is a java program. It can be configured in a configuration file so the GUI is not necessary to use it. Unfortunately it doesn't have a shell executable.

I knew that one once, but forgot the solution. Basically there is a program which fakes an X-server to other programs. Finding that would be the ideal solution. Just can't remember what it was called.

share|improve this question
up vote 9 down vote accepted

I think you are referring to xvfb - the ability to run in a framebuffer.

Download or sudo apt-get install xvfb

You need to specify a resolution and colour depth as well as the nominal display number


xvfb :1 -screen 0 800x600x8 &
export DISPLAY=":1"
java application_name.jar 

or shorter:

xvfb-run -a -e /tmp/some/log/file.log java -jar /home/user/somejava.jar

-a chooses a display number automatically, -e file specifies a logfile for error messages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.