{"id":180,"date":"2021-08-29T11:11:54","date_gmt":"2021-08-29T15:11:54","guid":{"rendered":"http:\/\/notebook.chaopricha.com\/?p=180"},"modified":"2021-08-29T11:20:26","modified_gmt":"2021-08-29T15:20:26","slug":"setting-up-remote-desktop-rdp-on-rocky-linux-8-4","status":"publish","type":"post","link":"https:\/\/notebook.chaopricha.com\/?p=180","title":{"rendered":"Setting up Remote Desktop (RDP) on Rocky Linux 8.4"},"content":{"rendered":"\n<p>As of this writing, I&#8217;m using 64-bit Rocky Linux 8.4 that came with GNOME by default.<\/p>\n\n\n\n<p>Since this version already has the GUI that is GNOME, this will mainly work for the settings I have.  I know there are issues if you use other GUI packages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setup EPEL Repository<\/h2>\n\n\n\n<p>First, become the root user since the setup requires superuser privileges.<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>su -<\/code><\/p>\n\n\n\n<p>Run update to make sure your install is up-to-date<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>yum update<\/code><\/p>\n\n\n\n<p>Run the following command to install EPEL Repository <\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>yum install epel-release<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install and Enable XRDP<\/h2>\n\n\n\n<p>Now you can enable EPEL Repository and install Xrdp server using the following command<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>dnf --enablerep=epel -y install xrdp<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-26.png\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"643\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-26.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-26.png 735w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-26-300x262.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-26-343x300.png 343w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/a><figcaption>After the installation is done, enable xrdp using the following command<\/figcaption><\/figure>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>systemctl enable xrdp --now<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Firewall Configuration<\/h2>\n\n\n\n<p>Also, let xrpd go through the firewall.  Assign the correct port if you are not using the default 3389 for TCP.<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>firewall-cmd --add-port=3389\/tcp<\/code><\/p>\n\n\n\n<p>Make the rule permanent using the following command<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0266a0\"><code>firewall-cmd --runtime-to-permanent<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connect Using Windows RDP<\/h2>\n\n\n\n<p>Now you should be able to connect to Rocky Linux using Windows RDP.  Make sure that the user you are using for login is not already logged in on the server or the RDP session won&#8217;t connect.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"970\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27-1024x970.png\" alt=\"\" class=\"wp-image-225\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27-1024x970.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27-300x284.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27-768x727.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27-317x300.png 317w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-27.png 1168w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Enjoy!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-1024x428.png\" alt=\"\" class=\"wp-image-229\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-1024x428.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-300x125.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-768x321.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-1536x642.png 1536w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28-500x209.png 500w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-28.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of this writing, I&#8217;m using 64-bit Rocky Linux 8.4 that came with GNOME by default. Since this version already has the GUI that is GNOME, this will mainly work for the settings I have. I know there are issues &hellip; <a href=\"https:\/\/notebook.chaopricha.com\/?p=180\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180"}],"version-history":[{"count":4,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/180\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}