Go Down

Topic: Arduino Web Editor installation difficult on Linux (Fedora 24) (Read 538 times) previous topic - next topic

owennewo

I faced a number of challenges trying to get the plugin installed and a sketch uploaded.  Part of this may be due to me using Fedora 24 (which has very recent packages)


Issue 1: Installation failed with missing library.  libindicator3.so.? I fixed this by installing libindicator-gtk3 and possibly libindicator packages.  It would be nice if installer depended on these packages or otherwise listed these packages

I may have needed to run installer twice (not sure as it may have been due to next issue)

Issue 2: After install completed i opened editor in chrome and it claimed the plugin was not installed.  Looking in chrome console I could see:
https://localhost:8991/info Failed to load resource: net::ERR_INSECURE_RESPONSE
2vendor.7964bf9f.js:10 Automatically scrolling cursor into view after selection change this will be disabled in the next version set editor.$blockScrolling = Infinity to disable this message
https://localhost:8992/info Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR
https://localhost:8993/info Failed to load resource: net::ERR_CONNECTION_REFUSED
https://localhost:8994/info Failed to load resource: net::ERR_CONNECTION_REFUSED

The editor seems to be doing a port scan and should detect ERR_INSECURE_RESPONSE and recognise that that the port is open but the certificate needs to be accepted.  Perhaps it could pop open a window for the user.

Anyway I opened https://localhost:8991/info and accepted the TLS accepted. 
 
After this the editor was happy that the plugin loaded but...

Issue 3: When pushing a sketch It revealed another missing dependency ncurses.so.5.  On fedora 24 this is supplied by ncurses-compat-libs

Issue 4: finally rerunning the sketch upload revealed a final error.  This one I'm guessing is familiar
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied

This is fixed by adding user to dialout group

sudo usermod -a -G dialout <username>


Go Up