Actions

Running avrdude from eclipse under linux

From Just in Time

Revision as of 21:15, 4 November 2010 by Danny (talk | contribs) (Created page with 'When I run avrdude under linux, it needs to run with superuser privileges (don't know why). Running from the command line is fine if I use sudo, but I hadn't been able to figure …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When I run avrdude under linux, it needs to run with superuser privileges (don't know why). Running from the command line is fine if I use sudo, but I hadn't been able to figure out how to tell avr-eclipse to do the same. The solution that I use is to rename /usr/bin/avrdude to something like /usr/bin/true-avrdude and create a script under the name /usr/bin/avrdude with the following content:

#!/bin/sh
gksudo --user root -- true-avrdude $@

Don't forget to sudo chmod 755 /usr/bin/true-avrdude after creating the file.