Linux Tactic

Rev Up Your CentOS 8 Management with Xrdp Server

The Advantages and Set-Up for Xrdp Server on CentOS 8

Are you tired of managing your server in a command line interface? Do you miss having a graphical interface to work from?

Well, look no further! Xrdp server is here to rescue you from the command line interface! In this article, we will go over everything you need to know about setting up Xrdp on your CentOS 8 server.

Installing Desktop Environment

Gnome is the most popular desktop environment amongst CentOS users. Gnome and other desktop environments provide the graphical interface needed for Xrdp server to function.

To install Gnome on your CentOS 8 server, open terminal and run the following command:


yum -y groupinstall “GNOME Desktop”


After installation, reboot your server to initialize Gnome.

Installing Xrdp

Before installing Xrdp, make sure you have EPEL (Extra Packages for Enterprise Linux) installed on your server:


yum -y install epel-release


With EPEL installed, you can install Xrdp using your preferred package manager:


yum -y install xrdp


Configuring Xrdp

The xrdp service starts automatically after installation. However, before you can connect to your Xrdp server, there are a few configuration settings you need to adjust.

First, ensure that the xrdp.ini file is configured properly. This file is responsible for the xrdp service settings.

Open the file with the following command:


nano /etc/xrdp/xrdp.ini


Ensure that the port for Xrdp is set to 3389, and that the authentication for the server is set to required:





… [sessions]



Additionally, you need to configure the file to point to the desktop environment you installed.

Open the file with the following command:


nano /etc/xrdp/


Edit the file as follows, adding any additional desktop environment variables if needed:


if [ -r /etc/default/locale ]; then

. /etc/default/locale



exec gnome-session


Finally, check the global configuration settings:


nano /etc/xrdp/sesman.ini


Ensure that the security layer is set to ‘any’, and that the user session has the required graphic settings:







… [SessionVariables]




Configuring Firewall

By default, the Xrdp server will use port 3389. To connect to your Xrdp server, you will need to open up this port on your firewall.

This can be done using the firewall-cmd command:


firewall-cmd –permanent –zone=public –add-port=3389/tcp

firewall-cmd –reload


For added security, you can restrict access to certain IP addresses or IP ranges. Another option is to use an SSH tunnel or OpenVPN for secure remote access.

Connecting to the Xrdp Server

Once everything is configured, you can connect to your Xrdp server using an RDP client. Popular RDP clients include Microsoft Remote Desktop, Remmina, and Vinagre.

When connecting, make sure to specify the IP address or hostname of your server. You will see a login screen asking for your login credentials.

Enter the username and password of the server user account you wish to use. Upon successful login, you will have access to the server’s desktop environment.

Benefits and Use-Cases of Xrdp Server

Xrdp server provides a graphical interface to manage your CentOS 8 server, making it easier for users who may not be familiar with the command line interface. With Xrdp server installed, you can manage your system with ease and efficiency.

Remote Desktop Protocol (RDP) is an efficient way to manage your server from anywhere you have internet access. Being open source, Xrdp can save you money if you were considering purchasing a proprietary remote desktop solution.

Another use-case for Xrdp server is management of your server from your local machine. With Xrdp, you can use any Windows, MacOS, or Linux computer to manage your system, regardless of whether it is physically local to your server or remote.

In conclusion, Xrdp server is an excellent addition to any CentOS 8 server, providing a user-friendly way to manage your system. With a little bit of configuration, you can use Xrdp to remotely connect to your server, manage your resources with graphical tools, and connect to a variety of desktop environments.

In conclusion, Xrdp server is a powerful tool for managing your CentOS 8 server with a graphical interface. Installing and configuring Xrdp is a simple process that involves installing a desktop environment, Xrdp, and configuring the xrdp.ini and files.

Additionally, it’s important to configure your firewall to allow access to the Xrdp server, and to connect with an RDP client to access the login screen. Once configured, Xrdp server offers many benefits, including the ability to remotely manage your system and save costs compared to proprietary remote desktop solutions.

Xrdp is a valuable tool that can improve your management of a CentOS 8 server, providing a user-friendly interface for efficient management.

Popular Posts