How install xrdp on CentOS 7 / RHEL 7
How to install xrdp on CentOS 7 / RHEL 7
1. First Install Gnome on CentOS 7
2. Install and configure EPEL repository.
[root@Centos7 system]# yum install epel-release
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
updates/7/x86_64/primary_db | 2.7 MB 00:00:07
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
epel-release noarch 7-9 extras 14 k
Transaction Summary
==========================================================================================================Install 1 Package
Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-9.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1
Installed:
epel-release.noarch 0:7-9
Complete!
[root@Centos7 system]#
4.Issue the following command to install xrdp
[root@Centos7 system]# yum -y install xrdp tigervnc-server
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink | 6.2 kB 00:00:00
epel | 4.3 kB 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 840 kB 00:00:01
epel/x86_64/primary_db ] 1.7 B/s | 1.8 MB 669:43:26 ETA
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: epel.mirror.net.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.8.0-1.el7 will be installed
---> Package xrdp.x86_64 1:0.9.3-2.el7 will be installed
--> Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.3-2.el7.x86_64
--> Running transaction check
---> Package xorgxrdp.x86_64 0:0.2.4-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
tigervnc-server x86_64 1.8.0-1.el7 base 213 k
xrdp x86_64 1:0.9.3-2.el7 epel 411 k
Installing for dependencies:
xorgxrdp x86_64 0.2.4-3.el7 epel 61 k
Transaction Summary
==========================================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 684 k
Installed size: 2.7 M
Downloading packages:
(1/3): tigervnc-server-1.8.0-1.el7.x86_64.rpm | 213 kB 00:00:00
----------------------------------------------------------------------------------------------------------
Total 574 kB/s | 684 kB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : xorgxrdp-0.2.4-3.el7.x86_64 1/3
Installing : 1:xrdp-0.9.3-2.el7.x86_64 2/3
Installing : tigervnc-server-1.8.0-1.el7.x86_64 3/3
Verifying : tigervnc-server-1.8.0-1.el7.x86_64 1/3
Verifying : xorgxrdp-0.2.4-3.el7.x86_64 2/3
Verifying : 1:xrdp-0.9.3-2.el7.x86_64 3/3
Installed:
tigervnc-server.x86_64 0:1.8.0-1.el7 xrdp.x86_64 1:0.9.3-2.el7
Dependency Installed:
xorgxrdp.x86_64 0:0.2.4-3.el7
Complete!
5. Once xrdp is installed, start and enable the xrdp service.
[root@Centos7 system]# systemctl start xrdp
[root@Centos7 system]# systemctl enable xrdp.service
Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
6. xrdp will listen on 3389, you can confirm this by issuing following command.
[root@Centos7 system]# netstat -antup | grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 17408/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 17409/xrdp
[root@Centos7 system]#
7. Disale firewall or Create iptables rule to allow RDP
[root@Centos7 system]firewall-cmd --permanent --zone=public --add-port=3389/tcp
[root@Centos7 system]firewall-cmd --reload
1. First Install Gnome on CentOS 7
2. Install and configure EPEL repository.
[root@Centos7 system]# yum install epel-release
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
updates/7/x86_64/primary_db | 2.7 MB 00:00:07
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
epel-release noarch 7-9 extras 14 k
Transaction Summary
==========================================================================================================Install 1 Package
Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-9.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1
Installed:
epel-release.noarch 0:7-9
Complete!
[root@Centos7 system]#
4.Issue the following command to install xrdp
[root@Centos7 system]# yum -y install xrdp tigervnc-server
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink | 6.2 kB 00:00:00
epel | 4.3 kB 00:00:00
(1/3): epel/x86_64/group_gz | 170 kB 00:00:00
(2/3): epel/x86_64/updateinfo | 840 kB 00:00:01
epel/x86_64/primary_db ] 1.7 B/s | 1.8 MB 669:43:26 ETA
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: epel.mirror.net.in
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.8.0-1.el7 will be installed
---> Package xrdp.x86_64 1:0.9.3-2.el7 will be installed
--> Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.3-2.el7.x86_64
--> Running transaction check
---> Package xorgxrdp.x86_64 0:0.2.4-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
tigervnc-server x86_64 1.8.0-1.el7 base 213 k
xrdp x86_64 1:0.9.3-2.el7 epel 411 k
Installing for dependencies:
xorgxrdp x86_64 0.2.4-3.el7 epel 61 k
Transaction Summary
==========================================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 684 k
Installed size: 2.7 M
Downloading packages:
(1/3): tigervnc-server-1.8.0-1.el7.x86_64.rpm | 213 kB 00:00:00
----------------------------------------------------------------------------------------------------------
Total 574 kB/s | 684 kB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : xorgxrdp-0.2.4-3.el7.x86_64 1/3
Installing : 1:xrdp-0.9.3-2.el7.x86_64 2/3
Installing : tigervnc-server-1.8.0-1.el7.x86_64 3/3
Verifying : tigervnc-server-1.8.0-1.el7.x86_64 1/3
Verifying : xorgxrdp-0.2.4-3.el7.x86_64 2/3
Verifying : 1:xrdp-0.9.3-2.el7.x86_64 3/3
Installed:
tigervnc-server.x86_64 0:1.8.0-1.el7 xrdp.x86_64 1:0.9.3-2.el7
Dependency Installed:
xorgxrdp.x86_64 0:0.2.4-3.el7
Complete!
5. Once xrdp is installed, start and enable the xrdp service.
[root@Centos7 system]# systemctl start xrdp
[root@Centos7 system]# systemctl enable xrdp.service
Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
6. xrdp will listen on 3389, you can confirm this by issuing following command.
[root@Centos7 system]# netstat -antup | grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 17408/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 17409/xrdp
[root@Centos7 system]#
7. Disale firewall or Create iptables rule to allow RDP
[root@Centos7 system]firewall-cmd --permanent --zone=public --add-port=3389/tcp
[root@Centos7 system]firewall-cmd --reload
Comments