{"id":1662,"date":"2019-01-27T17:03:41","date_gmt":"2019-01-27T08:03:41","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=1662"},"modified":"2019-01-27T17:03:44","modified_gmt":"2019-01-27T08:03:44","slug":"post-1662","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2019\/01\/27\/post-1662\/","title":{"rendered":"Ubuntu\u306bWindows\u304b\u3089RDP\u3067\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"\n<p>Linux\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u3001\u901a\u5e38\u306fCLI\u3067\u4e8b\u8db3\u308a\u308b\u306e\u3067sshd\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u3088\u3044\u306e\u3060\u304c\u3001\u3044\u308d\u3044\u308d\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u3001GUI\u3092\u4f7f\u3044\u305f\u304b\u3063\u305f\u3002Ubuntu\uff0818.04 LTS\uff09\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u306b\u3001\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u3044\u305f\u3089\u3001xrdp\u3092\u4f7f\u3048\u3070\u3001Windows\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08mstsc.exe\uff09\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001xrdp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<p>xrdp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre>\n~$ sudo apt install xrdp\n<\/pre>\n\n\n\n<p>\u6b21\u306b\u3001xrdp\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3002\u300cnew_cursors\u300d\u306e\u8a2d\u5b9a\u3092\u7121\u52b9\u5316\u3059\u308b\u3002\u305d\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3002<\/p>\n\n\n\n<pre>\n~$ sudo sed -e 's\/^new_cursors=true\/new_cursors=false\/g' -i \/etc\/xrdp\/xrdp.ini\n~$ sudo systemctl restart xrdp\n<\/pre>\n\n\n\n<p>\u300c.xsessionrc\u300d\u3092\u4f5c\u6210\u3059\u308b\u3002\u3053\u308c\u306f\u3001\u53c2\u8003\u306b\u3057\u305f\u30da\u30fc\u30b8\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u3082\u306e\u3092\u307e\u308b\u3063\u3068\u6d41\u7528\u3002<\/p>\n\n\n\n<pre>\n~$  D=\/usr\/share\/ubuntu:\/usr\/local\/share:\/usr\/share:\/var\/lib\/snapd\/desktop\n~$ cat <<EOF > ~\/.xsessionrc\n> export GNOME_SHELL_SESSION_MODE=ubuntu\n> export XDG_CURRENT_DESKTOP=ubuntu:GNOME\n> export XDG_DATA_DIRS=${D}\n> export XDG_CONFIG_DIRS=\/etc\/xdg\/xdg-ubuntu:\/etc\/xdg\n> EOF\n<\/pre>\n\n\n\n<p>Authentication Required\u306e\u56de\u907f\u8a2d\u5b9a\u3092\u884c\u3046\u3002\u3053\u308c\u3092\u3084\u3089\u306a\u3044\u3068\u30c0\u30e1\u3060\u3063\u305f\uff08\u5148\u4eba\u306f\u5049\u5927\uff09\u3002 \u300c\/etc\/polkit-1\/localauthority\/50-local.d\/xrdp-color-manager.pkla\u300d\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\n~$ sudo cat \/etc\/polkit-1\/localauthority\/50-local.d\/xrdp-color-manager.pkla\n[Netowrkmanager]\nIdentity=unix-user:*\nAction=org.freedesktop.color-manager.create-device\nResultAny=no\nResultInactive=no\nResultActive=yes\n<\/pre>\n\n\n\n<p>polkit\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo systemctl restart polkit\n<\/pre>\n\n\n\n<p>Windows\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a\u3000<a href=\"https:\/\/www.hiroom2.com\/2018\/04\/28\/ubuntu-1804-xrdp-gnome-ja\/\">https:\/\/www.hiroom2.com\/2018\/04\/28\/ubuntu-1804-xrdp-gnome-ja\/<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u30ed\u30b0<\/p>\n\n\n\n<pre>\nzen@ubClient:~$\nzen@ubClient:~$ apt search xrdp\n\u30bd\u30fc\u30c8\u4e2d... \u5b8c\u4e86\n\u5168\u6587\u691c\u7d22... \u5b8c\u4e86\nxorgxrdp\/bionic 0.9.5-2 amd64\n  Remote Desktop Protocol (RDP) modules for X.org\n\nxrdp\/bionic 0.9.5-2 amd64\n  Remote Desktop Protocol (RDP) server\n\nxrdp-pulseaudio-installer\/bionic 0.9.5-2 amd64\n  Remote Desktop Protocol (RDP) server - PulseAudio module installer\n\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$ sudo apt install xrdp\n[sudo] zen \u306e\u30d1\u30b9\u30ef\u30fc\u30c9:\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u4ee5\u4e0b\u306e\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  xorgxrdp\n\u63d0\u6848\u30d1\u30c3\u30b1\u30fc\u30b8:\n  guacamole xrdp-pulseaudio-installer\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u65b0\u305f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  xorgxrdp xrdp\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 2 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002\n498 kB \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b\u8ffd\u52a0\u3067 3,303 kB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\n\u7d9a\u884c\u3057\u307e\u3059\u304b? [Y\/n] Y\n\u53d6\u5f97:1 http:\/\/jp.archive.ubuntu.com\/ubuntu bionic\/universe amd64 xorgxrdp amd64 0.9.5-2 [78.7 kB] \n\u53d6\u5f97:2 http:\/\/jp.archive.ubuntu.com\/ubuntu bionic\/universe amd64 xrdp amd64 0.9.5-2 [419 kB]\n498 kB \u3092 0\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (3,298 kB\/s)\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 xorgxrdp \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 170920 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\n...\/xorgxrdp_0.9.5-2_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\nxorgxrdp (0.9.5-2) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 xrdp \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n...\/xrdp_0.9.5-2_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\nxrdp (0.9.5-2) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\nureadahead (0.100.0-20) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nlibc-bin (2.27-3ubuntu1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nxrdp (0.9.5-2) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\n\nGenerating 2048 bit rsa key...\n\nssl_gen_key_xrdp1 ok\n\nsaving to \/etc\/xrdp\/rsakeys.ini\n\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/xrdp-sesman.service \u2192 \/lib\/systemd\/system\/xrdp-sesman.service.\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/xrdp.service \u2192 \/lib\/systemd\/system\/xrdp.service.\nsystemd (237-3ubuntu10.11) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nman-db (2.8.3-2ubuntu0.1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nxorgxrdp (0.9.5-2) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nlibc-bin (2.27-3ubuntu1) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nureadahead (0.100.0-20) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\nzen@ubClient:~$\nzen@ubClient:~$ cat \/etc\/xrdp\/xrdp.ini  | grep new_cursors\nnew_cursors=true\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$ sudo sed -e 's\/^new_cursors=true\/new_cursors=false\/g' -i \/etc\/xrdp\/xrdp.ini\n[sudo] zen \u306e\u30d1\u30b9\u30ef\u30fc\u30c9:\nzen@ubClient:~$\nzen@ubClient:~$ cat \/etc\/xrdp\/xrdp.ini  | grep new_cursors\nnew_cursors=false\nzen@ubClient:~$\nzen@ubClient:~$ sudo systemctl restart xrdp\nzen@ubClient:~$\nzen@ubClient:~$  D=\/usr\/share\/ubuntu:\/usr\/local\/share:\/usr\/share:\/var\/lib\/snapd\/desktop\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$ cat <<EOF > ~\/.xsessionrc\n> export GNOME_SHELL_SESSION_MODE=ubuntu\n> export XDG_CURRENT_DESKTOP=ubuntu:GNOME\n> export XDG_DATA_DIRS=${D}\n> export XDG_CONFIG_DIRS=\/etc\/xdg\/xdg-ubuntu:\/etc\/xdg\n> EOF\nzen@ubClient:~$\nzen@ubClient:~$\nzen@ubClient:~$ sudo usermod -aG xrdp zen\nzen@ubClient:~$ sudo emacs \/etc\/polkit-1\/localauthority\/50-local.d\/xrdp-c\nolor-manager.pkla\nzen@ubClient:~$ sudo cat \/etc\/polkit-1\/localauthority\/50-local.d\/xrdp-color-manager.pkla\n[Netowrkmanager]\nIdentity=unix-user:*\nAction=org.freedesktop.color-manager.create-device\nResultAny=no\nResultInactive=no\nResultActive=yes\nzen@ubClient:~$\nzen@ubClient:~$ sudo systemctl restart polkit\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u3001\u901a\u5e38\u306fCLI\u3067\u4e8b\u8db3\u308a\u308b\u306e\u3067sshd\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u3088\u3044\u306e\u3060\u304c\u3001\u3044\u308d\u3044\u308d\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u3001GUI\u3092\u4f7f\u3044\u305f\u304b\u3063\u305f\u3002Ubuntu\uff0818.04 LTS\uff09\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u306b\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[110],"class_list":["post-1662","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=1662"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1662\/revisions"}],"predecessor-version":[{"id":1663,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/1662\/revisions\/1663"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=1662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=1662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=1662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}