Setting up VNC on Debian 12 with MATE: A Tech Support Guide
In this guide, we will walk you through the process of setting up a Virtual Network Computing (VNC) server on a Debian 12 system using the MATE desktop environment. VNC allows you to remotely access and control a computer's desktop, making it a convenient solution for tech support and remote working.
Prerequisites
Before we begin, ensure that your Debian 12 system is updated and that you have the necessary permissions to install software.
Open a terminal window and run the following commands:
sudo apt update
sudo apt upgrade
Installing the TightVNC Server
To install the TightVNC server, run the following command:
sudo apt install tightvncserver
Setting up the VNC Server
Once the installation is complete, you can start the VNC server by running:
tightvncserver
You will be prompted to enter a password for the VNC server. Make sure to choose a strong password and remember it, as you will need it to connect to the server.
The first time you start the server, it will create a new configuration file in the ~/.vnc directory. By default, the server will listen on localhost on display 5901.
Configuring the Firewall
To allow remote connections to the VNC server, you will need to configure your firewall. On Debian 12, this is typically done using the ufw (Uncomplicated Firewall).
sudo ufw allow 5901/tcp
Connecting to the VNC Server
To connect to the VNC server from a remote location, you will need a VNC client. There are many options available, including TightVNC Viewer, RealVNC Viewer, and Vinagre.
Once you have installed a VNC client, enter the IP address or hostname of the Debian 12 system, followed by the display number (5901 by default) and the password you set up when installing the server.
Shutting down the VNC Server
To shut down the VNC server, run:
tightvncserver -kill :[display number]
- Update and upgrade your Debian 12 system
- Install the TightVNC server
- Set up the VNC server and configure the firewall
- Connect to the VNC server using a VNC client
- Shut down the VNC server when not in use