Accessing the remote Linux desktop using the RDP protocol
In general, if you need to log on to a remote Linux system, we will use ssh/telnet to do it, and if we need to log on to a remote Linux system desktop environment, we might use VNC.
VNC is the default RfB-based Remote Desktop program for most Linux distributions, but for ordinary users, VNC's user experience is not good, slow, and requires installation of clients.
Windows Remote Desktop based on the RDP protocol, under Linux, we can also find open source Rdpserver, this is XRDP.
Now, let me introduce the installation method of XRDP under installation CentOS.
1. First install VNC
Yum Install Tigervnc-server
Start the VNC service and set the boot up automatically
Service Vncserver Start
Chkconfig Vncserver on
2. Install XRDP, here i download the latest version of the XRDP installation package,
Website Download Address: http://jaist.dl.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz
wget http://jaist.dl.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz
Unzip and install
Tar zxvf xrdp-v0.6.1.tar.gz
CD xrdp-v0.6.1
Installing the Missing library files
Yum install autoconf automake libtool OpenSSL openssl-devel pam-devel libx11-devel libxfixes-devel
./bootstrap
./configure
Make
Make install
3. Set permissions
chmod 755/etc/xrdp/xrdp.sh
4. Start XRDP Service
/etc/xrdp/xrdp.sh start
5. See if the port is being monitored
Netstat–ntl
6. Join the boot entry
Vi/etc/rc.local
/etc/xrdp/xrdp.sh start
7. XRDP use 3389 port by default, set firewall allow 3389 Port exception
Vi/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p tcp--dport 3389-j ACCEPT
Now, we can use XRDP to remotely access the Linux desktop.
The following error encountered during installation, this is missing the library file, we are prompted to install the missing library file on the line
ROOT@CENTOS6 xrdp-v0.6.1]#./bootstrap
Which:no autoconf in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Yum install Autoconfautomake Libtool OpenSSL openssl-devel
Configure:error:please Installlibpam0g-dev or Pam-devel
Yum Install Pam-devel
Configure:error:please Install Libx11-devor Libx11-devel
Yum Install Libx11-devel
Configure:error:please install Libx11-devand Libxfixes-dev or Libxfixes-devel
Yum Install Libxfixes-devel