Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 6 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

Usage:

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

 
discard

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.