Easy Steps to Install Xrdp Server (Remote Desktop) on Oracle Linux 9.2

  • Post author:
  • Post category:Linux
  • Post last modified:September 6, 2023

XRDP stands for X Window System Remote Desktop Protocol. It is a free and open-source that enables operating systems other than Microsoft Windows (such as Linux and BSD-style operating systems) to provide a fully functional RDP-compatible remote desktop experience. In this blog post we will learn how to Installing Xrdp Server on Oracle Linux.

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.

XRDP Installation Steps

Step 1:

check the installed version of OS with following command.

[oracle@ol7-19 ~]$ cat /etc/os-release
NAME=”Oracle Linux Server”

Step 2:

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 repolist

repository List

From above result it found that EPEL repository not installed. However, if EPEL repository is not enable then you may install with below command

Install epel respository

Once the installation completed, we will again check repository list with following command.

$ sudo dnf repolist

Step 3:

How to 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.

Install Xrdp on oracle linux

Step 4:

At this step, we will check status of Xrdp after installation

[oracle@ol7-19 ~]$ sudo systemctl status xrdp
[sudo] password for oracle:
○ xrdp.service – xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:xrdp(8)

Here, we found service disable. To enable the Xrdp service we will use following command.

Step 5:

After enabling Xrdp service we will start the service and check status.

[oracle@ol7-19 ~]$ sudo systemctl start xrdp
[oracle@ol7-19 ~]$ sudo systemctl status xrdp

Step 6:

Configure Firewall 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.

[oracle@ol7-19 ~]$ sudo systemctl status firewalld
[sudo] password for oracle:
○ firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)

From above result, the firewall is disbaled. So, we need to start and check status for firewall with following command

$ sudo systemctl start firewalld
$ sudo systemctl status firewalld

If the firewall is active, allow XRDP traffic through it with following commands.

$ sudo firewall-cmd –new-zone=xrdp –permanent
$ sudo firewall-cmd –zone=xrdp –add-port=3389/tcp –permanent
$ sudo firewall-cmd –reload

Step 7:

Go to Windows Machine and Open Remote Desktop connection application and Enter the IP address as shown in the below image.

Install Xrdp (remote desktop access)


If you are looking for a free and open-source way to remotely access a Linux server, XRDP is a good option. It is easy to install and configure, and it supports a wide range of remote desktop clients.

Read More Topics

Cisco VPN Client Reason 442 Failed to Enable Virtual Adapter- How to Fix it

How to Download Ubuntu Server 22.04.2 LTS

Leave a Reply