Linux Remote Desktop XRDP configuration __linux

Source: Internet
Author: User
Tags openssl windows remote desktop

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

Related Article

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.