Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running a build command on Ubuntu 12.04. The command opens a GUI for a few seconds, and then closes it. I'm finding this kind of disruptive -- is there a way to alter the command-line syntax to hide the GUI or pipe it elsewhere?

Specifically, I'm using Arduino 1.5.2's new command-line support:

arduino --verify /home/matt/blink/blink.ino

This pops up the standard Arduino IDE to perform the build or upload.

share|improve this question
    
There's probably a horrendously complicated way of achieving this involving multiple workspaces or display servers; but have you tried looking at the documentation for this program to see if there's a command-line 'no GUI' option? –  evilsoup Apr 5 '13 at 21:56
    
@evilsoup unfortunately, the program doesn't seem to have any such option, according to these docs. –  Matt Ball Apr 5 '13 at 22:31
1  
Have you tried adding an ampersand (&) at the end of the command? This works for some things... –  Seth Apr 6 '13 at 16:57
    
@Seth regrettably, this did not work..thanks though! –  Matt Ball Apr 7 '13 at 6:54

1 Answer 1

You need Xvfb, it creates a pseudo X Windows device. To install it on Ubuntu do this:

sudo apt-get install xvfb

Then create a pseudo X display putting it in background

Xvfb :100 &

Set the display to the pseudo X display:

export DISPLAY=:100

And launch Arduino.

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.