From ad1438f906581b0c9c94743eeb4997e8e38b9bda Mon Sep 17 00:00:00 2001 From: hamza Date: Fri, 4 Oct 2024 14:35:10 +0000 Subject: [PATCH] Added Display section for troubleshooting --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ebd2b3..60fc3a1 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,34 @@ To verify if everything worked, try to open the STM32CubeMX. Execute the followi ```(cmd) stm32cubemx ``` -If it does not work you may have to play around with the DISPLAY environment variable. +If it does not work you may have to play around with the DISPLAY environment variable. Check the following section. + +## Display + +If you run into this issue, you can try this solution from https://stackoverflow.com/a/44434831 + +```(cmd) +echo $DISPLAY +OUTPUT: +:1 +``` + +```(cmd) +xauth list +OUTPUT: +:1 MIT-MAGIC-COOKIE-1 +``` + +```(cmd) +export DISPLAY=:1 +``` + +```(cmd) +xhost +local:docker +OUTPUT: +non-network local connections being added to access control list +``` +Then return to Test the Setup section and check if everything is working correctly ## Add a new Repository