Install XRDP on CentOS for Remote Desktop Access

Source: Internet
Author: User
Tags remote desktop access windows remote desktop

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.