{"id":130,"date":"2016-10-20T09:00:25","date_gmt":"2016-10-20T00:00:25","guid":{"rendered":"https:\/\/onaraboo.com\/?p=130"},"modified":"2016-10-20T09:00:25","modified_gmt":"2016-10-20T00:00:25","slug":"linux-centos-7-%e3%81%ab%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6","status":"publish","type":"post","link":"https:\/\/onaraboo.com\/?p=130","title":{"rendered":"Linux CentOS 7 \u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b\u3002"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/onaraboo.com\/?p=130\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/onaraboo.com\/?p=130\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Linux CentOS 7 \u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b\u3002\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img loading=\"lazy\" decoding=\"async\" src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?Linux%20CentOS%207%20%E3%81%AB%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B%E3%80%82%0D%0Ahttps%3A%2F%2Fonaraboo.com%2F%3Fp%3D130' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='https:\/\/onaraboo.com\/wordpress\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line20x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='20' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/onaraboo.com\/?p=130\" data-text=\"Linux CentOS 7 \u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b\u3002\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<p>\u306a\u3093\u3060\u304b\u3093\u3060\u8a00\u3063\u3066\u3082\u4ed5\u4e8b\u3067Windows\u3092\u4f7f\u3046\u3053\u3068\u306f\u5f53\u305f\u308a\u524d\u306a\u3053\u306e\u3054\u6642\u4e16\u3067\u3059\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u306fLinux\u3092\u4f7f\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3093\u306aLinux\u3067\u3059\u304c\u3001\u69cb\u7bc9\u3084\u8a2d\u5b9a\u64cd\u4f5c\u306e\u70ba\u306b\u30b5\u30fc\u30d0\u30fc\u5ba4\u3068\u81ea\u5e2d\u3092\u884c\u304d\u6765\u3057\u3066\u3044\u307e\u3059\u304c\u3059\u3054\u304f\u9762\u5012\u3060\u3002\uff08\u5927\u3057\u305f\u904b\u52d5\u3058\u3083\u306a\u3044\u306e\u3067\u3059\u304c\u2026\u3002\uff09<br \/>\n\u305d\u308c\u3058\u3083\u3041\u3001Windows Server\u3068\u304b\u3068\u540c\u3058\u3088\u3046\u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u64cd\u4f5c\u3067\u304d\u306a\u3044\u304b\u3068\u8abf\u3079\u3066\u8a2d\u5b9a\u3059\u308b\u30e1\u30e2\u3092\u6b8b\u3059\u3002<br \/>\n\u5bfe\u8c61\u306fCentOS7\u3067\u3059\u304c\u3001\u4e00\u90e8\u3092\u5909\u66f4\u3059\u308b\u3068CentOS6.8\u3067\u306e\u52d5\u4f5c\u3082\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n[\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \/ \u8a2d\u5b9a\u624b\u9806]\n<p>\u2605root\u6a29\u9650\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u3082\u3057\u304f\u306froot\u6a29\u9650\u306b\u6607\u683c\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>$ su &#8211;<\/p>\n<p>\u2605xrdp \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u7aef\u672b\u3067\u5916\u90e8\u30ec\u30dd\u30b8\u30c8\u30ea\u3068\u3057\u3066EPEL\u306e\u62e1\u5f35\u30d1\u30c3\u30b1\u30fc\u30b8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p># mkdir EPEL<br \/>\n# cd EPEL<br \/>\n# wget http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm<br \/>\n# wget http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-5.el7.nux.noarch.rpm<br \/>\n# rpm -ivh epel-release-7-5.noarch.rpm<br \/>\n# rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm<\/p>\n<p>\u2605xrdp\u3001tigervnc-server \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p># yum install -y xrdp tigervnc-server<\/p>\n<p>\u2605RDP\u63a5\u7d9a\u306e\u969b\u3001\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u5bfe\u5fdc\u306b\u3057\u307e\u3059\u3002<\/p>\n<p># cd \/etc\/xrdp<br \/>\n# wget http:\/\/www.mail-archive.com\/xrdp-devel@lists.sourceforge.net\/msg00263\/km-e0010411.ini<br \/>\n# cp km-e0010411.ini km-0411.ini<br \/>\n# cp km-e0010411.ini km-e0200411.ini<br \/>\n# cp km-e0010411.ini km-e0210411.ini<\/p>\n<p>\u2605xrdp\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3057\u3001\u81ea\u52d5\u8d77\u52d5\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p># systemctl start xrdp.service<br \/>\n# systemctl enable xrdp.service<\/p>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\nCentOS7\u306f\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p># systemctl status firewalld<\/p>\n<p>\u2605\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<p># systemctl start firewalld<br \/>\n# systemctl enable firewalld<\/p>\n<p>\u2605\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306bRDP\u63a5\u7d9a(\u30dd\u30fc\u30c8\u756a\u53f7: 3389) \u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p># firewall-cmd &#8211;permanent &#8211;zone=public &#8211;add-port=3389\/tcp<br \/>\n# firewall-cmd &#8211;reload<\/p>\n<p>\u2605\u3053\u306e\u307e\u307e\u3067\u306f\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3059\u308b\u306e\u3067<br \/>\n\/etc\/xrdp\/xrdp.ini\u306e\u300cmax_bbp=32\u300d\u306e\u5024\u309224\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\u2605\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30e6\u30fc\u30b6\u30fc\u306e\u8a2d\u5b9a\u3092\u5165\u308c\u307e\u3059\u3002<br \/>\n\/etc\/sysconfig\/vncservers<\/p>\n<p>VNCSERVERS=&#8221;2:[\u30e6\u30fc\u30b6\u30fc\u540d\uff11]&#8221;<br \/>\nVNCSERVERARGS[2]=&#8221;-geometry 800&#215;600 -nolisten tcp -localhost&#8221;<br \/>\nVNCSERVERS=&#8221;3:[\u30e6\u30fc\u30b6\u30fc\u540d\uff12]&#8221;<br \/>\nVNCSERVERARGS[3]=&#8221;-geometry 800&#215;600 -nolisten tcp -localhost&#8221;<br \/>\n[\u30e6\u30fc\u30b6\u30fc\u540d]\u306e\u90e8\u5206\u3092\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u5206\u3060\u3051\u5217\u6319\u3057\u3066\u304f\u3060\u3055\u3044\u3002[]\u306f\u3044\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4f8b\uff1a<br \/>\nVNCSERVERS=&#8221;2:user1&#8243;<br \/>\nVNCSERVERARGS[2]=&#8221;-geometry 800&#215;600 -nolisten tcp -localhost&#8221;<br \/>\nVNCSERVERS=&#8221;3:user2&#8243;<br \/>\nVNCSERVERARGS[3]=&#8221;-geometry 800&#215;600 -nolisten tcp -localhost&#8221;<\/p>\n<p>\u2605\u3053\u306e\u307e\u307e\u3060\u3068\u8a00\u8a9e\u304c\u304a\u304b\u3057\u3044\u306e\u3067<br \/>\n\/etc\/xrdp\/startwm.sh \u3092\u7de8\u96c6\u3057\u3066\u5f37\u5236\u7684\u306b\u65e5\u672c\u8a9e\u74b0\u5883\u306b\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306e\u65b9\u306b<\/p>\n<p>#export LANG=$LANG<\/p>\n<p>\u3068\u3042\u308b\u306e\u3067\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>export LANG=ja_JP.UTF-8<\/p>\n<p>\u3068\u8a2d\u5b9a\u3057\u3001\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u518d\u63a5\u7d9a\u3059\u308b\u3068\u65e5\u672c\u8a9e\u74b0\u5883\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u4f7f\u7528\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306a\u3093\u3060\u304b\u3093\u3060\u8a00\u3063\u3066\u3082\u4ed5\u4e8b\u3067Windows\u3092\u4f7f\u3046\u3053\u3068\u306f\u5f53\u305f\u308a\u524d\u306a\u3053\u306e\u3054\u6642\u4e16\u3067\u3059\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u306fLinux\u3092\u4f7f\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002 \u305d\u3093\u306aLinux\u3067\u3059\u304c\u3001\u69cb\u7bc9\u3084\u8a2d\u5b9a\u64cd\u4f5c\u306e\u70ba\u306b\u30b5\u30fc\u30d0\u30fc\u5ba4\u3068\u81ea\u5e2d\u3092\u884c\u304d\u6765\u3057\u3066&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/onaraboo.com\/?p=130\">Read more<span class=\"screen-reader-text\">Linux CentOS 7 \u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b\u3002<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13,14,2,6],"tags":[],"class_list":{"0":"post-130","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-linux","8":"category-14","9":"category-2","10":"category-6","11":"entry"},"_links":{"self":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":0,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"wp:attachment":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}