{"id":6206,"date":"2021-10-27T21:33:12","date_gmt":"2021-10-27T21:33:12","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=6206"},"modified":"2021-10-27T21:33:12","modified_gmt":"2021-10-27T21:33:12","slug":"how-to-install-xrdp-server-remote-desktop-on-debian","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2021\/10\/27\/how-to-install-xrdp-server-remote-desktop-on-debian\/","title":{"rendered":"How to Install a Desktop and Xrdp Server (Remote Desktop) on Debian 11 (No oops error)"},"content":{"rendered":"<p>This article show how to install xrdp on Debian 11. This assumes you have no desktop installed. If you have a desktop, then you can omit the install for it below.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt update\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt -y install xrdp\nReading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nThe following additional packages will be installed:\n  xorgxrdp\nSuggested packages:\n  guacamole xrdp-pulseaudio-installer\nThe following NEW packages will be installed:\n  xorgxrdp xrdp\n0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 506 kB of archives.\nAfter this operation, 3,238 kB of additional disk space will be used.\nGet:1 http:\/\/deb.debian.org\/debian bullseye\/main amd64 xrdp amd64 0.9.12-1.1 &#x5B;446                                                                                                                                                             kB]\nGet:2 http:\/\/deb.debian.org\/debian bullseye\/main amd64 xorgxrdp amd64 1:0.2.12-1                                                                                                                                                             &#x5B;59.9 kB]\nFetched 506 kB in 1s (791 kB\/s)\nSelecting previously unselected package xrdp.\n(Reading database ... 141298 files and directories currently installed.)\nPreparing to unpack ...\/xrdp_0.9.12-1.1_amd64.deb ...\nUnpacking xrdp (0.9.12-1.1) ...\nSelecting previously unselected package xorgxrdp.\nPreparing to unpack ...\/xorgxrdp_1%3a0.2.12-1_amd64.deb ...\nUnpacking xorgxrdp (1:0.2.12-1) ...\nSetting up xrdp (0.9.12-1.1) ...\n\nGenerating 2048 bit rsa key...\n\nssl_gen_key_xrdp1 ok\n\nsaving to \/etc\/xrdp\/rsakeys.ini\n\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/xrdp-sesman.service \u2192                                                                                                                                                             \/lib\/systemd\/system\/xrdp-sesman.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/xrdp.service \u2192 \/lib\/s                                                                                                                                                            ystemd\/system\/xrdp.service.\nSetting up xorgxrdp (1:0.2.12-1) ...\nProcessing triggers for man-db (2.9.4-2) ...\nProcessing triggers for libc-bin (2.31-13+deb11u3) ...\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo systemctl status xrdp\n\u25cf xrdp.service - xrdp daemon\n     Loaded: loaded (\/lib\/systemd\/system\/xrdp.service; enabled; vendor preset: enabled)\n     Active: active (running) since Sat 2022-03-26 08:28:09 CDT; 3min 35s ago\n       Docs: man:xrdp(8)\n             man:xrdp.ini(5)\n    Process: 3663 ExecStartPre=\/bin\/sh \/usr\/share\/xrdp\/socksetup (code=exited, status=0\/SUCCESS)\n    Process: 3671 ExecStart=\/usr\/sbin\/xrdp $XRDP_OPTIONS (code=exited, status=0\/SUCCESS)\n   Main PID: 3672 (xrdp)\n      Tasks: 1 (limit: 4663)\n     Memory: 768.0K\n        CPU: 17ms\n     CGroup: \/system.slice\/xrdp.service\n             \u2514\u25003672 \/usr\/sbin\/xrdp\n\nMar 26 08:28:08 testing xrdp&#x5B;3671]: (3671)(139708485990208)&#x5B;INFO ] address &#x5B;0.0.0.0] port &#x5B;3389] mode 1\nMar 26 08:28:08 testing xrdp&#x5B;3671]: (3671)(139708485990208)&#x5B;INFO ] listening to port 3389 on 0.0.0.0\nMar 26 08:28:08 testing xrdp&#x5B;3671]: (3671)(139708485990208)&#x5B;INFO ] xrdp_listen_pp done\nMar 26 08:28:08 testing xrdp&#x5B;3671]: (3671)(139708485990208)&#x5B;DEBUG] Closed socket 7 (AF_INET6 :: port 3389)\nMar 26 08:28:08 testing systemd&#x5B;1]: xrdp.service: Can't open PID file \/run\/xrdp\/xrdp.pid (yet?) after start: Operation not permitted\nMar 26 08:28:09 testing systemd&#x5B;1]: Started xrdp daemon.\nMar 26 08:28:10 testing xrdp&#x5B;3672]: (3672)(139708485990208)&#x5B;INFO ] starting xrdp with pid 3672\nMar 26 08:28:10 testing xrdp&#x5B;3672]: (3672)(139708485990208)&#x5B;INFO ] address &#x5B;0.0.0.0] port &#x5B;3389] mode 1\nMar 26 08:28:10 testing xrdp&#x5B;3672]: (3672)(139708485990208)&#x5B;INFO ] listening to port 3389 on 0.0.0.0\nMar 26 08:28:10 testing xrdp&#x5B;3672]: (3672)(139708485990208)&#x5B;INFO ] xrdp_listen_pp done\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo adduser xrdp ssl-cert\nAdding user `xrdp' to group `ssl-cert' ...\nAdding user xrdp to group ssl-cert\nDone.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo ufw allow 3389\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo systemctl restart xrdp\n<\/pre>\n<p>MAKE SURE YOU ARE LOGGED OUT OF THE SERVER TO TEST RDP. NOW RDP TO THE SERVER.<\/p>\n<p>Try to RDP to the server. For Debian 11, The XRDP package results in an error.<br \/>\n<a href=\"https:\/\/linuxandotherstuff.net\/wp-content\/uploads\/2021\/10\/Screenshot-2021-11-02-160812.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6243\" src=\"https:\/\/linuxandotherstuff.net\/wp-content\/uploads\/2021\/10\/Screenshot-2021-11-02-160812.png\" alt=\"\" width=\"593\" height=\"475\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2021\/10\/Screenshot-2021-11-02-160812.png 593w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2021\/10\/Screenshot-2021-11-02-160812-300x240.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/a><\/p>\n<p>The problem seems to happens only with Gnome Desktop. Based the the bug\/issue reported to the team behind xrdp software (see https:\/\/github.com\/neutrinolabs\/xorgxrdp\/issues\/156), the problem is only present when using the xorgxrdp package version 0.2.12. this is a known issue with version xorgxrdp-0.2.12.<br \/>\nThe proposed solution is to upgrade to a previous versions xrdp 0.9.15-1 and xorgxrdp 1:0.2.15-1.<\/p>\n<p>These versions are still compatible with libc6 on Debian Bullseye. This is important to note, because I initially tried newer versions of xorgxrdp and xrdp and one of them required a newer version of libc6.<\/p>\n<p>Until a backport is available (mailing list to ask for a backport to bullseye-backports can be found here: https:\/\/lists.debian.org\/debian-backports\/) you can download xrdp 0.9.15-1 and xorgxrdp 1:0.2.15-1 via https:\/\/snapshot.debian.org\/<br \/>\nThose package versions were still compatible with libc6 from bullseye.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# wget https:\/\/snapshot.debian.org\/archive\/debian\/20210302T032219Z\/pool\/main\/x\/xorgxrdp\/xorgxrdp_0.2.15-1_amd64.deb\n# wget https:\/\/snapshot.debian.org\/archive\/debian\/20210302T032219Z\/pool\/main\/x\/xrdp\/xrdp_0.9.15-1_amd64.deb\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# sudo apt install .\/xorgxrdp_0.2.15-1_amd64.deb\n# sudo apt install .\/xrdp_0.9.15-1_amd64.deb\n<\/pre>\n<p>Now, RDP should work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article show how to install xrdp on Debian 11. This assumes you have no desktop installed. If you have a desktop, then you can omit the install for it below. sudo apt update sudo apt -y install xrdp Reading package lists&#8230; Done Building dependency tree&#8230; Done Reading state information&#8230; Done The following additional packages &#8230; <a title=\"How to Install a Desktop and Xrdp Server (Remote Desktop) on Debian 11 (No oops error)\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2021\/10\/27\/how-to-install-xrdp-server-remote-desktop-on-debian\/\" aria-label=\"Read more about How to Install a Desktop and Xrdp Server (Remote Desktop) on Debian 11 (No oops error)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-6206","post","type-post","status-publish","format-standard","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=6206"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=6206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=6206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=6206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}