doc: Unify the two sections about the "dialout" group on Linux

An addition to https://github.com/espressif/esp-idf/pull/1158
This commit is contained in:
Angus Gratton 2017-11-20 16:10:38 +11:00 committed by Angus Gratton
parent 05dd46cd72
commit 4b8c90bce0
2 changed files with 4 additions and 5 deletions

View File

@ -54,10 +54,12 @@ MacOS ::
ls /dev/cu.*
.. _linux-dialout-group:
Adding user to ``dialout`` on Linux
-----------------------------------
The currently logged user should have read and write access the serial port over USB. This is done by adding the user to ``dialout`` group with the following command::
The currently logged user should have read and write access the serial port over USB. On most Linux distributions, this is done by adding the user to ``dialout`` group with the following command::
sudo usermod -a -G dialout $USER

View File

@ -73,10 +73,7 @@ ESP32 toolchain for Linux is available for download from Espressif website:
Permission issues /dev/ttyUSB0
------------------------------
With some Linux distributions you may get the ``Failed to open port /dev/ttyUSB0`` error message when flashing the ESP32. This can be solved by adding the current user to the ``dialout`` group, such as running the following command::
sudo adduser $USER dialout
With some Linux distributions you may get the ``Failed to open port /dev/ttyUSB0`` error message when flashing the ESP32. :ref:`This can be solved by adding the current user to the dialout group<linux-dialout-group>`.
Arch Linux Users