I'm running a java application on my ubuntu server which refuses to open if it cannot open a window (the content of the windows is of no interest for me). Since the server is not connected to any screen I don't want to have a full running x11 environment like openbox. Currently I'm forwarding this window over ssh to my pc but this way the program closes whenever I'm rebooting the pc. What could be a good solution for this? (I'll never need to see the content of the window)
-
Is there an option on the command line to disable this requirement?Karlson– Karlson2012-09-19 17:10:04 +00:00Commented Sep 19, 2012 at 17:10
-
Related (maybe not exact duplicate because there might be something specific to Java): How can I run Firefox on Linux headlessly (i.e. without requiring libgtk-x11-2.0.so.0)?Gilles 'SO- stop being evil'– Gilles 'SO- stop being evil'2012-09-19 23:48:13 +00:00Commented Sep 19, 2012 at 23:48
Add a comment
|
2 Answers
Xvfb is an X server intended for situations like yours.
-
Debian and Ubuntu's xvfb package includes a script,
xvfb-run, which will automatically launch an Xvfb instance and run your program with$DISPLAYpointing to that instance.Jim Paris– Jim Paris2012-09-19 18:37:43 +00:00Commented Sep 19, 2012 at 18:37