Skip to content

Command line tool requires X to verify or upload? #2802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jacobrosenthal opened this issue Mar 22, 2015 · 3 comments
Closed

Command line tool requires X to verify or upload? #2802

jacobrosenthal opened this issue Mar 22, 2015 · 3 comments

Comments

@jacobrosenthal
Copy link

Trying to docker the arduino command line tools. Most stuff works

[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --get-pref pumpkins                                                             
[ root@a80a54ab13f1:~ ]$ echo $?
4
[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --get-pref board   
uno
[ root@a80a54ab13f1:~ ]$ echo $?
0
[ root@a80a54ab13f1:~ ]$ 

But all verify or upload require X?

[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --upload /root/tester/tester.ino --board arduino:avr:uno --port /dev/tty.usbmodem1411
Exception in thread "main" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:82)
    at processing.app.Base.nextEditorLocation(Base.java:476)
    at processing.app.Base.<init>(Base.java:245)
    at processing.app.Base.main(Base.java:162)
@jacobrosenthal
Copy link
Author

So was able to use xvfb on Synthbread in irc's advice
https://linuxmeerkat.wordpress.com/2014/10/17/running-a-gui-application-in-a-docker-container/

Seems like command line tools shouldnt need a gui though :)

@ffissore
Copy link
Contributor

Indeed it shouldn't. We'll fix it in one of upcoming releases
Il giorno 22/mar/2015 07.13, "Jacob Rosenthal" [email protected]
ha scritto:

Closed #2802 #2802.


Reply to this email directly or view it on GitHub
#2802 (comment).

@matthijskooijman
Copy link
Collaborator

For reference, this was already reported as #1981.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants