From b0242f1140b52d12b50a159afdefcc778a6ebacd Mon Sep 17 00:00:00 2001 From: Ben Mitchell Date: Sun, 23 Aug 2020 19:59:59 +0100 Subject: [PATCH 1/3] Fix gpk error Remove /tmp/.X99-lock before starting VNC --- vnc-version/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 1e5f69e63f17e7c5472fa7e8b69b829776be94fd Mon Sep 17 00:00:00 2001 From: Ben Mitchell Date: Sun, 23 Aug 2020 20:03:11 +0100 Subject: [PATCH 2/3] fix gpk error fix gpk error caused by images or incorrect shutdown --- vnc-version/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnc-version/Dockerfile b/vnc-version/Dockerfile index be1dc97..096c3ff 100644 --- a/vnc-version/Dockerfile +++ b/vnc-version/Dockerfile @@ -100,7 +100,7 @@ RUN printf '%s\n' \ # 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' \ +'sudo rm -f /tmp/.X99-lock' \ 'export DISPLAY=:99' \ 'vncserver -kill :99 || true' \ 'vncserver -geometry 1920x1080 -depth ${DEPTH} -xstartup ~/.vnc/xstartup :99' > vnc.sh From 12c1270152e67d3e2765c33fcd3b0a6a766c5caa Mon Sep 17 00:00:00 2001 From: Ben Mitchell Date: Sun, 23 Aug 2020 20:05:09 +0100 Subject: [PATCH 3/3] fix gpk error fix gpk error --- vnc-version/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnc-version/Dockerfile b/vnc-version/Dockerfile index 096c3ff..019ddaa 100644 --- a/vnc-version/Dockerfile +++ b/vnc-version/Dockerfile @@ -99,7 +99,7 @@ RUN printf '%s\n' \ 'xterm &' > ~/.vnc/xstartup # 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' \ +RUN printf '%s\n%s\n%s\n%s\n\n' \ 'sudo rm -f /tmp/.X99-lock' \ 'export DISPLAY=:99' \ 'vncserver -kill :99 || true' \