{"id":296,"date":"2015-12-11T08:10:05","date_gmt":"2015-12-10T23:10:05","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=296"},"modified":"2015-12-11T08:10:05","modified_gmt":"2015-12-10T23:10:05","slug":"%ef%bc%97%ef%bc%9avnc%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=296","title":{"rendered":"\uff17\uff1aVNC\u30b5\u30fc\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"<div class=\"itemBody\">\n<p class=\"itemText\">kvm\u306eVNC\u306f\u4f7f\u3044\u306b\u304f\u3044\u306e\u3067\uff08\u30de\u30a6\u30b9\u306e\u5207\u308a\u66ff\u3048\u304c\u9762\u5012\u306a\u306e\u3068\u3001\u79c1\u304c\u4f7f\u3063\u3066\u308b\u7e26900\u30c9\u30c3\u30c8\u306e\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u306f\u7e26\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\uff09<br \/>\nxinet\u7d4c\u7531\u3067\u8d70\u3089\u305b\u305f\u3044\u306e\u3067<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> yum list installed xinetd<\/span><br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001xinetd \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u3064\u3044\u3067\u306btigervnc \u3082<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> yum install xinetd tigervnc-server<\/span><br \/>\n\/etc\/services\u306e\u6700\u5f8c\u306b<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">vnc 5901\/tcp # vnc serve<\/span> \u2190 vnc\u30925901\u30dd\u30fc\u30c8\u3067\u5f85\u3061\u53d7\u3051\u308b\u3002<\/code><\/pre>\n<\/div>\n<p>\u3068\u8a18\u5165\u3002\/etc\/xinetd.d\/vnc \u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4f5c\u6210<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #0000ff;\"><code>service vnc\r\n{\r\n\tdisable\t= no\r\n\tsocket_type\t= stream\r\n\twait\t\t= no\r\n\tuser\t\t= nobody\r\n\tserver\t\t= \/usr\/bin\/Xvnc\r\n\tserver_args\t= -inetd -query localhost -once -securitytypes=none -geometry 1200x800 -depth 24\r\n\tlog_on_failure\t+=USERID\r\n}<\/code><\/span><\/pre>\n<\/div>\n<p>\/etc\/gdm\/custom.conf \u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #0000ff;\"><code>[daemon]\r\n\tRemoteGreeter=\/usr\/libexec\/gdmgreeter\r\n[security]\r\n\tAllowRemoteRoot=true\r\n[xdmcp]\r\n\tEnable=true<\/code><\/span><\/pre>\n<\/div>\n<p>\u3053\u306e\u6642\uff1d\u306e\u4e21\u5074\u306b\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u3066\u306f\u3044\u3051\u306a\u3044\u3002<br \/>\n\/root\/iptables.sh\u306e\u4fee\u6b63\u3001\u5404\u7a2e\u30b5\u30fc\u30d3\u30b9\u3092\u516c\u958b\u3059\u308b\u5834\u5408\u306e\u8a2d\u5b9a(\u3053\u3053\u307e\u3067) \u306e\u524d\u306b<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #0000ff;\"><code># VNC server\r\niptables -A INPUT -p tcp --dport 5901 -j ACCEPT_COUNTRY<\/code><\/span><\/pre>\n<\/div>\n<p>\u3092\u8ffd\u8a18\u3057<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> sh iptables.sh<\/span><br \/>\n\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> service xinetd start<\/span>\u3000\u2190 xinetd\u3092\u30b9\u30bf\u30fc\u30c8<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> chkconfig xinetd on<\/span>\u3000\u2190\u518d\u8d77\u52d5\u5f8c\u3082\u8d70\u3089\u3059<\/p>\n<p>\u6700\u5f8c\u306b\u3053\u306e\u30b2\u30b9\u30c8\u3067\u306a\u304f\u30db\u30b9\u30c8\u5074\u3067VNC\u30d3\u30e5\u30a2\u30fc\u3092\u5165\u308c\u308b<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> yum install tigervnc<\/span><br \/>\n\u3053\u308c\u3067VNC\u30d3\u30e5\u30a2\u30fc\u306e\u7a93\u306b IP\u30a2\u30c9\u30ec\u30b9:1 \uff08\u30dd\u30fc\u30c85901\u306f 1 \u3068\u5165\u529b\uff09\u3067\u30b2\u30b9\u30c8\u306b\u3064\u306a\u304c\u308b<\/p>\n<\/div>\n<div class=\"itemFoot\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>kvm\u306eVNC\u306f\u4f7f\u3044\u306b\u304f\u3044\u306e\u3067\uff08\u30de\u30a6\u30b9\u306e\u5207\u308a\u66ff\u3048\u304c\u9762\u5012\u306a\u306e\u3068\u3001\u79c1\u304c\u4f7f\u3063\u3066\u308b\u7e26900\u30c9\u30c3\u30c8\u306e\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u306f\u7e26\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\uff09 xinet\u7d4c\u7531\u3067\u8d70\u3089\u305b\u305f\u3044\u306e\u3067 # yum list installed xin &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=296\">\u7d9a\u304d\u3092\u8aad\u3080 <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":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-centos6"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":1,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}