VNC or Virtual Network Computing is a connection system that allows users to use peripherals such as keyboard or mouse to interact in a desktop environment on a remote server. We can manage files, software and settings of a specific server in a remote and easy way for those users who want to use the command line. In this article we are going to explain how to install it in Linux in a fast way.
How to install VNC on Ubuntu
In our case, we are going to install it on Ubuntu , one of the most popular Linux distributions out there and with more users. The process is simple and fast and you simply have to follow a series of steps and install some tools. From there we will have a server configured and ready to use.

The first thing we are going to do is install the Gnome Core package. We will need it since we will use it to use the graphical interface. We have to execute the following command (we can do it both physically and through SSH):
Sudo apt-get install gnome-core
It will ask us for the administrator password and then it will start downloading the necessary packages. It will also ask us to confirm several times and put passwords to configure it.

Once we have it ready, the next thing we will do is install a VNC server , which in our case we will use TightVNC. Therefore we must execute the following command:
Sudo apt-get install tightvnc
As in the previous case, it will ask us for the administrator password, as well as confirm the installation. Keep in mind that the password must contain between 6 and 8 characters and that if it has more than 8 it will be automatically reduced.
Run vncserver from terminal
After installing it we can run vncserver from the terminal. It will ask us for the password and the verification to access and later it will indicate that the server has been installed. It will have been installed on the first virtual screen of VNC, which is 1. This will appear in the terminal.

After this, what we are going to do is close this new virtual desktop that we have created to carry out a series of configurations and then open it manually. In this way we execute the following command:
Vncserver –kill: 1
An image like the one below will appear.

Later we will configure some parameters of the VNC server. This time we are going to execute this command:
Sudo nano .vnc / xstartup
That is the configuration file that comes by default from VNC. To configure it, it must be replaced by what we see below.

When we have saved the configuration file we have to write in the terminal:
Vncserver –geometry 1920 × 1080
Keep in mind that the resolution can be changed to the one we are going to use. We will have to wait a few seconds and we will already have the VNC server enabled within the virtual desktop: 1 that we created. To connect we will have to install a VNC client and write the IP address of our server, followed by: 1.
In short, by following these steps we can configure a server in Ubuntu and have it ready to use. We can access it remotely. We have seen that it is a simple and fast process. We simply have to carry out the steps we have shown and have the different programs and tools necessary for this installed.
Linux distributions are a good alternative to the Windows operating system. Especially when we talk about servers, it is an option to take into account. Ubuntu is undoubtedly one of the most popular and used distributions. It has multiple tools and a large amount of information on the Internet to be able to carry out changes that we need to make. In this way we can always configure the equipment according to our needs, in a safe and efficient way. However, this that we have explained can also be applied to other compatible Linux distributions that we use on our computers.