Pages: [1]   Go Down
Author Topic: averdude requires sudo for USBasp - a fix  (Read 1899 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 3
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The fact is that, unless run as sudo (in Debian), averdude fails to find the USBasp programmer. Entering the password for sudo gets to be a pain. There is a fix. The site at the link below lists the cure - a new entry in /etc/udev/rules.d
http://mightyohm.com/blog/2010/03/run-avrdude-without-root-privs-in-ubuntu/

That site's fix is for the USBTinyISP programmer. For the USBasp programmer, in a new file /etc/udev/rules.d/10-usbasp.rules
insert:
SUBSYSTEM=="usb", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", GROUP="adm", MODE="0666

Caveat emptor:
If this scares you or you are too unfamiliar with the udev system, then don't do it and continue to use the sudo command. Making a mistake can screw up your system.
Logged

Pages: [1]   Go Up
Jump to: