Go Down

Topic: HOW TO: upload code as user (linux) (Read 1 time) previous topic - next topic

lesto

Sep 15, 2010, 01:16 am Last Edit: Sep 15, 2010, 01:17 am by lestofante Reason: 1
I've see many times people asking why they can't upload code as normal user in linux.
Normally you have to go on /dev and find ttyUSBX, where X is a number, and check the file group. Then simply add your user to the group. (also tty group to use serial)
In my case the group was uucp and the user is USER
Code: [Select]
sudo usermod -g uucp USER
But sometimes (like me) you won't find the file ttyUSBX.
Here how I solve (arch linux):
go to directory:
Code: [Select]
/etc/udev/rules.d/
create (or modify) a file like "98-FTDI.rules"
and write inside:
Code: [Select]
SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB UART", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB%n"
Last but not least:
Code: [Select]
sudo udevadm control --reload-rules

Well then I've rebooted the PC, just to be sure... and now I can upload without using "sudo " ;D

Hope this will help you
sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

GordonEndersby

#1
Sep 16, 2010, 08:31 pm Last Edit: Sep 16, 2010, 08:32 pm by GordonEndersby Reason: 1
Or in the user manager add yourself to the user group to allow use of modems.
In Ubuntu in the "Users and groups" application under administration.
Double click on the user and under User privileges  check the box "use modems".

No command line needed.

Gordon


lesto

ubuntu works in different way, has less restrictions... mine (ubuntu 9.10) work out of the box
sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Go Up