{"id":2966,"date":"2021-12-04T05:19:50","date_gmt":"2021-12-03T20:19:50","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=2966"},"modified":"2022-07-15T12:09:22","modified_gmt":"2022-07-15T03:09:22","slug":"blog128","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog128\/","title":{"rendered":"(128) VNC\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u65b9\u6cd5\u304c\u5909\u308f\u308b\uff1f"},"content":{"rendered":"<h1 class=\"my_h\">1. \u554f\u984c\u767a\u751f<\/h1>\n<p>RHEL 8.5\u3067\u4e45\u3005\u306b VNC\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u8b66\u544a\u304c\u767a\u751f\u3057\u3066\u5931\u6557\u3057\u305f\u3002<\/p>\n<pre class=\"my_pre\">\r\nWARNING: <span class=\"my_fc_crimsonB\">vncserver has been replaced by a systemd unit<\/span> and is about to be removed in future releases.\r\nPlease read \/usr\/share\/doc\/tigervnc\/HOWTO.md for more information.\r\n\r\nNew 'localhost.localdomain:1 (hoge)' desktop is localhost.localdomain:1\r\n\r\nStarting applications specified in \/home\/hoge\/.vnc\/xstartup\r\nLog file is \/home\/hoge\/.vnc\/localhost.localdomain:1.log\r\n<\/pre>\n<p>\u3069\u3046\u3084\u3089 <span class=\"my_fc_deeppinkB\">vncserver<\/span> \u30b3\u30de\u30f3\u30c9\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3067\u5b9f\u884c\u3055\u308c\u308b\u3079\u304d\u3082\u306e\u306b\u306a\u308b\u305d\u3046\u306a\u3002<\/p>\n<h1 class=\"my_h\">2. \u5bfe\u51e6\u65b9\u6cd5<\/h1>\n<p>\u8b66\u544a\u6587\u306b<br \/>\n<span class=\"my_fc_blueB\">\/usr\/share\/doc\/tigervnc\/HOWTO.md<\/span><br \/>\n\u3092\u8aad\u3081\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u3053\u308c\u3092\u958b\u3044\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nless \/usr\/share\/doc\/tigervnc\/HOWTO.md\r\n<\/pre>\n<p>\u8272\u3005\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u304c\u3001\u4eca\u3059\u3050\u306b vncserver\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e 2\u70b9\u306b\u3060\u3051\u5bfe\u5fdc\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<h3 class=\"my_h\">1\u70b9\u76ee : \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u756a\u53f7\u3068\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u66f8\u304f\u3002<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8aac\u660e\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\n<span class=\"my_fc_deeppinkB\">## Add a user mapping<\/span>\r\nWith this you can map a user to a particular port. The mapping should be done in\r\n`<span class=\"my_fc_deeppinkB\">\/etc\/tigervnc\/vncserver.users<\/span>` configuration file. It should be pretty\r\nstraightforward once you open the file as there are some examples, but basically\r\nthe mapping is in form\r\n```\r\n:x=user\r\n```\r\nFor example you can have\r\n```\r\n:1=test\r\n:2=vncuser\r\n```\r\n<\/pre>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057&#8230;<\/p>\n<pre class=\"my_pre\">\r\nvi \/etc\/tigervnc\/vncserver.users\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u2193\u2193\u2193 <span class=\"my_fc_deeppinkB\">{\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u756a\u53f7}={\u30e6\u30fc\u30b6\u30fc\u540d}<\/span> \u306e\u3088\u3046\u306b\u30e6\u30fc\u30b6\u30fc\u30de\u30c3\u30d7\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\n# TigerVNC User assignment\r\n#\r\n# This file assigns users to specific VNC display numbers.\r\n# The syntax is <display>=<username>. E.g.:\r\n#\r\n# :2=andrew\r\n# :3=lisa\r\n<span class=\"my_fc_deeppinkB\">:1=hoge<\/span>\r\n<\/pre>\n<h3 class=\"my_h\">2\u70b9\u76ee : systemctl\u30b3\u30de\u30f3\u30c9\u3067 vncserver\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3059\u308b\u3002<\/h3>\n<p>\u5404\u30e6\u30fc\u30b6\u30fc\u304c\u500b\u3005\u306b vncserver\u3092\u8d77\u52d5\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u304c\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u3053\u308c\u3092\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsystemctl start vncserver@:1\r\n<\/pre>\n<p>\u203b@\u306e\u5f8c\u306f\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u756a\u53f7\u3092\u5165\u529b\u3059\u308b\u3002<\/p>\n<p>\u3059\u308b\u3068&#8230;<br \/>\nVNC Viewer\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3067\u304d\u305f\u3002<br \/>\n<a href=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2021\/12\/i001.png\"><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2021\/12\/i001.png\" alt=\"\" class=\"my_add_bs1\" \/><\/a><\/p>\n<h3 class=\"my_h\">3\u70b9\u76ee : \u3082\u3057\u65b0\u898f\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306a\u3089\u3070 VNC\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<p>VNC\u3092\u4f7f\u3046\u30e6\u30fc\u30b6\u30fc\u306eshell\u3067\u4ee5\u4e0b\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nvncpasswd\r\n<\/pre>\n<h1 class=\"my_h\">3. \u6240\u611f<\/h1>\n<p>\u30fbroot\u6a29\u9650\u3092\u6301\u305f\u306a\u3044\u4eba\u306f\u3001\u7ba1\u7406\u8005\u306b\u304a\u9858\u3044\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u554f\u984c\u767a\u751f RHEL 8.5\u3067\u4e45\u3005\u306b VNC\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u8b66\u544a\u304c\u767a\u751f\u3057\u3066\u5931\u6557\u3057\u305f\u3002 WARNING: vncserver has been replaced by a systemd unit \u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog128\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2966","post","type-post","status-publish","format-standard","hentry","category-vnc"],"views":5954,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=2966"}],"version-history":[{"count":16,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2966\/revisions"}],"predecessor-version":[{"id":3398,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/2966\/revisions\/3398"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=2966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=2966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=2966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}