{"id":1594,"date":"2026-01-01T21:54:46","date_gmt":"2026-01-01T21:54:46","guid":{"rendered":"https:\/\/b2bhostingclub.com\/blog\/?p=1594"},"modified":"2026-02-04T14:14:37","modified_gmt":"2026-02-04T14:14:37","slug":"installing-xfce-desktop-environment-and-xrdp-service-on-remote-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/b2bhostingclub.com\/blog\/installing-xfce-desktop-environment-and-xrdp-service-on-remote-ubuntu-22-04\/","title":{"rendered":"Installing Xfce Desktop Environment and XRDP service on Remote Ubuntu 22.04"},"content":{"rendered":"<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-left d-text-left d-title-inner\">\n<h2 id=\"prerequisites\" class=\"col col-md-10 d-h2 d-color-black  core-title\">Prerequisites<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col col-md-12  d-color-black d-fs-normal d-fw-500 core-title\"><b>You already log in to your remote Linux server<\/b><\/div>\n<div class=\"col col-md-12 d-color-black  d-fs-normal d-fw-500\">Once your server is deployed, the login credentials are usually sent to your registered email. You can also get server login information, including username, password, and port in the B2BHOSTINGCLUB control panel.<\/div>\n<div class=\"col\"><\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Please refer to the guide\u00a0<a class=\"d-color-primary\" title=\"Database Mart blog - How to connect to a Linux server remotely\" href=\"https:\/\/www.b2bhostingclub.com\/blog\/connect-to-linux-servers-remotely\" target=\"_blank\" rel=\"noopener\">How to Connect to a Linux Server Remotely<\/a>\u00a0to log in to your Remote Linux Server. Next, input your login password as prompted.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/7d88f5c0b070401a9a007b2b58823a77\/log-into-linux.png\" alt=\"Log in to Linux servers\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-left d-text-left d-title-inner\">\n<h2 id=\"install-xfce-desktop-environment-and-xrdp-service-on-remote-ubuntu-2204-servers\" class=\"col col-md-10 d-h2 d-color-black  core-title\">Install Xfce Desktop Environment and XRDP Service on Remote Ubuntu 22.04 Servers<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Install Xfce on Ubuntu Servers<\/h3>\n<div class=\"col col-md-12 d-color-black  d-fs-normal d-fw-500 d-fs-normal\">In this example, we will use the Ubuntu 22.04 operating system.<\/div>\n<div class=\"col\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">As the following several operations require the root permission, we will switch to the root user first using the command below.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">sudo -i<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/726f34e8cb574d0d8335c7d62d2722af\/sudo-i.png\" alt=\"Switch to the root user by running command sudo -i\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">After that, issue the commands below to update your list of packages, followed by installing Xfce and the xfce4-goodies pacakge, which includes additional software and artwork that are related to the Xfce desktop.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">apt update\r\napt install xfce4 xfce4-goodies<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/13c302eb468e49938dcaff89f9112ef8\/apt-update.png\" alt=\"Run apt update\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/460efab9b5ed4e699833f58b9a62a317\/install-xfce4.png\" alt=\"Install Xfce\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Before the installation, you are often prompted to confirm the disk space this operation will use. Input &#8220;y&#8221; to continue the installation.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/51a883e9d8034863b4d0b7d88944c57d\/confirm_xfce-installation.png\" alt=\"Confirm Xfce installation\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">During the installation, you will be prompted to choose a default display manager &#8211; gdm3 or Lightdm &#8211; for Xfce. Choose either one and press enter to continue.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/99072c4fd9ee48908e70b36cb0591036\/ok.png\" alt=\"Introduction to display manager\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/bb51c4bc52c64899b081c418c2b29d1f\/choose_either_display_manager.png\" alt=\"Choose a default display manager\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Install XRDP on Ubuntu<\/h3>\n<div class=\"col col-md-12 d-color-black  d-fs-normal d-fw-500 d-fs-normal\">XRDP is a protocol that allows you to connect to your Ubuntu system remotely using the Remote Desktop Protocol (RDP).<\/div>\n<div class=\"col\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Issue the commands below to install xrdp service.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">apt install xrdp -y<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">After installing xrdp, verify the status of xrdp using the following command.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">systemctl status xrdp<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/50b70b67110f4548a3ac1523d45f8095\/apt-install-xrdp.png\" alt=\"Install XRDP\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/9121e1c4ac794deabbe58a9423e172c0\/systemctl-status-xrdp.png\" alt=\"Confirm XRDP status\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Configure XRDP<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Now, we will configure that xfce4-session is used as a session manager upon graphical login request. If you don\u2019t write this information into the .xsession file, no session manager is chosen, and the RDP session will fail to connect to the graphical display. Use the echo command and then restart xrdp service.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">echo \"xfce4-session\" | tee .xsession\r\nsystemctl restart xrdp<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/127e2a7775ba47e2acdc1a4dec843b00\/echo-restart.png\" alt=\"restart XRDP service\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Test the RDP Connection<\/h3>\n<div class=\"col col-md-12 d-color-black  d-fs-normal d-fw-500 d-fs-normal\">Now, we can test if you can connect to the remote Ubuntu server using RDP.<\/div>\n<div class=\"col\">\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Open RDP service on your local machine. Then, input your Linux Ubuntu server IP in the Computer field and click Connect.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/907289cd856a4b88841890350e3dd036\/Open-RDC.png\" alt=\"Open RDC\" width=\"400\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Then, you can see the RDP login interface. Enter your Linux server login username and password and click OK.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/6546798b96794688857fdd28f01aff33\/login-password.png\" alt=\"Enter login username and password\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">With the authentication passed, you should be able to access your Ubuntu Desktop environment.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1  justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/3a701c6cf9c04243bda064bbdba32e9a\/Xfce-ubuntu22-desktop.png\" alt=\"Xfce desktop environment\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites You already log in to your remote Linux server Once your server is deployed, the login credentials are usually sent to your registered email. You can also get server login information, including username, password, and port in the B2BHOSTINGCLUB control panel. Please refer to the guide\u00a0How to Connect to a Linux Server Remotely\u00a0to log [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-hosting"],"_links":{"self":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/comments?post=1594"}],"version-history":[{"count":1,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1594\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1594\/revisions\/1596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media\/1595"}],"wp:attachment":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media?parent=1594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/categories?post=1594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/tags?post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}