{"id":2274,"date":"2018-07-01T23:08:46","date_gmt":"2018-07-02T03:08:46","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=2274"},"modified":"2024-03-28T07:57:37","modified_gmt":"2024-03-28T11:57:37","slug":"install-xrdp-on-centos-7-rhel-7","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2018\/07\/01\/install-xrdp-on-centos-7-rhel-7\/","title":{"rendered":"Install xrdp on CentOS 7 \/ RHEL 7"},"content":{"rendered":"<h2>Prerequisites<\/h2>\n<p>1. First, <strong>install Gnome GUI on CentOS 7 \/ RHEL 7<\/strong><\/p>\n<p>2. xrdp is available in EPEL repository, <strong>Install and configure EPEL repository<\/strong><\/p>\n<pre>rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/pre>\n<h2>Install xrdp on CentOS 7<strong><br \/>\n<\/strong><\/h2>\n<p>Use <strong>YUM command<\/strong> to install xrdp package on CentOS 7 \/ RHEL 7<\/p>\n<pre>yum -y install xrdp tigervnc-server<\/pre>\n<p>Once xrdp is installed, start the xrdp service using the following command<\/p>\n<pre>systemctl start xrdp<\/pre>\n<p>xrdp should now be listening on 3389. Confirm this by using <code>netstat<\/code> command<\/p>\n<pre>netstat -antup | grep xrdp<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre>tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN      1508\/xrdp\ntcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      1507\/xrdp-sesman<\/pre>\n<p>By default, xrdp service won\u2019t start automatically after a system reboot. Run the following command in the terminal to enable the service at system startup<\/p>\n<pre>systemctl enable xrdp<\/pre>\n<h2>Firewall<\/h2>\n<p>Configure the firewall to allow RDP connection from external machines. The following command will add the exception for RDP port (3389)<\/p>\n<pre>firewall-cmd --permanent --add-port=3389\/tcp\nfirewall-cmd --reload<\/pre>\n<h2>SELinux<\/h2>\n<p>Configure SELinux<\/p>\n<pre>chcon --type=bin_t \/usr\/sbin\/xrdp\nchcon --type=bin_t \/usr\/sbin\/xrdp-sesman<\/pre>\n<h2>Test xrdp Remote Connectivity<strong><br \/>\n<\/strong><\/h2>\n<p>Now take RDP from any windows machine using Remote Desktop Connection. Enter the ip address of Linux server in the computer field and then click on connect<\/p>\n<p>You may need to ignore the warning of RDP certificate name mismatch<\/p>\n<p>You would be asked to enter the username and password. You can either use root or any user that you have it on the system. Make sure you use module \u201c<code>Xvnc<\/code>\u201c<\/p>\n<p>If you click ok, you will see the processing. In less than a half minute, you will get a desktop<\/p>\n<p><em><strong>Enjoy!<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites 1. First, install Gnome GUI on CentOS 7 \/ RHEL 7 2. xrdp is available in EPEL repository, Install and configure EPEL repository rpm -Uvh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm Install xrdp on CentOS 7 Use YUM command to install xrdp package on CentOS 7 \/ RHEL 7 yum -y install xrdp tigervnc-server Once xrdp is installed, start &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2018\/07\/01\/install-xrdp-on-centos-7-rhel-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install xrdp on CentOS 7 \/ RHEL 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2915,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Install xrdp on CentOS 7 \/ RHEL 7 - HP Server","description":"Prerequisites 1. First, install Gnome GUI on CentOS 7 \/ RHEL 7 2. xrdp is available in EPEL repository, Install and configure EPEL repository rpm -Uvh https:\/\/d"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2274","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=2274"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2274\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/2915"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=2274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=2274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=2274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}