Sunday, March 11, 2018

How to Install Install xrdp on CentOS 7 / RHEL 7

xrdp is AN Open supply Remote desktop Protocol server, that permits you to RDP to your UNIX system server from Windows machine; it's capable of acceptive connections from rdesktop, freerdp, and remote desktop purchasers.

This how-to can assist you to setup xrdp server on CentOS 7 / RHEL 7.

Prerequisites

1. This post was written once xrdp is obtainable neither on CentOS repositories nor EPEL repository, when lots of Google search; I found desktop repository that was having xrdp for CentOS 7 / RHEL 7. we'd like to manually setup the repository on CentOS 7.

2. Don’t forget to put in Gnome on CentOS 7

3. Install and piece EPEL repository.

[root@server ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 4. Add nux repository.

Automatic (recommended)


[root@server ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
 Manual
Create a repository file.

[root@server ~]# vi /etc/yum.repos.d/xrdp.repo
Place the subsequent content. Once added, save and shut the file.

[xrdp]
name=xrdp
baseurl=http://li.nux.ro/download/nux/dextop/el7/x86_64/
enabled=1
gpgcheck=0
Install xrdp on CentOS 7

Use YUM command to install xrdp.

[root@server ~]# yum -y install xrdp tigervnc-server
You will get the subsequent output. make certain you're obtaining the package from the recently created repository.

--> Running transaction check
--> Package xrdp.x86_64 0:0.6.1-2.el7.nux will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package        Arch             Version                   Repository      Size
================================================================================
Installing:
xrdp           x86_64           0.6.1-2.el7.nux           xrdp           271 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 271 k
Installed size: 1.5 M
Is this ok [y/d/N]: y
Downloading packages:
xrdp-0.6.1-2.el7.nux.x86_64.rpm                            | 271 kB   00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : xrdp-0.6.1-2.el7.nux.x86_64                                  1/1
Verifying  : xrdp-0.6.1-2.el7.nux.x86_64                                  1/1

Installed:
xrdp.x86_64 0:0.6.1-2.el7.nux
 Once it's put in, lets begin the xrdp service.

[root@server ~]# wsystemctl start xrdp.service
xrdp can listen on 3389, lets ensure this by supplying following command.

[root@server ~]# wnetstat -antup | grep xrdp
By default, services wont machine begin when system boot. Issue the subsequent command to modify the service at system commence.

[root@server ~]# wsystemctl enable xrdp.service
Next is to form iptables rule to permit RDP affiliation from the external machines. the subsequent command can add the exception for RDP port (3389).

firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
Test Remote

Now take RDP from any windows machine victimisation Remote Desktop affiliation, enter the scientific discipline address of UNIX server within the laptop field and click on on connect.
xrdp

You would be asked to enter the user name and secret. you'll be able to either use root or any user that you simply have it on the system. make certain you utilize module “sesman-Xvnc”.

If you click ok, you may see the process. In but a [*fr1] min, you may get a desktop.





NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post