From 4c3ed293f9fcf4f5625d4b1f2a45f6e850c4ea13 Mon Sep 17 00:00:00 2001 From: Scott McCormack Date: Mon, 20 Feb 2023 13:14:26 +0800 Subject: [PATCH] Instructions for setting `xhost` config --- ros-docker-on-linux.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ros-docker-on-linux.md b/ros-docker-on-linux.md index ef43d7c..8c8cdf8 100644 --- a/ros-docker-on-linux.md +++ b/ros-docker-on-linux.md @@ -27,6 +27,22 @@ cd course docker build -t nvidia_ros . ``` +### Check your `xhost` config + +Ensure non-network local connections are enabled for `xhost` +- If `xhost` returns the following results for your user (`$USER`) + + ``` + access control enabled, only authorized clients can connect + SI:localuser:$USER + ``` +- Run `xhost +local:*` to update to the correct settings + ``` + access control enabled, only authorized clients can connect + LOCAL: + SI:localuser:$USER + ``` + ### Start a `nvidia_ros` container with `workshop_ws` mounted ```bash