{"id":1843,"date":"2021-04-26T10:37:49","date_gmt":"2021-04-26T17:37:49","guid":{"rendered":"https:\/\/jim-zimmerman.com\/?p=1843"},"modified":"2021-04-26T10:37:49","modified_gmt":"2021-04-26T17:37:49","slug":"debian-10-rdp","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1843","title":{"rendered":"Debian 10 &#8211; RDP"},"content":{"rendered":"<p>OS: Debian 10<br \/>\nDesktop Environment: XFCE<\/p>\n<p>Install RDP on a system running a desktop environment is really pretty simple with one caveat.  It seems that you cannot steal a session from the console by logging with that same username.  So, if you know you are going to need the desktop environment, make sure you log off the console, if logged into the desktop environment, before attempting to login remotely.  If you do forget, you make only get part of the environment, but have no way really do anything until you logoff from the console session.<\/p>\n<p>Install RDP:<\/p>\n<blockquote><p># apt install xrdp xterm<\/p><\/blockquote>\n<p>Enable xrdp and xrdp-sesman:<\/p>\n<blockquote><p># systemctl enable xrdp<br \/>\n# systemctl enable xrdp-sesman<\/p><\/blockquote>\n<p>Start both services:<\/p>\n<blockquote><p># systemctl start xrdp<br \/>\n# systemctl start xrdp-sesman<\/p><\/blockquote>\n<p>If you do not have a desktop environment setup:<\/p>\n<blockquote><p># apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils<\/p><\/blockquote>\n<p>Verify that xrdp is running:<\/p>\n<blockquote><p># systemctl status xrdp<br \/>\n\u00e2\u2014\u008f xrdp.service &#8211; xrdp daemon<br \/>\n   Loaded: loaded (\/lib\/systemd\/system\/xrdp.service; enabled; vendor preset: enabled)<br \/>\n   Active: active (running) since Sun 2021-03-28 19:49:01 PDT; 4 weeks 0 days ago<br \/>\n     Docs: man:xrdp(8)<br \/>\n           man:xrdp.ini(5)<br \/>\n Main PID: 724 (xrdp)<br \/>\n    Tasks: 2 (limit: 4915)<br \/>\n   Memory: 22.2M<br \/>\n   CGroup: \/system.slice\/xrdp.service<br \/>\n           \u00e2\u201d\u0153\u00e2\u201d\u20ac  724 \/usr\/sbin\/xrdp<br \/>\n           \u00e2\u201d\u201d\u00e2\u201d\u20ac19572 \/usr\/sbin\/xrdp<\/p>\n<p>Apr 26 10:22:30 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[INFO ] xrdp_wm_log_msg: sesman connect ok<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait&#8230;<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] return value from xrdp_mm_connect 0<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[INFO ] xrdp_wm_log_msg: login successful for display 10<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] xrdp_wm_log_msg: started connecting<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[INFO ] lib_mod_log_peer: xrdp_pid=19572 connected to X11rdp_pid=19575 X11rdp_uid=1000 X11rdp_gid=1000 client_i<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] xrdp_wm_log_msg: connected ok<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful<br \/>\nApr 26 10:22:31 lm xrdp[19572]: (19572)(140553222580032)[DEBUG] Closed socket 18 (AF_INET6 ::1 port 59468)<\/p><\/blockquote>\n<p>Add xrdp to ssl-cert group:<\/p>\n<blockquote><p># usermod -a -G xrdp ssl-cert<\/p><\/blockquote>\n<p>Reboot:<\/p>\n<blockquote><p># shutdown -r now<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>OS: Debian 10 Desktop Environment: XFCE Install RDP on a system running a desktop environment is really pretty simple with one caveat. It seems that you cannot steal a session from the console by logging with that same username. So, if you know you are going to need the desktop environment, make sure you log [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[500,326],"class_list":["post-1843","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-debian","tag-rdp"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1843"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1843\/revisions"}],"predecessor-version":[{"id":1844,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1843\/revisions\/1844"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}