Skip to content

Commit e0ee5ab

Browse files
committed
Merge pull request #3062 from mschlenker/master
Add section BUGS to manual page describing headless operation in Linux
2 parents f118dee + 35d31b6 commit e0ee5ab

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: build/shared/manpage.adoc

+20
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,26 @@ Install Bridge and Servo libraries
268268

269269
arduino --install-library "Bridge:1.0.0,Servo:1.2.0"
270270

271+
BUGS
272+
----
273+
274+
Even in command line mode the Arduino IDE requires a graphical user interface to be
275+
present. This should usually be the case in Windows or Mac OS X. On Linux however you
276+
might want to compile and upload sketches when logged in via SSH or in batch mode. To
277+
accomplish this, install the Xvfb dummy X server and write a small wrapper script to
278+
create an instance of this Xserver, run the Arduino IDE in it and kill the Xserver
279+
afterwards:
280+
281+
#!/bin/bash
282+
Xvfb :1 -nolisten tcp -screen :1 1280x800x24 &
283+
xvfb="$!"
284+
DISPLAY=:1 arduino $@
285+
kill -9 $xvfb
286+
287+
Save the script as *arduino-headless* and run it with the options described above.
288+
If the script does not return to a shell prompt, the options you specified were wrong
289+
and the Arduino IDE actually opened a window, stop its execution with Ctrl+C.
290+
271291
HISTORY
272292
-------
273293
1.5.2::

0 commit comments

Comments
 (0)