Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

backstory - i need to run an adobe air app, which does some things and takes a screenshot of itself and saves out a JPG, then kills itself. (on linux environment)

I have it successfully running on ubuntu in gnome environment. (on EC2, using NoMachine / NXClient remote windowing app)

But what i need, is to run it automated from a script. on the server. When I try running it from commandline (over ssh), i get the error:

Gtk-WARNING **: cannot open display: 

So, my question is, How can this be run automated from a script.

share|improve this question
GTK is reliant on X, you'd probably need to make some tweaks and use GTKfb (i.e. GTK Framebuffer) or find a virtual x framebuffer see here for that. – nerdwaller Jul 27 '13 at 17:17

figured it out.

Xvfb :1 &
export DISPLAY=:1
./runMyApp &
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.