Introduction
Oracle Linux 9.2 is a robust and secure operating system designed for enterprise workloads. However, accessing it remotely with a graphical interface can be a challenge. Xrdp is an open-source Remote Desktop Protocol (RDP) server that allows Windows users to connect to Linux systems with ease. In this guide, we provide a step-by-step process to install and configure Xrdp on Oracle Linux 9.2 efficiently.
XRDP is a secure protocol that uses TLS encryption to protect data transmissions. It is also easy to install and configure.
Uses and Benefits of Xrdp server
Here are some of the benefits of using XRDP:
- XRDP is a free and open-source software and most secured
- It is easy to install and configure.
- It supports a wide range of remote desktop clients.
Here are some important uses of XRDP:
- Remotely accessing a Linux server from a Windows computer.
- Providing remote support to Linux users.
- Delivering applications and services to remote users.
- Managing a Linux server from a central location.
Step-by-Step Guide to Installing Xrdp on Oracle Linux 9.2
1. Verify installed version
check the installed version of OS with following command.
[oracle@ol7-19 ~]$ cat /etc/os-release
NAME=”Oracle Linux Server”
VERSION=”9.2″
ID_LIKE=”fedora”
ORACLE_BUGZILLA_PRODUCT=”Oracle Linux 9″
ORACLE_BUGZILLA_PRODUCT_VERSION=9.2
ORACLE_SUPPORT_PRODUCT=”Oracle Linux”
ORACLE_SUPPORT_PRODUCT_VERSION=9.2
2. Update the System
First, update your Oracle Linux system to ensure that you have the latest packages and security updates.
sudo dnf update -y
sudo dnf upgrade -y3. Install EPEL Repository
The Xrdp server contains the EPEL repository that must be installed and configured to get access of Xrdp on Oracle Linux 9.2. First we will check either EPEL repository enabled or not with following command
sudo dnf install epel-release -yOnce installed, refresh the package list:
sudo dnf update -y
From above result it found that EPEL repository not installed. However, if EPEL repository is not enable then you may install with below command

Once the installation completed, we will again check repository list with following command.
$ sudo dnf repolist

4- Install Xrdp on Oracle Linux 9.2
After installation of EPEL repository, we will install Xrdp server with below commands on Oracle Linux server 9.2.
sudo dnf install xrdp -y
After installation, verify the installation by checking the version:
xrdp --version5. Enable and Start Xrdp Service
Here, we found service disable. To enable the Xrdp service we will use following command.
sudo systemctl enable xrdp
sudo systemctl start xrdpCheck the status of the Xrdp service:

At this step, we will check status of Xrdp after installation. If the service is running correctly, you will see an “active (running)” status.

6. Configure Firewall Rules for XRDP
Next, we will check firewall status with following command on Oracle Linux server. if the firewall is disabled, then no need to allow any port to allow remote access. if the firewall is enabled, then need to allow port 3389/tcp for RDP access from windows operating system.
sudo firewall-cmd --permanent --add-port=3389/tcp
sudo firewall-cmd --reload
Verify the firewall rules:
sudo firewall-cmd --list-portsFrom above result, the firewall is disbaled. So, we need to start and check status for firewall with following command
If the firewall is active, allow XRDP traffic through it with following commands.
7. Install Desktop Environment (If Required)
Oracle Linux 9.2 may not have a desktop environment installed by default. You can install GNOME or XFCE as your preferred desktop environment.
Install GNOME Desktop
sudo dnf groupinstall "Server with GUI" -yInstall XFCE Desktop (Lightweight alternative)
sudo dnf install @xfce -yAfter installation, set the default target to graphical mode:
sudo systemctl set-default graphical.targetReboot the system:
sudo reboot8. Connect to Xrdp Server from Windows
- Open the Remote Desktop Connection tool in Windows.
- Enter the IP address of your Oracle Linux server.
- Click Connect and enter your username and password.
- Once authenticated, you will have access to your Oracle Linux desktop.

9. Troubleshooting Xrdp Issues
Check Xrdp Logs
If you face any issues, check the logs for errors:
sudo journalctl -u xrdp -fRestart Xrdp Service
sudo systemctl restart xrdpEnsure Xrdp is Listening on Port 3389
sudo netstat -tulpn | grep xrdpBy following these steps, you can successfully install and configure Xrdp on Oracle Linux 9.2 for remote desktop access. This setup enables seamless connectivity from Windows machines, improving accessibility and efficiency.
Cisco VPN Client Reason 442 Failed to Enable Virtual Adapter- How to Fix it
How to Download Ubuntu Server 22.04.2 LTS
Q1: What is Xrdp, and why use it on Oracle Linux 9.2?
A1: Xrdp is an open-source Remote Desktop Protocol (RDP) server that allows users to connect to Linux systems via RDP clients.
Q2: What are the prerequisites for installing Xrdp on Oracle Linux 9.2?
A2: You need a running Oracle Linux 9.2 system, sudo privileges, and an internet connection.
Q3: How do I start and enable Xrdp on boot?
A3: Use systemctl enable –now xrdp to start and enable Xrdp automatically at boot.
Q4: How do I troubleshoot Xrdp connection issues?
A4: Check firewall settings, SELinux policies, and logs using journalctl -xe and systemctl status xrdp.