{"id":940,"date":"2017-10-02T17:55:35","date_gmt":"2017-10-02T08:55:35","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=940"},"modified":"2018-09-18T11:25:35","modified_gmt":"2018-09-18T02:25:35","slug":"blog57","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog57\/","title":{"rendered":"(57)\u3010\u9023\u8f091-1\u3011CentOS7\u306bVirtualBox\u3092\u5165\u308c\u308b"},"content":{"rendered":"<h1 class=\"my_h\">\u3053\u306e\u9023\u8f09\u3067\u6700\u7d42\u7684\u306b\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>CentOS7\u3092\u5165\u308c\u305f\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u306b VirtualBox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001<br \/>\n\u3000VirtualBox\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u3067 Ubuntu\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u3001<br \/>\n\u3000\u3000Ubuntu\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067 WEB\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u3001<br \/>\n\u3000\u3000\u3000eclipse \uff0b xdebug, PhpStorm + xdebug\u3067\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u3044\u3002<\/p>\n<h1 class=\"my_h\">\u4eca\u56de\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>CentOS7\u3092\u5165\u308c\u305f\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u306b VirtualBox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001Ubuntu\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u305f\u3044\u3002<\/p>\n<h1 class=\"my_h\">(1) \u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h1>\n<h3 class=\"my_h\">1. VirtualBox\u3092\u5165\u624b<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089<br \/>\n<a href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\" target=\"_blank\">Download VirtualBox for Linux Hosts<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2017\/10\/Image1.png\" alt=\"\" \/><\/a><br \/>\nOracle Linux 7 (&#8220;OL7&#8221;) \/ Red Hat Enterprise Linux 7 (&#8220;RHEL7&#8221;) \/ <span class=\"my_fc_deeppink\">CentOS 7<\/span>  AMD64<br \/>\n<span class=\"my_fc_blue\">VirtualBox-5.1-5.1.28_117968_el7-1.x86_64.rpm<\/span><br \/>\n\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30de\u30b7\u30f3\u306e CPU\u306f Intel Xeon X5570 \u3060\u3002<br \/>\nAMD\u3058\u3083\u306a\u3044\u3051\u3069\u4e0a\u8a18\u306e rpm\u30d5\u30a1\u30a4\u30eb\u3067 OK\u3060\u3002<\/p>\n<h3 class=\"my_h\">2. Ubuntu\u3092\u5165\u624b<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089<br \/>\n<a href=\"https:\/\/www.ubuntu.com\/download\/desktop\" target=\"_blank\">Download Ubuntu Desktop<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2017\/10\/Image2.png\" alt=\"\" \/><\/a><br \/>\nUbuntu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_blue\">ubuntu-17.04-desktop-amd64.iso<\/span><br \/>\n\u4eca\u56de\u306f 2017\u5e7410\u67082\u65e5\u6642\u70b9\u306e\u6700\u65b0\u7248 Ubuntu 17.04 \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u3002<\/p>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u7528\u9014\u306a\u306e\u3067\u3001\u3053\u306e ISO\u30d5\u30a1\u30a4\u30eb\u3092 DVD\u306b\u713c\u304f\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<h1 class=\"my_h\">(2) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<h3 class=\"my_h\">1. VirtualBox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f<br \/>\n<span class=\"my_fc_blue\">VirtualBox-5.1-5.1.28_117968_el7-1.x86_64.rpm<\/span><br \/>\n\u3092CentOS7\u304c\u5165\u3063\u305f\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nrpm -ivh .\/VirtualBox-5.1-5.1.28_117968_el7-1.x86_64.rpm\r\n<\/pre>\n<h3 class=\"my_h\">2. Ubuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>1) VirtualBox\u3092\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>2) \u65b0\u898f\u306b\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>3) \u8a2d\u5b9a\u753b\u9762\u306b\u3066\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u5272\u308a\u5f53\u3066\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u3000\u30fbCPU\u30b3\u30a2\u6570\uff08\u4eca\u56de\u306f\u7269\u7406\uff0b\u8ad6\u7406\u516816\u30b3\u30a2\u306e\u3046\u30614\u30b3\u30a2\u3092\u5272\u308a\u5f53\u3066\u305f\uff09<br \/>\n\u3000\u30fb\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba\uff08\u4eca\u56de\u306f\u7269\u740648GB\u306e\u3046\u30618GB\u3092\u5272\u308a\u5f53\u3066\u305f\uff09<br \/>\n\u3000\u30fb\u30b9\u30c8\u30ec\u30fc\u30b8\uff08\u4eca\u56de\u306f\u7269\u74063TB\u306e\u3046\u3061 200GB\u3092\u5272\u308a\u5f53\u3066\u305f \u203b\u53ef\u5909\u9577\u30c9\u30e9\u30a4\u30d6\u306a\u306e200GB\u306f\u5360\u6709\u305b\u305a\uff09<\/p>\n<p>4) \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fcDVD\u3092\u5149\u5b66\u30c9\u30e9\u30a4\u30d6\u306b\u5165\u308c\u305f\u3064\u3082\u308a\u306b\u3055\u305b\u308b\u305f\u3081\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u9805\u76ee\u306e\u30aa\u30d7\u30c6\u30a3\u30ab\u30eb\u30c9\u30e9\u30a4\u30d6\u306b\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5272\u308a\u4ed8\u3051\u308b\u3002<br \/>\n<span class=\"my_fc_blue\">ubuntu-17.04-desktop-amd64.iso<\/span><\/p>\n<p>5) \u4eee\u60f3\u30de\u30b7\u30f3\u3092 Power On \u3059\u308b\u3002<br \/>\n\u3053\u306e\u5f8c Ubuntu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<\/p>\n<h3 class=\"my_h\">3. \u5916\u90e8\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/h3>\n<p>\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308b Windows10\u30d1\u30bd\u30b3\u30f3\u304b\u3089 TeraTerm\u3067 SSH\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002<br \/>\nUbuntu\u4e0a\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3002<\/p>\n<p>0) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306a\u306e\u3067 Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6700\u65b0\u7248\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo apt update\r\nsudo apt upgrade\r\n<\/pre>\n<p>1) OpenSSH\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo apt install openssh-server\r\n<\/pre>\n<p>2) ifconfig\u7b49\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b net-tools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo apt install net-tools\r\n<\/pre>\n<p>3) IP\u30a2\u30c9\u30ec\u30b9\u3092DHCP\u53d6\u5f97\u304b\u3089\u56fa\u5b9aIP\u306b\u5909\u66f4\u3059\u308b\u3002\u4eca\u56de\u306f 192.168.1.4\u3068\u3059\u308b\u3002<br \/>\n<span class=\"my_fc_deeppink\">\u203b\u4e00\u65e6\u63a5\u7d9a\u3092 OFF \u306b\u3057\u305f\u5f8c\u306b\u518d\u5ea6 ON \u306b\u3059\u308b\u3068IP\u30a2\u30c9\u30ec\u30b9\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<\/span><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2017\/10\/Image4.png\" alt=\"\" \/><br \/>\n<span class=\"my_fc_red\">\u203bNAT\u3067\u306f\u306a\u304fBridge\u63a5\u7d9a\u306b\u3059\u308b\u3053\u3068\u3002<\/span><\/p>\n<p>\u73fe\u5728\u5f85\u3061\u53d7\u3051\u72b6\u614b\u306b\u3042\u308b\u30dd\u30fc\u30c8\u306f\uff1f<\/p>\n<pre class=\"my_pre\">\r\nuser@:~$ netstat -at\r\nActive Internet connections (servers and established)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State\r\ntcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN\r\ntcp        0      0 localhost:ipp           0.0.0.0:*               LISTEN\r\ntcp        0      0 0.0.0.0:hostmon         0.0.0.0:*               LISTEN\r\n<\/pre>\n<p class=\"my_fs_big2 my_fc_deeppink\">\u3053\u306e\u6642\u70b9\u3067Windows\u30d1\u30bd\u30b3\u30f3\u304b\u3089 TeraTerm\u3067\u63a5\u7d9a\u3067\u304d\u308b\u3002<\/p>\n<p>\u5ff5\u306e\u305f\u3081\u306b&#8230;<br \/>\n4) FireWall\u3092\u5165\u308c\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo apt -y install ufw\r\nsudo systemctl enable ufw\r\nsudo systemctl restart ufw\r\n<\/pre>\n<p>SSH\u7528\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo ufw allow ssh      # SSH\u7528\u30dd\u30fc\u30c8(22)\u3092\u958b\u304f\r\nsudo ufw enable\r\nsudo ufw status         # \u72b6\u614b\u3092\u898b\u308b\r\n<\/pre>\n<h3 class=\"my_h\">4. Windows\u30d1\u30bd\u30b3\u30f3\u3067 X-Window\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/h3>\n<p>TeraTerm\u3067\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3057\u3066\u64cd\u4f5c\u3067\u304d\u308c\u3070\u307b\u307c\u6e80\u8db3\u3060\u304c\u3001Python\u306a\u3069\u3067\u30b0\u30e9\u30d5\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u3002<br \/>\n\u3053\u3093\u306a\u5834\u5408\u306b\u5099\u3048\u3066\u3001Windows\u30d1\u30bd\u30b3\u30f3\u3067 X-Windows\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>1) Ubuntu\u5074\u3067VNC Server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"my_pre\">\r\nsudo apt install xfce4 xfce4-goodies tightvncserver\r\nvncserver -geometry 1600x1000 -depth 24\r\n<\/pre>\n<p>2) ~\/.vnc\/xstartup\u3092\u66f8\u304d\u63db\u3048<\/p>\n<pre class=\"my_pre\">\r\ncd\r\nvi .\/.vnc\/xstartup\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306b\u66f8\u304d\u63db\u3048\u3002<\/p>\n<pre class=\"my_pre\">\r\n#!\/bin\/sh\r\nxrdb $HOME\/.Xresources\r\nstartxfce4 &\r\n<\/pre>\n<p>3) FireWall\u306b\u3082VNC\u7528\u306e\u7a74\u3092\u3042\u3051\u3066\u304a\u304f\u3002<br \/>\nVNC\u306e\u30dd\u30fc\u30c8\u756a\u53f7\uff1a5900 + \u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u756a\u53f7<\/p>\n<pre class=\"my_pre\">\r\nsudo ufw allow 5901\/tcp           # VNC\u63a5\u7d9a\u7528\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\r\nsudo ufw status                   # \u72b6\u614b\u3092\u898b\u308b\r\n<\/pre>\n<p>4) Windows\u30d1\u30bd\u30b3\u30f3\u3067VNC\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u8d77\u52d5\u3057\u3066\u63a5\u7d9a\u3059\u308b\u3002<br \/>\n\u904e\u53bb\u8a18\u4e8b\u300c<a href=\"https:\/\/www.dogrow.net\/linux\/blog46\/\">(46) VNC Viewer 6.0.2\u306b\u5165\u308c\u66ff\u3048\u308b\u3002<\/a>\u300d\u3092\u53c2\u7167\u306e\u3053\u3068\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u8868\u793a\u3055\u308c\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2017\/10\/Image6.png\" alt=\"\" \/><\/p>\n<h1 class=\"my_h\">\u6700\u7d42\u7684\u306b\u3053\u3046\u306a\u3063\u305f<\/h1>\n<p>\u80cc\u666f\uff1a Windows\u30d1\u30bd\u30b3\u30f3<br \/>\n\u5de6\u4e0a\uff1a VNC\u3067\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eCentOS7\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u8868\u793a, \u305d\u306e\u5185\u90e8\u306b\u306fVirtualBox\u3067\u52d5\u3044\u3066\u3044\u308bUbuntu<br \/>\n\u5de6\u4e0b\uff1a Windows\u30d1\u30bd\u30b3\u30f3\u4e0a\u3067TeraTerm\u3092\u8d77\u52d5\u3057Ubuntu\u306b\u63a5\u7d9a<br \/>\n\u53f3\u4e0b\uff1a VNC\u3067Ubuntu\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u8868\u793a<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2017\/10\/Image7.png\" alt=\"\" \/><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u9023\u8f09\u3067\u6700\u7d42\u7684\u306b\u3084\u308a\u305f\u3044\u3053\u3068 CentOS7\u3092\u5165\u308c\u305f\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u306b VirtualBox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001 \u3000VirtualBox\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u3067 Ubuntu\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u52d5\u304b\u3057\u3001 \u3000\u3000Ubuntu\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u4e0a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog57\/\">\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":[78],"tags":[],"class_list":["post-940","post","type-post","status-publish","format-standard","hentry","category-virtualbox"],"views":7451,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/940","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=940"}],"version-history":[{"count":55,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/940\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/940\/revisions\/1612"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}