Hi all,
I think a little clarity is needed here.

There we saw in two systems today at an arduino meetup, both running debian.

The shortcut way that one of the devs. at the maker shared was to do :-

$ sudo arduino

to get the serial port to show. I was a bit tired and distracted at
that time to be of any real help.

Later I remembered, that just like when trying to write a CD/DVD the
user has to be a member of the cdrom group. Similarly, for serial port
access he might need to be a member of some groups as well. Also
having the whole application exposed via sudo might entail a security
risk.

Then a quick search lead me to this :-

http://playground.arduino.cc/Linux/Debian#.UzcQ6x__TQU

and esp. this part :-

sudo usermod -a -G tty yourUserName

sudo usermod -a -G dialout yourUserName

I don't either have a PI or the aurdino to test this theory but was
able to get the groups part while trying an external hdd which I can
connect and disconnect at will.

before connecting :-

$ ls /dev/sd <TAB>
sda   sda1  sda2  sda5  sda6  sda7  sda8  sda9

After connecting the external hdd :-

$ ls /dev/sd
sda   sda1  sda2  sda5  sda6  sda7  sda8  sda9  sdb   sdb1

$ ls -al /dev/sdb
brw-rw---- 1 root floppy 8, 16 Mar 30 00:30 /dev/sdb

hence you can figure out the group from that and yourself to that
group and it should work.

Looking at the package, figured there is a binary which fixes the
permissions at least in debian.

$arduino-add-groups

Just run the command and see if it works without resorting to sudo.

If the above works, then the bug is no longer there, just send a blank mail to

742953-d...@bugs.debian.org

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to