Close Menu
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • How to
      • Q&A
    • OS
      • Windows
      • Arch Linux
    • AI
    • Gaming
      • Easter Eggs
    • Statistics
    • Blog
      • Featured
    • MORE
      • IP Address
      • Man Pages
    • Write For Us
    • Contact
    Command Linux
    Home - man page - vncserver

    vncserver

    WillieBy WillieJanuary 22, 2026Updated:January 22, 2026No Comments3 Mins Read

    NAME

    vncserver – a wrapper to launch an X server for VNC.  

    SYNOPSIS

    vncserver [:display] [-geometry widthxheight] [-depth depth] [-pixelformat rgbNNN|bgrNNN] [-name desktop-name] [ -httpport int ] [ -basehttpport int ] [ -alwaysshared ] [ -nevershared ] [Xvnc-options…]
    vncserver [ -clean ] -kill :display
    vncserver -help
     

    DESCRIPTION

    vncserver is a wrapper script for Xvnc, the free X server for VNC (Virtual Network Computing). It provides all capabilities of a standard X server, but does not connect to a display for itself. Instead, Xvnc creates a virtual desktop you can view or control remotely using a VNC viewer.  

    OPTIONS

    You can add Xvnc options at the command line. They will be added to the invocation of Xvnc without changes. The options provided by the vncserver itself are as follows:
    :display
    The display number to use. If omitted, the next free display number is used.
    -geometry widthxheight
    Set desktop width and height.
    -depth depth
    Set the colour depth of the visual to provide, in bits per pixel. Must be a value between 8 and 32.
    -pixelformat rgbNNN|bgrNNN
    Set colour format for pixels representation. The viewer can do the conversion to any other pixel format, but it is faster if the depth and pixel format of the server is the same as the equivalent values on the viewer display.
    -name string
    This specifies the name of the desktop.
    -clean
    This option can be used in conjunction with
    -kill :display
    Stops the session running on the specified display.
    -nevershared
    Never allow shared desktops.
    -alwaysshared
    Always allow shared desktops.
    -basehttpport int
    The base http port to use for the java client applet (you have to install the tightvnc-java package to make this work). The real port number will be port = base + display num.
    -httpport int
    The http port to use for the java client applet (you have to install the tightvnc-java package to make this work).
    -help
    Prints a short usage notice to stderr.
     

    EXAMPLES

    vncserver
    Invokes Xvnc on the next available display and with suitable defaults.
    vncserver :1
    Invokes Xvnc on display :1.
    vncserver -geometry 800×600 -depth 16 :1
    Invokes Xvnc on display :1 with desktop size of 800×600 pixels and color depth of 16 bits per pixel.
    vncserver -kill :1
    Shuts down Xvnc server on display :1.
     

    AUTHORS

    Original VNC was developed in AT&T Laboratories Cambridge. TightVNC additions were implemented by Constantin Kaplinsky. Many other people participated in development, testing and support.

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    PSTREE

    April 20, 2026

    SIGSUSPEND

    April 20, 2026

    SETFACL

    April 20, 2026

    SYSTEMD-SYSCTL.SERVICE

    April 20, 2026
    Top Posts

    HTTP::Cookies::Netscape

    April 8, 2026

    DASH

    January 23, 2026

    POLKIT

    April 19, 2026

    service

    January 24, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.