If we want to connect it from Windows platform to XRDP, the XRDP have to add Xvnc or X11rdp package so that it can display a Windows desktop to Windows user by Microsoft remote desktop client.
How to build it? The following process will descript it roughly.
At first, we have to install some package as follows for compiling the XRDP package later
Install VNC Server packageIf we don’t have a vncserver package installed on this host, we have to install it by using the yum command
Install GNOME X Window System
For adding the GNOME Desktop environment to the CentOS Minimal platform, we have to use the yum groupinstall “X Window System” “Desktop” “Fonts” command (# 2)
Assign VNC Permission
In Linux environment, we will choose one normal account as davidwa and supper account as root for delegating the individual VNC permission.
For assigning VNC User privilege, we have to switch the current logon session to another user as davidwa account. Once the user has already existed (# 3), we will set the password used to access VNC server by using the vncpasswd command.
Configure & Start VNC ServerIf the single user will log on this VNC Server remotely, we will make the following change at the end of the /etc/sysconfig/vncservers file.
Install XRDP Server
To download and extract the newest xrdp-master.zip from https://github.com/FreeRDP/xrdp
If we download it by git method, we will go to the xrdp subfolder next to run the bootstrap command (# 5)
Configure & Start XRDP Server
To create two groups as ts-users and ts-admins for assigning the normal permission to the specific account.
To confirm Xvnc listening port 5901 by using the netstat -tunlp | grep Xvnc command
Change firewall Rule
To edit the iptables rule for adding the port 3389 to the INPUT list by using the iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3389 -j ACCEPT command
Test Xrdp from Windows platform
Before using Remote Desktop Connection from Windows platform, please confirm whether the remote desktop has already been enabled in the CentOS platform.
If no, open a terminal next to type the following command
Reference:
(# 1). If no exit this package, it will fail to do make process for XRDP later.