First you need to install the gnome, not presented here
installation:
1. Prepare the environment:
First install EPEL and nux Desktoprepository rpms, note the version update (if the rpm package version does not exist, the link to copy down the front with a browser to open, for the latest version, and then replace):
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
2. Start the installation xrdp, tigervnc-server:
# yum -y install xrdp tigervnc-server
3. Make sure your xrdp successful installation, start xrdp:
# systemctl start xrdp.service
4. Check whether xrdp started successfully, xrdp listening 3389:
netstat -antup | grep xrdp
5. If it is found successful start, check / var / log / message, if it is found similar to "Failed at step EXEC spawning / usr / sbin / xrdp-sesman: Permission denied", do the following command:
chcon -t bin_t /usr/sbin/xrdp /usr/sbin/xrdp-sesman
6. Perform the following steps to make the system automatically run the next time xrdp start:
# systemctl enable xrdp.service
7. corresponding port open the firewall, the firewall can be turned off directly
# firewall-cmd --permanent --zone=public --add-port=3389/tcp # firewall-cmd --reload