Linux Setup

If you missed it on a previous page, the following link will let you download the latest 1.6.x version of the Arduino IDE for Linux:

udev Rules

To use Adafruit's boards with most modern Linux distributions you'll want to ensure a few udev rules are applied.  These rules apply special configuration for USB devices like Adafruit's boards to workaround or fix common issues.  Specifically these rules allow Trinket and other boards to be programmed by the Arduino IDE that's run as a normal non-root user.  The rules also fix an issue with ModemManager hanging on to /dev/ttyACM devices when using Flora or Bluefruit Micro boards.

To install the rules you'll want download them and copy to the location of udev rules on your system.  For most Linux systems like Ubuntu, etc. udev rules are stored in /etc/udev/rules.d/ (check your distribution's documentation / help forums if you don't see this folder exists).  Run the following commands:

Download: file
sudo cp 99-adafruit-boards.rules /etc/udev/rules.d/

Note that you might need to change the rule if you're using a distribution other than Ubuntu/Debian.  In particular the first rule in the file applies the 'dialout' group to Trinket, etc. boards so they can be programmed without running the Arduino IDE as root.  Some distributions use a different group for this instead of 'dialout'.  Check your distribution docs or help forums to see what group should apply to devices that can be accessed by non-root users.

Next you'll need to reload udev's rules so that they are properly applied.  You can restart your machine, or run a command like the following:

Download: file
sudo reload udev

If the command above fails, try instead running:

Download: file
sudo udevadm control --reload-rules
sudo udevadm trigger

And if that still fails reboot your system as it will ensure udev picks up the new configuration.

You can also add yourself to the dialout group with

sudo usermod -a -G dialout $USER


sudo usermod -a -G plugdev $USER

This guide was first published on Apr 05, 2015. It was last updated on Apr 05, 2015. This page (Linux Setup) was last updated on Aug 19, 2019.