Virtual Network Computing (VNC) allows you to share desktop environment on a local host with other remote users over network. To share desktop, a VNC server should be running on a local host, and remote users connect to the VNC server by using any VNC viewer client.
In this tutorial, I will explain how to configure VNC server on Linux. In this set up, I will use vino, VNC server software for the GNOME desktop environment.
To install vino VNC server on Debian, Ubuntu or Linux Mint desktop:
To install vino VNC server on Fedora, CentOS or RHEL desktop:
After installation, you can start vino, and enable VNC server by entering vino-preferences command.
The above command will open up vino's desktop sharing preference window as shown below. On this window, click checkbox on "Sharing" to allow users to view and control your desktop. Optinally, set up VNC password. You can close the window after you are done with configuration.
The vino-preferences utility is then supposed to start vino VNC server automatically. If VNC server is not launched for whatever reason, you can start VNC server manually as follows.
On the latest Linux Mint Cinnamon desktop, vino-preferences is known to be missing. To enable and configure VNC server on Mint Cinnamon desktop, use dconf-editor instead, as described here.
You can check if vino is running by typing the following command.
tcp 0 0 *:5900 *:* LISTEN 6646/vino-server tcp6 0 0 [::]:5900 [::]:* LISTEN 6646/vino-server tcp6 0 0 [::]:5800 [::]:* LISTEN 6646/vino-server
As shown above, vino-server is running on TCP port number 5800 and 5900. You can use any VNC client software to connect to the VNC server.
If VNC server is configured such that you must confirm each VNC access on your desktop, you will see the following pop up message every time a VNC connection request is received. Only when you allow VNC access, will VNC client be able to access your desktop.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!
Latest posts by Dan Nanni (see all)
- How to back up a WordPress website to remote cloud storage from the Linux command line - November 24, 2015
- How to access Dropbox from the command line in Linux - November 22, 2015
- How to send email notifications using Gmail SMTP server on Linux - November 9, 2015