[SOLVED] arduino IDE need superuser rights?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rob142

[SOLVED] arduino IDE need superuser rights?

Post by rob142 »

Hello

I just installed mint v19 and wanted to get the Arduino IDE
The software manager version is quite old, so I got the latest directly on the arduino website (arduino-1.8.7-linux64.tar.xz)
I extracted it, then I ran the install.sh file

everything went OK, a shortcut was created in the menu, it runs fine, but I can't upload any sketch to my board.

Code: Select all

name@computerr:~$ /home/name/Programmes/arduino-1.8.7/arduino

it does exactly the same as the shortcut ... as expected !

BUT if I run

Code: Select all

name@computerr:~$ sudo /home/name/Programmes/arduino-1.8.7/arduino

it asks for my password and then runs it properly, no problem to upload...

So it is not really a problem since I can use it anyway, but I am quite sure ther is a way to run it simply without a password as I used to !

Anyone who knows how to solve this?

thanks a lot !
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rob142

[SOLVED] arduino IDE need superuser rights?

Post by rob142 »

Ok problem solved

I knew you needed to be in the dialout group, in which I was (a window opens while installing the IDE to do so). You can also do it This way :

Code: Select all

$ sudo adduser <username> dialout
Then you have to manage read/write rights
The problem was that every solution I found talked about "/dev/ttyACM0" port

Since my port (in the IDE /tools/port menu) was /dev/ttyUSB0, I had to change the usual command I found in several forums
Code: [Select]

sudo chmod a+rw /dev/ttyACM0


to :
Code: [Select]

sudo chmod a+rw /dev/ttyUSB0


simple as that...

Will be much easier this way !
edkirin
Level 1
Level 1
Posts: 12
Joined: Tue Dec 28, 2010 3:48 pm

Re: [SOLVED] arduino IDE need superuser rights?

Post by edkirin »

Not directly related to your question, but take a look at Atom + PlatformIO combination, as it's really superior IDE for Arduino development, even with free community version of PlatformIO.

https://atom.io/
https://platformio.org/
https://docs.platformio.org/en/latest/ide/atom.html
Neil Darlow

Re: [SOLVED] arduino IDE need superuser rights?

Post by Neil Darlow »

If you look in the extracted arduino-1.8.7 directory you will see a script named arduino-linux-setup.sh.

Running that script as follows:

Code: Select all

./arduino-1.8.7/arduino-linux-setup.sh $USER
will add your userid to the needed groups (there is more than dialout) and create the necessary rules to set permissions and ownerships on the dynamically created devices managed by udev. Executing chown and chmod commands on dynamically created device nodes isn't correct - you would have to repeat the operation after each boot - udev manages this for you.

Regards,
Neil
Locked

Return to “Software & Applications”