aboutsummaryrefslogtreecommitdiff
path: root/vnc-version
diff options
context:
space:
mode:
authorBen Mitchell <[email protected]>2020-08-23 19:59:59 +0100
committerGitHub <[email protected]>2020-08-23 19:59:59 +0100
commitb0242f1140b52d12b50a159afdefcc778a6ebacd (patch)
tree4a67f8c1603c1b1dc9a1328455f377c170e6d814 /vnc-version
parentCreate FUNDING.yml (diff)
downloaddocker-osx-b0242f1140b52d12b50a159afdefcc778a6ebacd.tar.xz
docker-osx-b0242f1140b52d12b50a159afdefcc778a6ebacd.zip
Fix gpk error
Remove /tmp/.X99-lock before starting VNC
Diffstat (limited to 'vnc-version')
-rw-r--r--vnc-version/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnc-version/Dockerfile b/vnc-version/Dockerfile
index 5001bb1..be1dc97 100644
--- a/vnc-version/Dockerfile
+++ b/vnc-version/Dockerfile
@@ -98,8 +98,9 @@ RUN printf '%s\n' \
'xinit &' \
'xterm &' > ~/.vnc/xstartup
-# this won't work if you have 99 monitors, 98 monitors is fine though
+# this won't work if you have 99 monitors, 98 monitors is fine though // don't forget to remove the lock file incase you shut down incorrectly or create an image.
RUN printf '%s\n%s\n%s\n\n' \
+'sudo rm -rf /tmp/.X99-lock' \
'export DISPLAY=:99' \
'vncserver -kill :99 || true' \
'vncserver -geometry 1920x1080 -depth ${DEPTH} -xstartup ~/.vnc/xstartup :99' > vnc.sh