VNC (VNC) is an access protocol that is used for remote desktop management (for example, when a technician works with a client or when an employee accesses data from home). SSH or VPN is required to use Virtual Network Computing securely. 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 privileges, use the command
ssh root@IP_DEL_SERVER
Similarly, you can connect under a user with other privileges (but in this case, replace the word root with your name:
ssh username@IP_DEL_SERVER
To connect via ssh, use the standard port 22.
For full-fledged work with VNZ you need to install Desktop Environment (DE). The options are different, depending on the specific case:
XFCE or Mate Desktop - for low-resource environments;
Gnome - for servers with high resource level.
The desktop environment is installed with the command sudo apt install task
, in which you need to add the selected DE. For example:
sudo apt install task-gnome-desktop dbus-x11
To do this we use the command:
sudo useradd -m -s /bin/bash USERNAME
Next, we set our USERNAME with a password:
passwd USERNAME
When the username is created, you can add it to the group with the command:
sudo usermod -aG sudo USERNAME
To log in and check root permissions, use the command su - USERNAME
.
In this step we do 2 global settings:
To install TigerVNC we use the command:
sudo apt install tigervnc-standalone-server tigervnc-common -y
After that we need to log in without root privileges and initialize the VNC server:
su - USERNAME
vncserver.
The system will automatically prompt us to enter the password that will be used for access. Note that it must be strong and at least 8 characters long. It will then ask if you are going to create a view-only password (for example, when you want to share the VNC server). When you complete the process, you will get information with where the VNC server is running. All that's left to do is set up the environment, add a user to TigerVNC, and connect to the server
Apply the discount by inserting the promo code in the special field at checkout: