LinuxCommandLibrary

xvnc

TLDR

Start VNC server on display :1

$ Xvnc :1
copy
Start with specific geometry
$ Xvnc :1 -geometry [1280x1024]
copy
Start with color depth
$ Xvnc :1 -depth [24]
copy
Start with password file
$ Xvnc :1 -PasswordFile [~/.vnc/passwd]
copy
Start on specific port
$ Xvnc :1 -rfbport [5901]
copy
Use vncserver script (recommended)
$ vncserver :1
copy

SYNOPSIS

Xvnc [:display] [options]

DESCRIPTION

Xvnc is both an X server and a VNC server. It creates a virtual X display with no physical screen, accessible only via VNC viewers. Applications run on Xvnc as on a normal X display.
The server listens on TCP port 5900+display for VNC connections. Unlike x11vnc which shares an existing display, Xvnc creates new independent virtual displays.
The vncserver script is the recommended way to start Xvnc, handling environment setup and running initial applications. Multiple Xvnc instances can run on different display numbers.

PARAMETERS

-geometry WxH

Desktop size (default: 1024x768).
-depth n
Color depth: 16, 24, or 32 (default: 24).
-rfbport port
VNC listener port (default: 5900+display).
-PasswordFile file
Password file for authentication.
-SecurityTypes types
Comma-separated list of security types.
-localhost
Only accept connections from localhost.
-AlwaysShared
Allow multiple simultaneous connections.
-NeverShared
Disconnect existing clients on new connection.

CAVEATS

No hardware acceleration for 3D. Each session uses separate display number. Password file must be created with vncpasswd. Firewall rules needed for remote access.

HISTORY

Xvnc was developed as part of VNC (Virtual Network Computing) at AT&T Laboratories Cambridge. Various implementations exist including TightVNC, TigerVNC, and RealVNC, each with additional features and optimizations.

SEE ALSO

Copied to clipboard