« Back to docs

Starting and stopping VNC Connect

You can operate some VNC Connect programs from the graphical desktop in the standard way for your Linux distribution. Others must be operated from the command line.

Operating VNC Server at the command line

By default, VNC Server is installed in /usr/bin or /usr/local/bin.

Note that:

  • Commands for VNC Server in Service Mode must be run with elevated privileges, for example using sudo.
  • For VNC Server in Virtual Mode, the vncserver symlink can be substituted for vncserver-virtual.
Operation Mode Command
Start VNC Server Service systemctl start vncserver-x11-serviced.service #systemd
/etc/init.d/vncserver-x11-serviced start #initd
User vncserver-x11
Virtual vncserver-virtual
Virtual daemon systemctl start vncserver-virtuald.service #systemd
/etc/init.d/vncserver-virtuald start #initd
Start VNC Server at next boot Service systemctl enable vncserver-x11-serviced.service #systemd
update-rc.d vncserver-x11-serviced defaults #initd
User invalid operation
Virtual invalid operation
Virtual daemon systemctl enable vncserver-virtuald.service #systemd
update-rc.d vncserver-virtuald defaults #initd
Connect to Listening VNC Viewer (direct connections only) Service vncserver-x11 -service -connect <computer>
User vncserver-x11 -connect <computer>
Virtual DISPLAY=:<display-number> Xvnc -connect <computer>
Virtual daemon invalid operation
Start and connect to Listening VNC Viewer (direct connections only) Service invalid operation
User vncserver-x11 -iconnect <computer>
Virtual vncserver-virtual -iconnect <computer>
Virtual daemon invalid operation
Reload license keys and parameters without stopping Service vncserver-x11 -service -reload
User vncserver-x11 -reload
Virtual DISPLAY=:<display-number> Xvnc -reload
Virtual daemon invalid operation
Get help Service vncserver-x11-serviced -help and man vncserver-x11-serviced
User vncserver-x11 -help and man vncserver-x11
Virtual vncserver-virtual -list and man vncserver-virtual
Virtual daemon vncserver-virtuald -help and man vncserver-virtuald
Stop VNC Server Service systemctl stop vncserver-x11-serviced.service #systemd
/etc/init.d/vncserver-x11-serviced stop #initd
User vncserver-x11 -stop
Virtual vncserver-virtual -kill :<display-number>
Virtual daemon systemctl stop vncserver-virtuald.service #systemd
/etc/init.d/vncserver-virtuald stop #initd
Prevent VNC Server starting at boot Service systemctl disable vncserver-x11-serviced.service #systemd
update-rc.d vncserver-x11-serviced disable #initd
User invalid operation
Virtual invalid operation
Virtual daemon systemctl disable vncserver-virtuald.service #systemd
update-rc.d vncserver-virtuald disable #initd

Operating VNC Viewer at the command line

If you download VNC Connect, then VNC Viewer is included and will be installed in /usr/bin or /usr/local/bin by default.

If you download VNC Viewer as a standalone desktop app, then you must make the download file executable before running it.

Operation Type Command
Start VNC Viewer Standalone ./<download-file>
Installed vncviewer
Start VNC Viewer and establish a direct connection Standalone ./<download-file> <computer>
Installed vncviewer <computer>
Start Listening VNC Viewer Standalone ./<download-file> -listen [<port>]
Installed vncviewer -listen [<port>]
Get help Standalone ./<download-file> -help
Installed vncviewer -help
×