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

XRDP is a secure protocol that uses TLS encryption to protect data transmissions. It is also easy to install and configure.

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.

[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

sudo dnf update -y
sudo dnf upgrade -y

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 -y

Once installed, refresh the package list:

sudo dnf update -y
repository List
Install epel respository

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

$ sudo dnf repolist

After installation of EPEL repository, we will install Xrdp server with below commands on Oracle Linux server 9.2.

sudo dnf install xrdp -y
Install Xrdp on oracle linux
xrdp --version

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

sudo systemctl enable xrdp
sudo systemctl start 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-ports

From 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.

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" -y

Install XFCE Desktop (Lightweight alternative)

sudo dnf install @xfce -y

After installation, set the default target to graphical mode:

sudo systemctl set-default graphical.target

Reboot the system:

sudo reboot
  • 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.
Install Xrdp (remote desktop access)

Check Xrdp Logs

If you face any issues, check the logs for errors:

sudo journalctl -u xrdp -f

Restart Xrdp Service

sudo systemctl restart xrdp

Ensure Xrdp is Listening on Port 3389

sudo netstat -tulpn | grep xrdp

Conclusion

Read Also

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

How to Download Ubuntu Server 22.04.2 LTS

FAQs

Q1: What is Xrdp, and why use it on Oracle Linux 9.2?

Q2: What are the prerequisites for installing Xrdp on Oracle Linux 9.2?

Q3: How do I start and enable Xrdp on boot?

Q4: How do I troubleshoot Xrdp connection issues?

Previous Post
Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *