From d03ffc1f26be3171a3673fa73fedb85664ab6cad Mon Sep 17 00:00:00 2001 From: "David Kennedy S. A" Date: Wed, 28 Mar 2018 11:57:59 -0300 Subject: [PATCH] Enable any client connect to X host --- run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.sh b/run.sh index 4eead955..288c22bd 100755 --- a/run.sh +++ b/run.sh @@ -4,10 +4,16 @@ SE_enforcing=`getenforce` || true sudo setenforce Permissive || true +# Enable any host to connect on X Org +xhost + + docker run -ti --rm \ -e DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ --device /dev/dri \ edubart/otclient +# Enable any host to connect on X Org +xhost - + sudo setenforce $SE_enforcing || true