RHEL/CentOS 7 安裝 XRDP, 讓 Windows 用遠端桌面連線登入
這篇文章主要目的是在介紹如何在RHEL/CentOS 7 系統上安裝XRDP, 讓 Windows 可以透過遠端桌面(Remote Desktop)
連線登入。本Linux XRDP安裝指南 僅適用於RHEL/CentOS 7.x系列。
- RHEL/CentOS 7 安裝 XRDP, 讓 Windows 用遠端桌面連線登入
- xrdpを用いてWindows から RHEL/CentOS 7シーリスにリモートデスクトップ接続する
- Install xrdp on RHEL/CentOS 7 : The xrdp is an Open-Source Remote Desktop Protocol server, which allows you to RDP to your Linux server from Windows machine, it can accept connections from desktop, freerdp, and remote desktop clients. This SOP will help you to setup xrdp server on RHEL/CentOS 7.
- Prerequisites : Download xrdp RPM https://pkgs.org/download/xrdp or https://rpmfind.net/linux/rpm2html/search.php?query=xrdp for RHEL/CentOS 7.
Procedure:
Step 1. Install EPEL and nux Desktop repository rpms by automatic. (recommended)
# rpm -Uvh https://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

Step 2. The following command to install xrdp, and you will get the following output, make sure you are getting package from the newly created repository.
# yum -y install xrdp tigervnc-server

Step 3. Once it is installed, lets start the xrdp service.
# systemctl start xrdp.service

Step 4. The xrdp will listen on 3389, lets confirm this by issuing following command.
# netstat -antup | grep xrdp

Step 5. By default, services wont auto start after system reboot, issue the following command to enable the service at system start up.
# systemctl enable xrdp.service

Step 6. Next is to create iptables rule to allow rdp connection from the external machines, following command will add the exception for xrdp port (3389).
# firewall-cmd --permanent --zone=public --add-port=3389/tcp
# firewall-cmd --reload

Step 7. Now take rdp from any windows machine using Remote Desktop Connection, enter ip address of Linux server in computer field and click on connect.


Step 8. You would be asked to enter the user name and password, you can either use root or any user that you have it on system. Make sure you use module "sesman-Xvnc" , then click ok, you will see the processing.


Step 9. In less than a half min, you will get a RHEL desktop.
