[BL training-materials-updates] labs: use the "newgrp" trick to have the dialoout group without avoid rebooting

Michael Opdenacker michael.opdenacker at bootlin.com
Fri Nov 23 10:07:21 CET 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=6a67c1636d1077fea94c12cea7db4d3b183108b9

>---------------------------------------------------------------

commit 6a67c1636d1077fea94c12cea7db4d3b183108b9
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Fri Nov 23 10:07:21 2018 +0100

    labs: use the "newgrp" trick to have the dialoout group without avoid rebooting
    
    - Thanks to Maxime for the trick!
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

6a67c1636d1077fea94c12cea7db4d3b183108b9
 labs/boottime-getting-started/boottime-getting-started.tex | 7 +++++--
 labs/buildroot-basic/buildroot-basic.tex                   | 7 +++++--
 labs/kernel-board-setup/kernel-board-setup.tex             | 2 +-
 labs/sysdev-u-boot/sysdev-u-boot.tex                       | 2 +-
 labs/yocto-first-build/yocto-first-build.tex               | 7 +++++--
 5 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/labs/boottime-getting-started/boottime-getting-started.tex b/labs/boottime-getting-started/boottime-getting-started.tex
index 4d2bfa0..8d5f8a2 100644
--- a/labs/boottime-getting-started/boottime-getting-started.tex
+++ b/labs/boottime-getting-started/boottime-getting-started.tex
@@ -38,8 +38,11 @@ to this \code{dialout} group:
 sudo adduser $USER dialout
 \end{verbatim}
 
-{\bf You need to {\em completely} log out of your session and log in again
-for the group change to be effective.}
+{\bf Important}: for the group change to be effective, in Ubuntu 18.04, you have to
+{\em completely reboot} the system \footnote{As explained on
+\url{https://askubuntu.com/questions/1045993/after-adding-a-group-logoutlogin-is-not-enough-in-18-04/}.}.
+A workaround is to run \code{newgrp dialout}, but it is not global.
+You have to run it in each terminal.
 
 To communicate with the board through the serial port, install a
 serial communication program, such as \code{picocom}\footnote{
diff --git a/labs/buildroot-basic/buildroot-basic.tex b/labs/buildroot-basic/buildroot-basic.tex
index b17e5e4..63124c0 100644
--- a/labs/buildroot-basic/buildroot-basic.tex
+++ b/labs/buildroot-basic/buildroot-basic.tex
@@ -298,8 +298,11 @@ the \code{dialout} group:
 sudo adduser $USER dialout
 \end{verbatim}
 
-{\bf You need to {\em completely} log out of your session and log in again
-for the group change to be effective.}
+{\bf Important}: for the group change to be effective, in Ubuntu 18.04, you have to
+{\em completely reboot} the system \footnote{As explained on
+\url{https://askubuntu.com/questions/1045993/after-adding-a-group-logoutlogin-is-not-enough-in-18-04/}.}.
+A workaround is to run \code{newgrp dialout}, but it is not global.
+You have to run it in each terminal.
 
 Now, you can run \code{picocom -b 115200 /dev/ttyUSB0}, to start
 serial communication on \code{/dev/ttyUSB0}, with a baudrate of
diff --git a/labs/kernel-board-setup/kernel-board-setup.tex b/labs/kernel-board-setup/kernel-board-setup.tex
index 70ff8c1..fe194ef 100644
--- a/labs/kernel-board-setup/kernel-board-setup.tex
+++ b/labs/kernel-board-setup/kernel-board-setup.tex
@@ -88,7 +88,7 @@ sudo adduser $USER dialout
 {\bf Important}: for the group change to be effective, in Ubuntu 18.04, you have to
 {\em completely reboot} the system \footnote{As explained on
 \url{https://askubuntu.com/questions/1045993/after-adding-a-group-logoutlogin-is-not-enough-in-18-04/}.}.
-A workaround is to run \code{su <youruser>}, but it is not global.
+A workaround is to run \code{newgrp dialout}, but it is not global.
 You have to run it in each terminal.
 
 Now, you can run \code{picocom -b 115200 /dev/ttyUSB0}, to start serial
diff --git a/labs/sysdev-u-boot/sysdev-u-boot.tex b/labs/sysdev-u-boot/sysdev-u-boot.tex
index 07829f4..718ea42 100644
--- a/labs/sysdev-u-boot/sysdev-u-boot.tex
+++ b/labs/sysdev-u-boot/sysdev-u-boot.tex
@@ -76,7 +76,7 @@ sudo adduser $USER dialout
 {\bf Important}: for the group change to be effective, in Ubuntu 18.04, you have to
 {\em completely reboot} the system \footnote{As explained on
 \url{https://askubuntu.com/questions/1045993/after-adding-a-group-logoutlogin-is-not-enough-in-18-04/}.}.
-A workaround is to run \code{su <youruser>}, but it is not global.
+A workaround is to run \code{newgrp dialout}, but it is not global.
 You have to run it in each terminal.
 
 Run \code{picocom -b 115200 /dev/ttyUSB0}, to start serial
diff --git a/labs/yocto-first-build/yocto-first-build.tex b/labs/yocto-first-build/yocto-first-build.tex
index 0b6df79..c80a64e 100644
--- a/labs/yocto-first-build/yocto-first-build.tex
+++ b/labs/yocto-first-build/yocto-first-build.tex
@@ -153,8 +153,11 @@ to the \code{dialout} group:
 sudo adduser $USER dialout
 \end{verbatim}
 
-{\bf You need to {\em completely} log out of your session and log in again
-for the group change to be effective.}
+{\bf Important}: for the group change to be effective, in Ubuntu 18.04, you have to
+{\em completely reboot} the system \footnote{As explained on
+\url{https://askubuntu.com/questions/1045993/after-adding-a-group-logoutlogin-is-not-enough-in-18-04/}.}.
+A workaround is to run \code{newgrp dialout}, but it is not global.
+You have to run it in each terminal.
 
 Now, you can run \code{picocom -b 115200 /dev/ttyUSB0}, to start serial
 communication on \code{/dev/ttyUSB0}, with a baudrate of \code{115200}. If




More information about the training-materials-updates mailing list