{"id":2980,"date":"2020-03-02T15:17:41","date_gmt":"2020-03-02T21:17:41","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2980"},"modified":"2020-03-02T15:17:41","modified_gmt":"2020-03-02T21:17:41","slug":"how-to-install-xrdp-on-centos-7","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2980","title":{"rendered":"How to Install XRDP on CentOS 7"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">What XRDP is and How to Install XRDP on CentOS 7<\/h5>\n\n\n\n<p>For the uninitiated, RDP stands for Remote Desktop Protocol. And just like the expanded form suggests, it&#8217;s a protocol for a machine to accept remote desktop connections from other machines. XRDP is a server for CentOS 7 that implements this protocol and allows you to use different types of software to connect with your CentOS 7 server.<\/p>\n\n\n\n<p>Before we move on, though, let us answer a natural question: why do XRDP when we have SSH sessions? A very good question, except that SSH vs. RDP is not really a debate. While SSH is based on a text-driven environment, RDP is concerned with fully graphical (GUI-based) control of your CentOS 7 machine. That means you can launch programs, send email, even play games, just as if you were sitting right in front of your machine.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installing XRDP on CentOS 7<\/strong><\/h2>\n\n\n\n<p>The first step is to install the EPEL repository so that its packages can be included into your system packages:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># wget http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm<\/p><p># rpm -ivh epel-release-7-5.noarch.rpm<\/p><\/blockquote>\n\n\n\n<p>Then you need to update the yum package manager:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># yum update<\/p><\/blockquote>\n\n\n\n<p>The next step is to actually install XRDP. You&#8217;ll also need the tigervnc-server package:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># yum -y install xrdp tigervnc-server<\/p><\/blockquote>\n\n\n\n<p>Once done, you need to start the XRDP service and set it up to auto-launch when the system starts:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># systemctl start xrdp.service<\/p><p># systemctl enable xrdp.service<\/p><\/blockquote>\n\n\n\n<p>Finally, if you&#8217;re using a firewall, you&#8217;ll need to add an exception for the port 3389, which is what XRDP uses:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p># firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=3389\/tcp<\/p><p># firewall-cmd &#8211;reload<\/p><\/blockquote>\n\n\n\n<p>And with that, you have XRDP up and running on your CentOS 7 machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What XRDP is and How to Install XRDP on CentOS 7 For the uninitiated, RDP stands for Remote Desktop Protocol. And just like the expanded form suggests, it&#8217;s a protocol for a machine to accept remote desktop connections from other machines. XRDP is a server for CentOS 7 that implements this protocol and allows you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2980","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2980"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2980\/revisions"}],"predecessor-version":[{"id":2981,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2980\/revisions\/2981"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}