{"componentChunkName":"component---src-templates-post-template-js","path":"/linux-trouble-ubuntu-rdp-en","result":{"data":{"markdownRemark":{"id":"66956cd3-cdcc-55df-b138-fde2be7a683e","html":"<blockquote>\n<p>This page has been machine-translated from the <a href=\"/linux-trouble-ubuntu-rdp\">original page</a>.</p>\n</blockquote>\n<p>This article summarizes the issues that occurred when making XRDP connections to Ubuntu machines.</p>\n<!-- omit in toc -->\n<h2 id=\"table-of-contents\" style=\"position:relative;\"><a href=\"#table-of-contents\" aria-label=\"table of contents permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Table of Contents</h2>\n<ul>\n<li><a href=\"#setting-to-display-sidebar-when-connecting-to-ubuntu-via-xrdp\">Setting to Display Sidebar When Connecting to Ubuntu via XRDP</a></li>\n<li><a href=\"#dealing-with-the-issue-of-japanese-keyboard-settings-not-working-when-connecting-to-ubuntu-via-xrdp\">Dealing with the Issue of Japanese Keyboard Settings Not Working When Connecting to Ubuntu via XRDP</a></li>\n<li><a href=\"#issue-of-slow-scroll-operations-when-browsing-with-browser\">Issue of Slow Scroll Operations When Browsing with Browser</a></li>\n<li><a href=\"#summary\">Summary</a></li>\n</ul>\n<h2 id=\"setting-to-display-sidebar-when-connecting-to-ubuntu-via-xrdp\" style=\"position:relative;\"><a href=\"#setting-to-display-sidebar-when-connecting-to-ubuntu-via-xrdp\" aria-label=\"setting to display sidebar when connecting to ubuntu via xrdp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Setting to Display Sidebar When Connecting to Ubuntu via XRDP</h2>\n<p>When setting up a Linux machine such as Ubuntu, XRDP is used to access it via RDP from the host.</p>\n<p>In this case, if you just use XRDP, the following commands alone would be fine, but in Ubuntu’s case, the sidebar that serves as the application launcher will no longer be displayed.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">sudo</span> <span class=\"token function\">apt</span> <span class=\"token function\">install</span> -y xrdp\n<span class=\"token function\">sudo</span> systemctl <span class=\"token builtin class-name\">enable</span> xrdp</code></pre></div>\n<p>In that case, you can display the sidebar by creating <code class=\"language-text\">.xsessionrc</code> in your home directory and writing the necessary settings.</p>\n<p>Specifically, just copy and paste the following commands.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Write to ~/.xsessionrc</span>\n<span class=\"token builtin class-name\">export</span> <span class=\"token assign-left variable\">GNOME_SHELL_SESSION_MODE</span><span class=\"token operator\">=</span>ubuntu\n<span class=\"token builtin class-name\">export</span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">XDG_CURRENT_DESKTOP</span></span><span class=\"token operator\">=</span>ubuntu:GNOME\n<span class=\"token builtin class-name\">export</span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">XDG_DATA_DIRS</span></span><span class=\"token operator\">=</span>/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop\n\n<span class=\"token function\">cat</span> <span class=\"token operator\">&lt;&lt;</span><span class=\"token string\">EOF<span class=\"token bash punctuation\"> <span class=\"token operator\">></span> ~/.xsessionrc</span>\nexport XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg\nEOF</span></code></pre></div>\n<p>Once <code class=\"language-text\">.xsessionrc</code> is created with the above command, restart the service with the following command.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token function\">sudo</span> systemctl restart xrdp</code></pre></div>\n<p>Reference: <a href=\"https://www.hiroom2.com/2018/04/28/ubuntu-1804-xrdp-gnome-ja/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Ubuntu 18.04: Connect to GNOME desktop environment with XRDP - Narrow Escape</a></p>\n<h2 id=\"dealing-with-the-issue-of-japanese-keyboard-settings-not-working-when-connecting-to-ubuntu-via-xrdp\" style=\"position:relative;\"><a href=\"#dealing-with-the-issue-of-japanese-keyboard-settings-not-working-when-connecting-to-ubuntu-via-xrdp\" aria-label=\"dealing with the issue of japanese keyboard settings not working when connecting to ubuntu via xrdp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Dealing with the Issue of Japanese Keyboard Settings Not Working When Connecting to Ubuntu via XRDP</h2>\n<p>When accessing via XRDP in the default state, Ubuntu’s keyboard may become US layout.</p>\n<p>To avoid this problem, implement the following settings.</p>\n<p>First, open the settings screen.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">gnome-session-properties</code></pre></div>\n<p>Next, click [Add] and enter the following for Name and Command respectively.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Name</span>\nSet JP keyboard on X startup\n\n<span class=\"token comment\"># Command</span>\nsetxkbmap jp</code></pre></div>\n<p>Here’s the settings screen.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 500px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/56934c44f3ea4c4b0a5dc05c1cae71ff/0b533/image-15.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 78.33333333333333%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAACXBIWXMAARlAAAEZQAGA43XUAAAEAklEQVQ4y2WS609TdxjHzxvJmEQ2BVflbrhpAQHLpVwKDLygUYQB4yK0KFBAkciYIoGwaYKJRtwYOJR7W2gtLRSYjiL4dtlf4WuGBMIILXPbZ7+eTbNsJ+eT5znP8zvf8zwnX6k2xovK+P2UqQ5RoVJQkSRikoJLKQqq1QFo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Ko78gCMlYHsGzqmima2Kw1J5gui4Je0MKiw0nWO4+yw9d+by4lsxPrQn83K7BeSubqbpkxqvjGa1KYLTiGMMlYTwuDGHgYjB/AYgNGXLsrNnRAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/56934c44f3ea4c4b0a5dc05c1cae71ff/8ac56/image-15.webp 240w,\n/static/56934c44f3ea4c4b0a5dc05c1cae71ff/d3be9/image-15.webp 480w,\n/static/56934c44f3ea4c4b0a5dc05c1cae71ff/b0a15/image-15.webp 500w\"\n              sizes=\"(max-width: 500px) 100vw, 500px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/56934c44f3ea4c4b0a5dc05c1cae71ff/8ff5a/image-15.png 240w,\n/static/56934c44f3ea4c4b0a5dc05c1cae71ff/e85cb/image-15.png 480w,\n/static/56934c44f3ea4c4b0a5dc05c1cae71ff/0b533/image-15.png 500w\"\n            sizes=\"(max-width: 500px) 100vw, 500px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/56934c44f3ea4c4b0a5dc05c1cae71ff/0b533/image-15.png\"\n            alt=\"https://yukituna.com/wp-content/uploads/2021/11/image-15.png\"\n            title=\"https://yukituna.com/wp-content/uploads/2021/11/image-15.png\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<p>When you restart the OS, JIS layout will be reflected from the next access.</p>\n<p>Reference: <a href=\"https://qiita.com/vochicong/items/6452ac54bde56b0e0bb3\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Ubuntu Japanese keyboard layout - Qiita</a></p>\n<h2 id=\"issue-of-slow-scroll-operations-when-browsing-with-browser\" style=\"position:relative;\"><a href=\"#issue-of-slow-scroll-operations-when-browsing-with-browser\" aria-label=\"issue of slow scroll operations when browsing with browser permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Issue of Slow Scroll Operations When Browsing with Browser</h2>\n<p>The issue of scroll settings not being reflected via XRDP is a known issue, but it seems it hasn’t been fixed for a long time.</p>\n<p>Reference: <a href=\"https://github.com/neutrinolabs/xorgxrdp/issues/150\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Vertical scroll speed too fast (xrdpMouse) · Issue #150 · neutrinolabs/xorgxrdp</a></p>\n<p>I tried tools like imwheel but they had no effect.</p>\n<h2 id=\"summary\" style=\"position:relative;\"><a href=\"#summary\" aria-label=\"summary permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Summary</h2>\n<p>I’ve summarized solutions to problems I personally encountered.</p>\n<p>If I run into more troubles with Ubuntu setup, I’d like to add to this as needed.</p>","fields":{"slug":"/linux-trouble-ubuntu-rdp-en","tagSlugs":["/tag/linux-en/","/tag/ubuntu-en/","/tag/rdp-en/","/tag/トラブルシューティング/","/tag/english/"]},"frontmatter":{"date":"2021-11-30","description":"This article summarizes issues that occurred when making XRDP connections to Ubuntu machines.","tags":["Linux (en)","Ubuntu (en)","RDP (en)","トラブルシューティング","English"],"title":"A Summary of Issues Encountered When Connecting to Ubuntu 20.04 via XRDP","socialImage":{"publicURL":"/static/201705e211b09a16a2edfeb08d417e60/linux-trouble-ubuntu-rdp.png"}}}},"pageContext":{"slug":"/linux-trouble-ubuntu-rdp-en"}},"staticQueryHashes":["251939775","401334301","825871152"]}