{"id":67,"date":"2016-11-12T12:14:19","date_gmt":"2016-11-12T12:14:19","guid":{"rendered":"http:\/\/www.web-workers.ch\/?p=67"},"modified":"2017-03-02T20:20:54","modified_gmt":"2017-03-02T20:20:54","slug":"how-to-install-xrdp-on-centos7","status":"publish","type":"post","link":"https:\/\/www.web-workers.ch\/index.php\/2016\/11\/12\/how-to-install-xrdp-on-centos7\/","title":{"rendered":"How to install xrdp on CentOS7"},"content":{"rendered":"<p><strong>xrdp<\/strong> is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from \u00a0rdesktop, freerdp, and remote desktop clients. This how to will help you to setup xrdp server on CentOS 7.<\/p>\n<h1>Prerequisits<\/h1>\n<p>1. This was written when xrdp is available neither on CentOS repositories nor on EPEL repository, after a lot of Google search; i found desktop repository (http:\/\/li.nux.ro\/) which was having xrdp for CentOS 7. We need to manually setup the repository on CentOS 7.<\/p>\n<p><code># yum install epel-release<\/code><\/p>\n<p>2. Create repository file<\/p>\n<p><code>#\u00a0vi \/etc\/yum.repos.d\/xrdp.repo<\/code><\/p>\n<p>Place the following content. Once added, save and close the file.<\/p>\n<blockquote><p>[xrdp]<br \/>\nname=xrdp<br \/>\nbaseurl=http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/<br \/>\nenabled=1<br \/>\ngpgcheck=0<\/p><\/blockquote>\n<h1>Installation<\/h1>\n<p><code># yum -y install xrdp tigervnc-server<\/code><\/p>\n<p>You will get the following output, make sure you are getting package from the newly created repository.<\/p>\n<p><code>---&gt; Running transaction check<\/code><code> ---&gt; Package xrdp.x86_64 0:0.6.1-2.el7.nux will be installed<\/code><code> ---&gt; Finished Dependency Resolution<\/code><code>Dependencies Resolved<\/code><code>================================================================================<\/code><code> Package Arch Version Repository Size<\/code><code> ================================================================================<\/code><code> Installing:<\/code><code> xrdp x86_64 0.6.1-2.el7.nux xrdp 271 k<\/code><code>Transaction Summary<\/code><code> ================================================================================<\/code><code> Install 1 Package<\/code><code>Total download size: 271 k<\/code><code> Installed size: 1.5 M<\/code><code> Is this ok [y\/d\/N]: y<\/code><code> Downloading packages:<\/code><code> xrdp-0.6.1-2.el7.nux.x86_64.rpm | 271 kB 00:05<\/code><code> Running transaction check<\/code><code> Running transaction test<\/code><code> Transaction test succeeded<\/code><code> Running transaction<\/code><code> Installing : xrdp-0.6.1-2.el7.nux.x86_64 1\/1<\/code><code> Verifying : xrdp-0.6.1-2.el7.nux.x86_64 1\/1<\/code><code>Installed:<\/code><code> xrdp.x86_64 0:0.6.1-2.el7.nux<\/code><\/p>\n<p>Once it is installed, lets start the xrdp service.<\/p>\n<p><code># systemctl start xrdp.service<\/code><\/p>\n<p>xrdp will listen on 3389, lets confirm this by issuing following command.<\/p>\n<p><code># netstat -antup | grep xrdp<\/code><code> tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1508\/xrdp<\/code><code> tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1507\/xrdp-sesman<\/code><\/p>\n<p>By default, services wont auto start after system reboot. Issue the following command to enable the service at system start up.<\/p>\n<p><code># systemctl enable xrdp.service<\/code><\/p>\n<p>Next is to create iptables rule to allow rdp connection from the external machines, following command will add the exception for rdp port (3389).<\/p>\n<p><code># firewall-cmd --permanent --zone=public --add-port=3389\/tcp<\/code><code> # firewall-cmd --reload<\/code><\/p>\n<p>Configure SELinux<\/p>\n<p><code># chcon --type=bin_t \/usr\/sbin\/xrdp<\/code><code> # chcon --type=bin_t \/usr\/sbin\/xrdp-sesman<\/code><\/p>\n<h1>Test<\/h1>\n<p>Now take rdp from any windows machine using Remote Desktop Connection, enter ip address of Linux server in computer field and click on connect.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"68\" data-permalink=\"https:\/\/www.web-workers.ch\/index.php\/2016\/11\/12\/how-to-install-xrdp-on-centos7\/centos-7-xrdp-mstsc1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-MSTSC1.jpg?fit=417%2C248&amp;ssl=1\" data-orig-size=\"417,248\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CentOS-7-xrdp-MSTSC[1]\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-MSTSC1.jpg?fit=417%2C248&amp;ssl=1\" class=\"alignnone size-full wp-image-68\" src=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-MSTSC1.jpg?resize=417%2C248\" alt=\"\" width=\"417\" height=\"248\" srcset=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-MSTSC1.jpg?w=417&amp;ssl=1 417w, https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-MSTSC1.jpg?resize=300%2C178&amp;ssl=1 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/p>\n<p>You would be asked to enter the user name and password, you can either use root or any user that you have it on system. Make sure you use module \u201csesman-Xvnc\u201d.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"69\" data-permalink=\"https:\/\/www.web-workers.ch\/index.php\/2016\/11\/12\/how-to-install-xrdp-on-centos7\/centos-7-xrdp-login-page1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Login-page1.jpg?fit=713%2C586&amp;ssl=1\" data-orig-size=\"713,586\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CentOS-7-xrdp-Login-page[1]\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Login-page1.jpg?fit=713%2C586&amp;ssl=1\" class=\"alignnone size-full wp-image-69\" src=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Login-page1.jpg?resize=713%2C586\" alt=\"\" width=\"713\" height=\"586\" srcset=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Login-page1.jpg?w=713&amp;ssl=1 713w, https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Login-page1.jpg?resize=300%2C247&amp;ssl=1 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<p>If you click ok, you will see the processing. In less than a half min, you will get a desktop.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"70\" data-permalink=\"https:\/\/www.web-workers.ch\/index.php\/2016\/11\/12\/how-to-install-xrdp-on-centos7\/centos-7-xrdp-desktop-1024x6731\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?fit=1024%2C673&amp;ssl=1\" data-orig-size=\"1024,673\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CentOS-7-xrdp-Desktop-1024&#215;673[1]\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?fit=1024%2C673&amp;ssl=1\" class=\"alignnone size-full wp-image-70\" src=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?resize=1024%2C673\" alt=\"\" width=\"1024\" height=\"673\" srcset=\"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?resize=1024%2C6731&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?resize=300%2C197&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/CentOS-7-xrdp-Desktop-1024x6731.jpg?resize=768%2C505&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>Hint: In case of issues related to color depth, make sure you select &#8216;High Color (16bit) in your RDP client.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>xrdp is an Open Source Remote desktop Protocol server, which allows you to RDP to your Linux server from Windows machine; it is capable of accepting connections from \u00a0rdesktop, freerdp, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[63,61,34,108,46,69,43,75,59,52,80,53,44,29,62,42,28,81,103],"class_list":["post-67","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-ad","tag-address","tag-centos","tag-cmd","tag-file","tag-firewall","tag-http","tag-ie","tag-lock","tag-log","tag-rdp","tag-remote-desktop","tag-root","tag-server","tag-tcp","tag-url","tag-windows","tag-xrdp","tag-yum"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2017\/03\/xrdp31.png?fit=1286%2C794&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sxjX-15","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":3,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions\/98"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media\/105"}],"wp:attachment":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}