Y
Y
yahabrovec2018-09-24 21:02:40
linux
yahabrovec, 2018-09-24 21:02:40

How to always have access to ttyUSB0?

Hello everyone I
have a question. I have a linux ubuntu on my pc, and i connect an arduino nano to it. She gets up in the port ttyUSB0. And I can’t upload the sketch to it, because ttyUSB0 is read-only. And every time I have to run nautilus as root, go to / dev / find ttyUSB0 there and give it read and write permissions. It's all dull and long. Does anyone know how to automate all this so that the arduino, when connected, is already available for uploading the sketch. I know that you can come up with something with udev-rules, but I don’t know how. Tell me who knows

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2018-09-24
@yahabrovec

Add your user to the dialout group
Or set a rule in UDEV to create devices with the necessary rights, for example -

KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"

A
AVKor, 2018-09-24
@AVKor

You need to search before asking a question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question