Skip to content

Instantly share code, notes, and snippets.

@HoKim98
Last active April 10, 2023 06:45
Show Gist options
  • Save HoKim98/97e21f21222a4fe2cb77283c9cb66575 to your computer and use it in GitHub Desktop.
Save HoKim98/97e21f21222a4fe2cb77283c9cb66575 to your computer and use it in GitHub Desktop.
Install noVNC with docker
#!/bin/bash
# Copyright (c) 2023 Ho Kim (ho.kim@ulagbulag.io). 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