Fix gpk error

Remove /tmp/.X99-lock before starting VNC
This commit is contained in:
Ben Mitchell 2020-08-23 19:59:59 +01:00 committed by GitHub
parent a6c9714a1d
commit b0242f1140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,8 +98,9 @@ RUN printf '%s\n' \
'xinit &' \ 'xinit &' \
'xterm &' > ~/.vnc/xstartup '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' \ RUN printf '%s\n%s\n%s\n\n' \
'sudo rm -rf /tmp/.X99-lock' \
'export DISPLAY=:99' \ 'export DISPLAY=:99' \
'vncserver -kill :99 || true' \ 'vncserver -kill :99 || true' \
'vncserver -geometry 1920x1080 -depth ${DEPTH} -xstartup ~/.vnc/xstartup :99' > vnc.sh 'vncserver -geometry 1920x1080 -depth ${DEPTH} -xstartup ~/.vnc/xstartup :99' > vnc.sh