Last active
April 10, 2023 06:45
-
-
Save HoKim98/97e21f21222a4fe2cb77283c9cb66575 to your computer and use it in GitHub Desktop.
Install noVNC with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2023 Ho Kim ([email protected]). All rights reserved. | |
# Install X11VNC | |
docker run -d \ | |
--name x11vnc \ | |
--restart always \ | |
--net host \ | |
-e DISPLAY=":0" \ | |
-e X11VNC_ARGS="-cursor most -noscr -nowcr -nowf -noxdamage -auth /root/.Xauthority" \ | |
-e X11VNC_MULTIPTR="false" \ | |
-e X11VNC_XKB="true" \ | |
--volume /tmp/.X11-unix:/tmp/.X11-unix \ | |
--volume $HOME:/root \ | |
--user $(id -u) \ | |
--group-add $(id -g) \ | |
--ipc host \ | |
quay.io/ulagbulag-village/netai-cloud-vine-x11vnc:latest | |
# Install noVNC | |
docker run -d \ | |
--name novnc \ | |
--restart always \ | |
--net host \ | |
--user $(id -u) \ | |
--group-add $(id -g) \ | |
--ipc host \ | |
quay.io/ulagbulag-village/netai-cloud-vine-novnc:latest | |
# Then, connect to: "http://127.0.0.1:6080/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment