LinuxCommandLibrary

vncserver

Launch VNC remote desktop server

TLDR

Launch on next available display

$ vncserver
copy
Launch with geometry
$ vncserver --geometry [width]x[height]
copy
Kill specific display
$ vncserver --kill :[display_number]
copy

SYNOPSIS

vncserver [OPTIONS] [:DISPLAY]

DESCRIPTION

vncserver launches a VNC (Virtual Network Computing) desktop server. It creates a new X display that can be accessed remotely using a VNC viewer.
Each server instance runs on a separate display number. The first available display is used if not specified.

PARAMETERS

--geometry WxH

Specify screen geometry
--kill :DISPLAY
Kill VNC server on specified display
--depth N
Color depth in bits
--name NAME
Desktop name shown to clients

CAVEATS

Password must be set before first use. Display number is added to base port 5900. Firewall may need to allow VNC ports. Consider SSH tunneling for security.

SEE ALSO

vncviewer(1), x11vnc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard