Skip to content

Instantly share code, notes, and snippets.

@markwylde
Created August 25, 2022 07:42
Show Gist options
  • Save markwylde/3f9dafa1db9d9c8f3833438e016bc578 to your computer and use it in GitHub Desktop.
Save markwylde/3f9dafa1db9d9c8f3833438e016bc578 to your computer and use it in GitHub Desktop.
Creater an X11 server in Docker with VNC
apt-get update
apt-get upgrade -y
DEBIAN_FRONTEND=noninteractive apt-get install -y x11vnc xvfb fluxbox
Xvfb :2 -screen 0 1024x768x16 &
DISPLAY=:2 fluxbox &
DISPLAY=:2 x11vnc -display :2 -bg -forever -nopw -quiet -listen localhost -xkb &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment