How to install xrdp on centos 7?
- Step 1 : Update Server Node.
- Step 2: Enable EPEL Repository.
- Step 3: Install Desktop Environment (If it is not installed) .
- Step 4: Install xrdp on CentOS/RHEL Linux 8/7.
- Step 5: Start/Enable and check the Status of xrdp.service.
How to install xrdp on centos 7, XRDP is an Open Source software that lets you remotely access your Linux server from a Windows system. Linux, like Windows, does not have the Remote Desktop feature, but there are tools that will allow you to remotely view and work with the Linux graphical environment. In this article, we will examine one of the remote ways to Centos 7 Linux VPS Server.
Prerequisites: The GNOME graphical interface must be installed on your CentOS 7 before performing the following steps.
1: Login to the Linux server terminal.
2: Install the EPEL repository using below command:
3: After installing the EPEL repository, install the nux repository as follows:
4 : After adding these two repositories, install Xrdp and tigervnc-server as follows:
Now wait until the tools are downloaded and installed.
5: start xrdp service using the following command:
6 : Issue the following command to enable the service at system startup:
7 : Using the following commands Create iptables rule to allow RDP connection from external machines:
8 : Now enter the following commands to configure SeLinux communication and access:
Installation and setup of Xrdp on Centos 7 is completed.
Now open the Remote Desktop Connection utility from your Windows machine, then enter the IP address server of the Linux server in the computer field and click on connect.
It will ask to enter the user name and password. You can use root or any other Linux system user. Make sure you use module “sesman-xvnc”.
Our Server Management Services is here to help with all your queries, big and small. Recently, we helped one of our clients install XRDP on their CentOS 7. Let’s dive in and see how the Support Team went about with the installation.
XRDP is an open-source version of the Microsoft Remote desktop Protocol server. It enables operating systems besides Microsoft Windows to offer a fully functional remote desktop experience. The prerequisites for the installation include:
Install XRDP package on CentOS7 or RHEL 7 with the following YUM command :
As a result, you will get output similar to this:
After XRDP is installed, you can start the service with the command:
XRDP will now listen on 3389. You can verify this with the following netstat command:
This results in the following output:
We would like to point out that the XRDP will not start automatically after a reboot. Hence, run this command to enable the service during system startup:
The next step is to configure the firewall in order to permit RDP connections from external machines. Run this command to add the exception for the RDP port:
Run the following commands to configure SELinux:
Next, let’s check the remote connectivity. First, take RDP on any Windows machine via Remote Desktop Connection. Then enter the Linux server’s IP address in the computer field and click connect.
Ignore the RDP certificate name mismatch warning.
Then enter the username and password. You can opt for the root or any user available on the system. Ensure you use the module Xvnc.
Once you click ok, you will obtain the desktop within thirty seconds.
[Need assistance with Server Management? We are just a click away.]
xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from rdesktop, freerdp, and remote desktop clients.
This post will help you to setup xrdp server on CentOS 7 / RHEL 7.
1. First, install Gnome GUI on CentOS 7 / RHEL 7
2. xrdp is available in EPEL repository, so Install and configure EPEL repository.
Use YUM command to install xrdp package on CentOS 7 / RHEL 7.
Output:
Once xrdp is installed, start the xrdp service using the following command.
xrdp should now be listening on 3389. You can confirm this by using netstat command.
Output:
READ: netstat command not found on CentOS 7 / RHEL 7 – Quick Fix
By default, xrdp service won’t start automatically after a system reboot. Run the following command in the terminal to enable the service at system startup.
Configure the firewall to allow RDP connection from external machines. The following command will add the exception for RDP port (3389).
Configure SELinux
Now take RDP from any windows machine using Remote Desktop Connection. Enter the ip address of Linux server in the computer field and then click on connect.
You may need to ignore the warning of RDP certificate name mismatch.
You would be asked to enter the username and password. You can either use root or any user that you have it on the system. Make sure you use module “Xvnc“.
To install xdrp on CentOS, first, you need to install the EPEL repository on your system.
After installing the repository, you can confirm that it is available by running the command below.
Next, install xrdp and tigervnc-server.
After that, enable and start the xrdp service.
Next, make sure that the xrdp service is listening on port 3389, by running the netstat command.
To allow connections over the RDP, add the rdp port to the systems’ firewalld configuration permanently.
Next, reload your firewalld configuration.
Next, configure SELinux for your CentOS system.
Next, you can test connectivity to your CentOS system via xrdp using the Remote desktop connection console.
Related Questions
- How to connect bluetooth in dzire 2021?
- How to unlock kgtel k5606?
- How to heal adoption trauma?
- How to do average of shares?
- How to join pbs book club?
- How to fix screen burn on phone?
- How to call equifax and talk to a person?
- How to write hindi patra?
- How to lateral entry in pnp?
- How to keep blood pressure normal naturally?
More Questions
- What is else in urdu meaning?
- What are characteristics of a person?
- How to convert lakh to crore?
- What is low blood sugar without diabetes?
- How to create aws rds instance?
- What are the health and fitness requirements for the police?
- Aws service charges?
- What is jpay money transfer?
- Aws service for cost optimization?
- What is srp in dentistry?