Using remote desktop software allows users to access and control a computer or server from another location. One popular option for setting up remote desktop access on a Debian 12 server is Xrdp. Xrdp is an open-source remote desktop protocol (RDP) server that allows users to connect to their Linux desktop remotely using Microsoft’s Remote Desktop Protocol.
In this guide, we will walk you through the step-by-step process of setting up Xrdp on your Debian 12 server.
Step 1: Update and Upgrade the System
Before you begin with the installation process, it is important to update and upgrade your Debian system to ensure that you have the latest security patches and software updates.
Open a terminal window and run the following commands:
sudo apt update
sudo apt upgrade
Step 2: Install Xrdp on Debian 12
Next, you will need to install Xrdp on your Debian 12 server. To do so, run the following command in the terminal:
sudo apt install xrdp
This will install the Xrdp package on your system.
Step 3: Configure Xrdp
After the installation is complete, you will need to configure Xrdp to enable remote desktop access. First, you will need to add your user account to the ‘ssl-cert’ group to allow connection through Xrdp. Run the following command to add your user account to the group:
sudo adduser
Next, you will need to enable Xrdp and start the service. Run the following commands in the terminal:
sudo systemctl enable xrdp
sudo systemctl start xrdp
Step 4: Configure Firewall
If you have a firewall enabled on your Debian system, you will need to allow traffic on the default Xrdp port. Run the following command to open the port:
sudo ufw allow 3389/tcp
Step 5: Connect to the Remote Desktop
Now that Xrdp is installed and configured on your Debian 12 server, you can connect to the remote desktop using a remote desktop client. You can use the Remote Desktop Connection software on Windows or any other RDP client on macOS or Linux.
Enter the IP address or hostname of your Debian server in the remote desktop client, along with your username and password. Click ‘Connect’ and you should be able to access your Debian desktop remotely.
Conclusion
Setting up remote desktop access with Xrdp on Debian 12 is a simple process that allows you to access your Linux desktop from anywhere in the world. By following the steps outlined in this guide, you can easily configure Xrdp on your Debian server and start using remote desktop functionality in just a few minutes.