{"id":10,"date":"2018-03-30T22:43:11","date_gmt":"2018-03-31T02:43:11","guid":{"rendered":"http:\/\/www.dev-notes.com\/blog\/?p=10"},"modified":"2018-04-05T21:33:41","modified_gmt":"2018-04-06T01:33:41","slug":"installing-xrdp-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2018\/03\/30\/installing-xrdp-on-ubuntu\/","title":{"rendered":"Installing xRDP on Ubuntu"},"content":{"rendered":"<p>I installed xRDP on my Ubuntu 16.04 LTS so that I can easily connect to my Linux box from any Windows machine using the remote desktop tool that comes by default with every Windows installation.  The actually installation is very simple:<\/p>\n<pre>\r\nsudo apt-get install xrdp\r\n<\/pre>\n<p>Through another post, you will see that I have the Xfce4 desktop environment installed:<\/p>\n<p><a href=\"\/blog\/2018\/03\/30\/installing-xfce4-desktop-environment\/\">https:\/\/www.dev-notes.com\/blog\/2018\/03\/30\/installing-xfce4-desktop-environment\/<\/a><\/p>\n<p>Xfce4 plays very well with xRDP.  To launch Xfce4 when a xRDP session is conneted, add this line to your .xsession file:<\/p>\n<pre>\r\necho xfce4-session >~\/.xsession\r\n<\/pre>\n<p>And then edit your startwm.sh file using your favorite text editor (nano is used below as example); add &#8220;startxfce4&#8221; without the quotes to the end of that file.<\/p>\n<pre>\r\nsudo nano \/etc\/xrdp\/startwm.sh\r\n<\/pre>\n<p>At this point, you can either restart the machine, or run the two commands below to ensure xrdp is ready to accept connections.<\/p>\n<pre>\r\nsudo service xrdp restart\r\nsudo \/usr\/sbin\/xrdp-sesman\r\n<\/pre>\n<p>Finally, I noticed that when I am connected from a Windows machine, my tab key did not work correctly, causing me to lose the ability to autocomplete file names, among other things.  It ended up the fix is very easy.  Again, launch your favorite text editor to open up this Xfce configuration file:<\/p>\n<pre>\r\nnano ~\/.config\/xfce4\/xconf\/xfce4-keyboard-shortcuts.xml\r\n<\/pre>\n<p>Look for this line:<\/p>\n<pre>\r\n&lt;property name=\"&lt;Super&gt;Tab\" type=\"string\" value=\"switch_window_key\" \/&gt;\r\n<\/pre>\n<p>And modify it to this line below:<\/p>\n<pre>\r\n&lt;property name=\"&lt;Super&gt;Tab\" type=\"empty\" \/&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This article details how I had installed xRDP on my Ubuntu environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":5,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}