how to use arduino on linux
Installing the arduino IDE goes like this:
$ sudo dnf install arduino
On Fedora linux the Arduino appears as a file.
ls -l /dev/ttyACM0
# this returns:
# crw-rw----. 1 root dialout 166, 0 Dec 19 18:43 /dev/ttyACM0
This means the “file” (the file representing the Arduino) is owned by root i.e. only root may manipulate it. In order for your current user to manipulate the Arduino we have to add “username” to the group “dialout”:
$ sudo usermod -a -G dialout <username>
Finally I had to create a directory manually that the arduino IDE was not allowed to create itself.
$ sudo mkdir /usr/share/arduino/tools-builder
Compiling and uploading an arduino-sketch to the board directly from the commandline is also possible:
$ arduino --upload sketch/sketch.ino --port /dev/ttyUSB*