Pages: [1]   Go Down
Author Topic: HOW TO: upload code as user (linux)  (Read 1323 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Shannon Member
****
Karma: 136
Posts: 10525
:(){:|:&};:
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
/etc/udev/rules.d/
create (or modify) a file like "98-FTDI.rules"
and write inside:
Code:
SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB UART", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB%n"
Last but not least:
Code:
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
« Last Edit: September 14, 2010, 06:17:11 pm by lestofante » Logged

sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

London
Offline Offline
Sr. Member
****
Karma: 1
Posts: 330
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

« Last Edit: September 16, 2010, 01:32:11 pm by GordonEndersby » Logged

0
Offline Offline
Shannon Member
****
Karma: 136
Posts: 10525
:(){:|:&};:
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ubuntu works in different way, has less restrictions... mine (ubuntu 9.10) work out of the box
Logged

sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Pages: [1]   Go Up
Jump to: