{"id":2408,"date":"2015-11-11T20:26:45","date_gmt":"2015-11-11T18:26:45","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2408"},"modified":"2018-03-04T10:49:06","modified_gmt":"2018-03-04T08:49:06","slug":"ubuntu-16-04-xrdp","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/ubuntu-16-04-xrdp\/","title":{"rendered":"Ubuntu 16.04 XRDP (remote desktop)"},"content":{"rendered":"<pre>\r\n<strong>installation<\/strong>\r\nConsider <a href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-1314336.html\" target=\"_blank\">ubuntu xrdp error problem connecting 5910<\/a> solution:\r\ntightvncserver MUST be installed before xrdp!!!\r\n\r\nsudo apt-get install xubuntu-desktop\r\nsudo apt-get install tightvncserver\r\nsudo apt-get install xrdp\r\nsudo usermod -aG xrdp adr\r\n\r\n<strong>configure XRDP (option 1)<\/strong>\r\ncat ~\/.xsession\r\necho 'xfce4-session' > ~\/.xsession (when having XFCE or xubuntu desktop)\r\nor\r\necho 'mate-session' > ~\/.xsession (when having MATE desktop)\r\nor\r\necho 'startlxde' > ~\/.xsession (when having LXDE or lubuntu desktop)\r\nor use 'lxsession -s Lubuntu -e LXDE' or 'lxsession -s Lubuntu-Netbook -e LXDE' instead of 'startlxde'\r\n\r\n<strong>configure XRDP (option 2)<\/strong>\r\nIn \/etc\/xrdp\/startwm.sh replace the line \". \/etc\/X11\/Xsession\":\r\nsudo sed -i s\/\"^\\. \\\/etc\\\/X11\\\/Xsession\"\/\"#\\. \\\/etc\\\/X11\\\/Xsession\\nstartxfce4\"\/ \/etc\/xrdp\/startwm.sh\r\nor\r\nsudo sed -i s\/\"^\\. \\\/etc\\\/X11\\\/Xsession\"\/\"#\\. \\\/etc\\\/X11\\\/Xsession\\nmate-session\"\/ \/etc\/xrdp\/startwm.sh\r\nor\r\nsudo sed -i s\/\"^\\. \\\/etc\\\/X11\\\/Xsession\"\/\"#\\. \\\/etc\\\/X11\\\/Xsession\\nstartlxde\"\/ \/etc\/xrdp\/startwm.sh\r\nor use 'lxsession -s Lubuntu -e LXDE' or 'lxsession -s Lubuntu-Netbook -e LXDE' instead of 'startlxde'\r\n\r\n<strong>configure XRDP for PATH and .profile problem<\/strong>\r\nChange in \/etc\/xrdp\/startwm.sh:\r\n#!\/bin\/sh\r\n# see http:\/\/askubuntu.com\/questions\/92333\/ubuntu-haves-a-different-path-when-access-via-xrdp-session\r\n. \/etc\/environment\r\n. ~\/.profile\r\n...\r\n\r\n<strong>start xrdp<\/strong>\r\nsudo systemctl restart xrdp\r\nSee the log file:\r\ntail -f \/var\/log\/xrdp-sesman.log\r\n\r\n<strong>login from windows<\/strong>\r\nWhen logging with windows RDC first you'll get an error message. Press ok in the error's message window then you'll be asked (using a linux-style window) for the user and password. Fill the required fields (the ones already filled in RDC) then press ok and that's it.\r\n\r\n<strong>See also<\/strong>\r\ngnome-fallback-way: <a href=\"http:\/\/c-nergy.be\/blog\/?p=3518\" target=\"_blank\">http:\/\/c-nergy.be\/blog\/?p=3518<\/a>\r\ninspired by: <a href=\"http:\/\/www.tweaking4all.com\/software\/linux-software\/use-xrdp-remote-access-ubuntu-14-04\/\" target=\"_blank\">http:\/\/www.tweaking4all.com\/software\/linux-software\/use-xrdp-remote-access-ubuntu-14-04\/<\/a>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>installation Consider ubuntu xrdp error problem connecting 5910 solution: tightvncserver MUST be installed before xrdp!!! sudo apt-get install xubuntu-desktop sudo apt-get install tightvncserver sudo apt-get install xrdp sudo usermod -aG xrdp adr configure XRDP (option 1) cat ~\/.xsession echo &#8216;xfce4-session&#8217; [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/ubuntu-16-04-xrdp\/#more-2408\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Ubuntu 16.04 XRDP (remote desktop)<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8,11,33],"tags":[78],"class_list":["post-2408","post","type-post","status-publish","format-standard","hentry","category-configuration","category-howto","category-linux","category-ubuntu","tag-xrdp"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=2408"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2408\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}