2018-03-21 05:55:51 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-03-21 05:56:38 +01:00
|
|
|
SE_enforcing=`getenforce` || true
|
|
|
|
|
|
|
|
sudo setenforce Permissive || true
|
|
|
|
|
2018-03-28 16:57:59 +02:00
|
|
|
# Enable any host to connect on X Org
|
|
|
|
xhost +
|
|
|
|
|
2018-03-21 05:55:51 +01:00
|
|
|
docker run -ti --rm \
|
|
|
|
-e DISPLAY \
|
|
|
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
--device /dev/dri \
|
|
|
|
edubart/otclient
|
2018-03-21 05:56:38 +01:00
|
|
|
|
2018-03-28 16:57:59 +02:00
|
|
|
# Enable any host to connect on X Org
|
|
|
|
xhost -
|
|
|
|
|
2018-03-21 05:56:38 +01:00
|
|
|
sudo setenforce $SE_enforcing || true
|