Install XRDP on CentOS for Remote Desktop Access
After obtaining the root permission, we will install the Fedora source to facilitate the subsequent use of the yum command to install the required software package. Install the Fedora source file on the network:
Rpm-ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm installation source key: rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Note: When you see this article, the link may be invalid, so don't die from a tree. (Do you know how the old sow died ?! It's stupid !) You can search epel-release- 6 rpm to find the latest source.
Yum install-y xrdp vnc-server directly to complete the installation.
After the software package is installed, We need to edit the/etc/sysconfig/vncservers file to enable the backend vnc-server to start loading normally, and edit the/etc/group file,
Authorized users can log on remotely.
Run the gedit command to edit the vncservers file and add the following two lines at the end of the file. Vim/etc/sysconfig/vncserversVNCSERVERS = "2: root" VNCSERVERARGS [1] = "-geometry 1280x720"
Obtain the root permission and use the service command to start the xrdp and vcnserver functions. Service vncserver start service xrdp start
Now, you can use windows Remote Desktop to log on to CentOS 6.5.
Iptables-a input-m state -- state NEW-m tcp-p tcp -- dport 3389-j ACCEPT
Service iptables save
After saving and restarting the firewall configuration, we need to set xrdp and vncserver to start with the boot.
chkconfig xrdp onchkconfig vncserver on