{"id":3538,"date":"2015-01-23T09:27:39","date_gmt":"2015-01-23T09:27:39","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3538"},"modified":"2021-01-28T09:17:30","modified_gmt":"2021-01-28T09:17:30","slug":"remote-desktop-protocol-rdp-with-ubuntu-and-xrdp","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3538","title":{"rendered":"Remote Desktop Protocol (RDP) with Ubuntu and XRDP"},"content":{"rendered":"<p><a href=\"http:\/\/xrdp.org\/\">xrdp &#8211; an open-source Remote Desktop Protocol server<\/a><br \/>\n<a href=\"https:\/\/github.com\/neutrinolabs\/xrdp\">github.com\/neutrinolabs\/xrdp<\/a><br \/>\n<a href=\"https:\/\/de.wikipedia.org\/wiki\/Xrdp\">Xrdp<\/a><\/p>\n<h1>Tutorials<\/h1>\n<p><a href=\"https:\/\/community.hpcloud.com\/article\/using-windows-rdp-access-your-ubuntu-instance\">Using Windows RDP to Access your Ubuntu Instance<\/a><br \/>\n<a href=\"http:\/\/www.tweaking4all.com\/software\/linux-software\/use-xrdp-remote-access-ubuntu-14-04\/\">How to use xRDP for remote access to Ubuntu 14.04<\/a><br \/>\n<a href=\"http:\/\/c-nergy.be\/blog\/?p=5305\">Ubuntu 14.04 \u2013 How to install xrdp in Ubuntu 14.04<\/a><\/p>\n<p><a href=\"http:\/\/c-nergy.be\/blog\/?p=8316\">XRDP \u2013 Quick fix \u2013 Custom XRDP install on Ubuntu 15.04 using systemd<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install ubuntu-desktop \r\n$ sudo apt-get install xrdp\r\n$ sudo \/etc\/init.d\/xrdp start\r\n$ sudo adduser USERNAME\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ service xrdp restart\r\n==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===\r\nAuthentication is required to manage system services or units.\r\nMultiple identities can be used for authentication:\r\n 1.  Andreas Bachmann,,, (andreas)\r\n 2.  rdpuser\r\nChoose identity to authenticate as (1-2): Failed to restart xrdp.service: Connection timed out\r\n\r\n$ sudo service xrdp restart\r\nA dependency job for xrdp.service failed. See 'journalctl -xe' for details.\r\n\r\n# \/etc\/init.d\/xrdp start\r\n&#x5B;....] Starting xrdp (via systemctl): xrdp.serviceA dependency job for xrdp.service failed. See 'journalctl -xe' for details.\r\n failed!\r\n\r\n# systemctl enable xrdp-sesman.service\r\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/xrdp-sesman.service to \/lib\/systemd\/system\/xrdp-sesman.service.\r\n\r\n# systemctl enable xrdp.service\r\nSynchronizing state for xrdp.service with sysvinit using update-rc.d...\r\nExecuting \/usr\/sbin\/update-rc.d xrdp defaults\r\nExecuting \/usr\/sbin\/update-rc.d xrdp enable\r\n<\/pre>\n<pre class=\"brush: plain; title: \/lib\/systemd\/system\/xrdp.service; notranslate\" title=\"\/lib\/systemd\/system\/xrdp.service\">\r\n# cat \/lib\/systemd\/system\/xrdp.service\r\n&#x5B;Unit]\r\nDescription=xrdp daemon\r\nRequires=xrdp-sesman.service\r\nAfter=syslog.target network.target xrdp-sesman.service\r\n\r\n&#x5B;Service]\r\nType=forking\r\nPIDFile=\/var\/run\/xrdp.pid\r\nEnvironmentFile=\/etc\/sysconfig\/xrdp\r\nExecStart=\/usr\/sbin\/xrdp $XRDP_OPTIONS\r\nExecStop=\/usr\/sbin\/xrdp $XRDP_OPTIONS --kill\r\n\r\n&#x5B;Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<pre class=\"brush: plain; title: \/lib\/systemd\/system\/xrdp-sesman.service; notranslate\" title=\"\/lib\/systemd\/system\/xrdp-sesman.service\">\r\n# cat \/lib\/systemd\/system\/xrdp-sesman.service\r\n&#x5B;Unit]\r\nDescription=xrdp session manager\r\nAfter=syslog.target network.target\r\nStopWhenUnneeded=true\r\n\r\n&#x5B;Service]\r\nType=forking\r\nPIDFile=\/var\/run\/xrdp-sesman.pid\r\nEnvironmentFile=\/etc\/sysconfig\/xrdp\r\nExecStart=\/usr\/sbin\/xrdp-sesman $SESMAN_OPTIONS\r\nExecStop=\/usr\/sbin\/xrdp-sesman $SESMAN_OPTIONS --kill\r\n\r\n&#x5B;Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### Change in \/lib\/systemd\/system\/xrdp.service and \/lib\/systemd\/system\/xrdp-sesman.service:\r\n### \/etc\/sysconfig\/xrdp -&gt; \/etc\/default\/xrdp\r\n\r\n# service xrdp start\r\nWarning: xrdp.service changed on disk. Run 'systemctl daemon-reload' to reload units.\r\nA dependency job for xrdp.service failed. See 'journalctl -xe' for details.\r\n\r\n# systemctl daemon-reload\r\n\r\n# service xrdp start\r\n--&gt; Hangs?!\r\n\r\n# \/usr\/sbin\/xrdp\r\n# \/usr\/sbin\/xrdp-sesman\r\n--&gt; Works!\r\n\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# \/usr\/sbin\/xrdp\r\nrunning in daemon mode with no access to pid files, quitting\r\n\r\n# sudo mkdir \/var\/run\/xrdp\r\n# sudo chown xrdp:xrdp \/var\/run\/xrdp\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>xrdp &#8211; an open-source Remote Desktop Protocol server github.com\/neutrinolabs\/xrdp Xrdp Tutorials Using Windows RDP to Access your Ubuntu Instance How to use xRDP for remote access to Ubuntu 14.04 Ubuntu 14.04 \u2013 How to install xrdp in Ubuntu 14.04 XRDP \u2013 Quick fix \u2013 Custom XRDP install on Ubuntu 15.04 using systemd $ sudo apt-get [&hellip;]<\/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":[],"class_list":["post-3538","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3538"}],"version-history":[{"count":14,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3538\/revisions"}],"predecessor-version":[{"id":11668,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3538\/revisions\/11668"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}