Actions

Difference between revisions of "Running avrdude from eclipse under linux"

From Just in Time

(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 …')
 
m
Line 1: Line 1:
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 <code>/usr/bin/avrdude</code> to something like <code>/usr/bin/true-avrdude</code> and create a script under the name <code>/usr/bin/avrdude</code> with the following content:
+
When I run avrdude under linux to program through my USBTiny device, 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 <code>/usr/bin/avrdude</code> to something like <code>/usr/bin/true-avrdude</code> and create a script under the name <code>/usr/bin/avrdude</code> with the following content:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
#!/bin/sh
 
#!/bin/sh

Revision as of 00:30, 5 November 2010

When I run avrdude under linux to program through my USBTiny device, 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.