From 6d8d49c7b7e126701054476aae200cfef505e30a Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 15 Mar 2022 02:03:35 +0200 Subject: [PATCH] add --- .../modules/install/pages/install-docker.adoc | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/modules/install/pages/install-docker.adoc b/docs/modules/install/pages/install-docker.adoc index 77212d7..50fcadd 100644 --- a/docs/modules/install/pages/install-docker.adoc +++ b/docs/modules/install/pages/install-docker.adoc @@ -88,6 +88,47 @@ docker --version docker run hello-world ---- + +=== Set up working X11 forwarding on WSL2 + +Step A: Install X-Server Windows + +https://sourceforge.net/projects/vcxsrv/[X server] + + +Step B: Configure Display: + +on Wsl: + +[source,sh] +---- +export LIBGL_ALWAYS_INDIRECT=1 +export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 +---- + +=== Remove the Windows PATH from WSL + +Step A: remove paths on runtime + +*Add the following code to .bashrc* + +[source,sh] +---- +PATH=$(/usr/bin/printenv PATH | /usr/bin/perl -ne 'print join(":", grep { !/\/mnt\/[a-z]/ } split(/:/));') +---- + + -OR- + +*Alternative (run once!)* + +[source,sh] +---- +echo "export PATH=`echo $PATH | tr ':' '\n' | grep -v /mnt/ | tr '\n' ':'`" >> ~/.bashrc +---- + +Step B: Logout/Login + + == Fix "x509: certificate signed by unknown authority" issue On Error: