VNC (VNC) is an access protocol that is used for remote desktop management (for example, when a technical specialist works with a client or when organizing employee access to data from home). To use Virtual Network Computing securely, SSH or VPN is required.
The step-by-step instructions on how to install and configure VNC on Debian 11 involve a number of steps.
To do this, you need to know the IP address. To connect with root rights, use the command
ssh root@IP_DEL_SERVER
Similarly, you can connect under a user with other rights (but in this case, we replace the word root in the command with your name:
ssh username@IP_DEL_SERVER
To connect via ssh, use the standard port 22.
To fully work with the VNC, you need to install Desktop Environment (DE). The options are different, depending on the specific case:
XFCE or Mate Desktop – when resources are low;
Gnome – for servers with a high level of resources.
The installation of the desktop environment is carried out by the sudo apt install task command, in which you need to add the selected DE. Eg:
sudo apt install task-gnome-desktop dbus-x11
To do this, use the command:
sudo useradd -m -s /bin/bash USERNAME
Next, we set our USERNAME password:
passwd USERNAME
When the user is created, you can add him to the group with the command:
sudo usermod -aG sudo USERNAME
To log in and check root rights, use the su - USERNAME command.
At this stage we are making 2 global settings:
VNC;
DE,
To install TigerVNC, use the command:
sudo apt install tigervnc-standalone-server tigervnc-common -y
After that, we need to log in without root rights and initialize the VNC server:
su - USERNAME
vncserver.
The system will automatically prompt you to enter the password that will be used for access. Please note that it must be reliable and consist of at least 8 characters.
After that, the question will be whether you are going to create a password for viewing only (for example, when you want to share a VNC server).
When you complete the process, get information with where the VNC server is running.
Then it remains only to configure the environment, add the user to TigerVNC and connect to the server
Apply the discount by inserting the promo code in the special field at checkout: