X11vnc Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

X11vnc Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

x11vnc

A VNC server that will enable VNC on an existing display ser.
By default, the server will automatically terminate once all clients disconnect from it.

Maintainer: Nikita Yushchenko



Section: x11

Install x11vnc

  • Debian apt-get install x11vnc Click to copy
  • Ubuntu apt-get install x11vnc Click to copy
  • Alpine OS apk add x11vnc Click to copy
  • Arch Linux pacman -S x11vnc Click to copy
  • Kali Linux apt-get install x11vnc Click to copy
  • Fedora dnf install x11vnc Click to copy
  • Raspbian apt-get install x11vnc Click to copy
  • macOS brew install x11vnc Click to copy

A VNC server that will enable VNC on an existing display ser. By default, the server will automatically terminate once all clients disconnect from it.

How to use x11vnc?

Below are few example commands for x11vnc that you can use in the terminal.

Launch a VNC server that allows multiple clients to connect:
x11vnc -sharedClick to copy
Launch a VNC server in view-only mode, and which won't terminate once the last client disconnects:
x11vnc -forever -viewonlyClick to copy
Launch a VNC server on a specific display and screen (both starting at index zero):
x11vnc -display :display.screenClick to copy
Launch a VNC server on the third display's default screen:
x11vnc -display :2Click to copy
Launch a VNC server on the first display's second screen:
x11vnc -display :0.1Click to copy
To install the latest version of x11vnc in your favorite operating system just copy the x11vnc installation command from above and paste it into terminal. It will download and install the latest version of x11vnc 2026 package in your OS.