{"id":255,"date":"2017-02-25T15:34:20","date_gmt":"2017-02-25T14:34:20","guid":{"rendered":"http:\/\/blog.le-vert.net\/?p=255"},"modified":"2017-02-25T15:38:00","modified_gmt":"2017-02-25T14:38:00","slug":"a-working-microsoft-rdp-remote-desktop-client","status":"publish","type":"post","link":"https:\/\/blog.le-vert.net\/?p=255","title":{"rendered":"A working Microsoft RDP (remote desktop) client"},"content":{"rendered":"<div class=\"twttr_buttons\"><div class=\"twttr_twitter\">\n\t\t\t\t\t<a href=\"http:\/\/twitter.com\/share?text=A+working+Microsoft+RDP+%28remote+desktop%29+client\" class=\"twitter-share-button\" data-via=\"\" data-hashtags=\"\"  data-size=\"default\" data-url=\"https:\/\/blog.le-vert.net\/?p=255\"  data-related=\"\" target=\"_blank\">Tweet<\/a>\n\t\t\t\t<\/div><\/div><p>Hey,<\/p>\n<p>Recent Windows Server release (like 2012) seems to require some additional feature the good old &#8220;rdesktop&#8221; tools do not handle. Here is what happens when connecting:<\/p>\n<blockquote><p>\nAutoselected keyboard map en-us<br \/>\nERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ?<br \/>\nFailed to connect, CredSSP required by server.\n<\/p><\/blockquote>\n<p>Many people around Internet suggest disabling something on the server but it means disabling some security feature. Moreover, you might need to use RDP to disable this (ZeroDivisionError) and you may not be allowed to do so. Anyway, shitty answser.<\/p>\n<p>Here is the proper one: <a href=\"https:\/\/github.com\/FreeRDP\/FreeRDP\">https:\/\/github.com\/FreeRDP\/FreeRDP<\/a><\/p>\n<p>This client just works but has the same issue as rdesktop: it&#8217;s highly stupid. For instance, look at the error message above and notice &#8220;Autoselected keyboard map en-us&#8221;.<br \/>\nSorry, what ? It&#8217;s not because I&#8217;m using en_US locale that I&#8217;m actually staying in the United States and using a regular ANSI QWERTY keyboard. In fact, I&#8217;m not, not at all.<br \/>\nAnother issue is the screen size setting which seems to be always set to 1024&#215;768 which is a pitty nowadays, everybody uses at least &#8220;FullHD&#8221; screen.<\/p>\n<p>So I made a shell wrapper script implementing dynamic screen size selection to 90% of your current display (configurable) and setting the right keymap according to your keyboard layout and variant (layout=ch, variant=fr for me, which is a french oriented QWERTZU layout used in Luxembourg and called by Windows &#8220;Swiss French&#8221;).<\/p>\n<p>It also feature a configuration file to override defaults and some handy default options to share clipboard and home disk with the remote target. All you have to do is to put saner-xfreerdp in \/usr\/local\/bin\/ and use it instead of the real binary.<\/p>\n<p>Get the script here: <a href=\"https:\/\/github.com\/eLvErDe\/saner-xfreerdp\">https:\/\/github.com\/eLvErDe\/saner-xfreerdp<\/a><\/p>\n<p>Here is an very simple usage example:<\/p>\n<blockquote><p>\nuser@host:~$ saner-xfreerdp -u username -a some-srv-01.domain.lan<br \/>\nINFO: Detected active screen on monitor DVI-0 with width=1920 and height=1200<br \/>\nINFO: Will use resized resolution of 1728&#215;1080<\/p>\n<p>INFO: Running xfreerdp +clipboard +home-drive \/u:&#8221;username&#8221; \/v:&#8221;some-srv-01.domain.lan&#8221; \/kbd:&#8221;Swiss French&#8221; \/w:1728 \/h:1080<\/p>\n<p>[xrdp logs&#8230;]<br \/>\nPassword:\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Hey, Recent Windows Server release (like 2012) seems to require some additional feature the good old &#8220;rdesktop&#8221; tools do not handle. Here is what happens when connecting: Autoselected keyboard map en-us ERROR: CredSSP: Initialize failed, do you have correct kerberos &hellip; <a href=\"https:\/\/blog.le-vert.net\/?p=255\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/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":[],"_links":{"self":[{"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/posts\/255"}],"collection":[{"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":3,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.le-vert.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}