The utility that loads the program onto the Trinket (avrdude) normally uses superuser (root) privileges. You can configure Linux to not need these privileges. You'll need to make the following edits to permit this, but the actual location of files varies from one Linux distribution (distro) to another.
Create the following udev rule, in a new rule file (named whatever you like), in +/etc/udev/rules.d/+ (you may want to double-check where your distro places udev rules). This should set the permissions for the USBtinyISP device correctly:
Code: Select all
SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="users", MODE="0666"
Code: Select all
SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="adm", MODE="0666"
If your distro deprecates the use of the SYSFS parameter, then you may need a variation. The following rule works on recent Ubuntu systems and may work on other, newer Linux systems:
Code: Select all
SUBSYSTEM=="usb", ATTR{product}=="USBtiny", ATTR{idProduct}=="0c9f", ATTRS{idVendor}=="1781", MODE="0660", GROUP="dialout"