Linux – hide GUI that briefly spawns when running a process from the command line

arduinocommand lineguilinuxUbuntu

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.

Best Answer

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.

Related Question