{"id":2113,"date":"2018-09-20T14:21:39","date_gmt":"2018-09-20T05:21:39","guid":{"rendered":"http:\/\/research.itplants.com\/?p=2113"},"modified":"2018-09-22T10:05:35","modified_gmt":"2018-09-22T01:05:35","slug":"rpi%e3%81%aead-hoc%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/research.itplants.com\/?p=2113","title":{"rendered":"RPI\u306eAd-Hoc\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4f5c\u6210\u65b9\u6cd5"},"content":{"rendered":"<p>\u8907\u6570\u306e Raspberry Pi(WiFi\u4ed8\u304d\uff09\u3092\uff11\u53f0\u306e MacBook Air\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002MacBook Air\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u308c\u3070\u3001Mac\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5171\u6709\u3067\u3001\u7c21\u5358\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u3063\u3066\u3001\u8907\u6570\u306eRaspberry Pi\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001Mac\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u3061\u3087\u3063\u3068\u5384\u4ecb\u3067\u3059\u3002\u3044\u308d\u3044\u308d\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u7d50\u5c40\u306f\u3001 \u5404Raspberry Pi\u3067ad-hoc\u30cd\u30c3\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001Mac\u304c\u3053\u306ead-hoc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u306b\u843d\u3061\u7740\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Mac\u3060\u3051\u3067\u3082ad-hoc\u30cd\u30c3\u30c8\u3092\u4f5c\u308c\u307e\u3059\u304c\u3001Mac\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4f5c\u6210&#8230;\u3067\u4f5c\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\uff08\u88c5\u7f6e\uff09\u306f\u3001Mac\u540c\u58eb\u3067\u306a\u3051\u308c\u3070\u3064\u306a\u304c\u308a\u307e\u305b\u3093\u3002Raspberry Pi\u3067\u306f\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306f\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u63a5\u7d9a\u304c\u3067\u304d\u307e\u305b\u3093\u3002IP\u306e\u305b\u3044\u3067\u306f\u306a\u304f\u3001\u56fa\u5b9aIP\u306b\u3057\u3066\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5404Raspberry Pi\u3067ad-hoc\u30cd\u30c3\u30c8\u3092\u8d77\u52d5\u3057\u3057\u307e\u3059\u3002\u305d\u306e\u65b9\u6cd5\u306f\u3001\/etc\/network\/interface\u306b\u3001\u4ee5\u4e0b\u3092\u4ed8\u3051\u52a0\u3048\u307e\u3059\u3002<\/p>\n<p><code># interfaces(5) file used by ifup(8) and ifdown(8)<br \/>\n# Please note that this file is written to be used with dhcpcd<br \/>\n# For static IP, consult \/etc\/dhcpcd.conf and 'man dhcpcd.conf'<br \/>\n# Include files from \/etc\/network\/interfaces.d:<br \/>\nsource-directory \/etc\/network\/interfaces.d<\/code><\/p>\n<p>\u3053\u3053\u304b\u3089\u4e0b\u3092\u4ed8\u3051\u52a0\u3048\u308b\u3002<\/p>\n<p><code>auto lo<br \/>\niface lo inet loopback<br \/>\niface eth0 inet manual<br \/>\nallow-hotplug wlan1<br \/>\niface wlan1 inet manual<br \/>\nwpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\niface wlan0 inet manual<br \/>\nauto wlan0<br \/>\niface wlan0 inet static<br \/>\naddress 192.168.1.50<br \/>\nnetmask 255.255.255.0<br \/>\nwireless-channel 1<br \/>\nwireless-mode ad-hoc<br \/>\nwireless-essid ITBOX-SYSTEM-AP<br \/>\nwireless-key 1234567890<\/code><\/p>\n<p>\u56fa\u5b9aIP\u3060\u3051\u3092\u5909\u3048\u3066\u3001\u3059\u3079\u3066\u306eRaspberry Pi\u306e\/etc\/network\/interface\u3092\u66f8\u304d\u63db\u3048\u3066\u3001\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>MacBook Air\u3067\u306f\u3001WiFi\u306e\u88c5\u7f6e\u3067\u8868\u793a\u3055\u308c\u308b\u3001ITBOX-SYSTEM-AP\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002MacBook Air\u3082\u56fa\u5b9aIP\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2116\" src=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878.jpg\" alt=\"\" width=\"934\" height=\"609\" srcset=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878.jpg 934w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878-300x196.jpg 300w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878-768x501.jpg 768w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2018\/09\/89e897fc62deaf0b41537c1ad9092878-320x209.jpg 320w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304c\u306a\u3044\u74b0\u5883\u3067\u3082\u3001\u5168\u3066\u306eRaspberry Pi\u306b\u63a5\u7d9a\u53ef\u80fd\u306a ad-hoc\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/qiita.com\/UedaTakeyuki\/items\/851fc8c19f36b96a0ae6\">\u3053\u3053\u306e\u60c5\u5831<\/a>\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u65b9\u6cd5\u306e\u5229\u70b9\u306f\u3001\uff11\u53f0\u306eRaspberry Pi\u3067hostapd\u3068dhcpd\u306a\u3069\u3092\u8d77\u52d5\u3057\u3066\u4f5c\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u3088\u308a\u3082\u5b89\u5168\u6027\u304c\u9ad8\u3044\u3053\u3068\u3067\u3059\u3002\uff11\u53f0\u306eRaspberry Pi\u304c\u4f5c\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u3067\u306f\u306a\u304f\u3001\u8907\u6570\u306eRaspberry Pi\u304c\u4f5c\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306a\u306e\u3067\u30011\u53f0\u30842\u53f0\u306eRaspberry Pi\u304c\u58ca\u308c\u3066\u3082\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306f\u306a\u304f\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u308c\u306b\u306f\u81f4\u547d\u7684\u306a\u6b20\u70b9\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30e1\u30c3\u30b7\u30e5\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u3059\u308b\u3068\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u3064\u306a\u304c\u308bRaspberry Pi\u304c\u5897\u3048\u308b\u307b\u3069\u306b\u3001\u901a\u4fe1\u901f\u5ea6\u304c\u4f4e\u4e0b\u3057\u3066\u3044\u304d\u307e\u3059\u3002\uff14\u53f0\u3082\u3064\u306a\u3044\u3060\u3089\u3001\u3082\u306e\u3059\u3054\u304f\u9045\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u6642\u9593\u304c\u7d4c\u3064\u3068\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3082\u3067\u304d\u306a\u304f\u306a\u308b\u554f\u984c\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001<a href=\"https:\/\/signal-flag-z.blogspot.com\/2016\/11\/raspberry-pi-3-switchable-hotspot.html\">Raspberry Pi\u3092\u81ea\u52d5\u7684\u306b\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u306b\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u3092\u3064\u304b\u3063\u3066\u3001\u7279\u5b9a\u306e\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u304c\u306a\u3051\u308c\u3070\u3001\u81ea\u5206\u304c\u305d\u306e\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u306b\u306a\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\uff11\u53f0\u306eRaspberry Pi\u304c\u6545\u969c\u3057\u3066\u3001\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u304c\u306a\u304f\u306a\u3063\u3066\u3082\u3001\u4ed6\u306eRaspberry Pi\u304c\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u306b\u306a\u308c\u307e\u3059\u3002\u4e00\u3064\u306e\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u901a\u4fe1\u901f\u5ea6\u306e\u4f4e\u4e0b\u3082\u5c11\u306a\u304f\u3001\u5feb\u9069\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u3070\u3089\u304f\u3001\u69d8\u5b50\u3092\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/signal-flag-z.blogspot.com\/2016\/11\/raspberry-pi-3-switchable-hotspot.html\">Raspberry Pi\u3092\u81ea\u52d5\u7684\u306b\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u306b\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306b\u306f\u3001<br \/>\n<code>$cd \/etc\/network\/<br \/>\n\t$cp interface.dpkg-old interface<br \/>\n\t$sudo rm \/etc\/network\/interface.d\/*<br \/>\n<\/code><br \/>\n\u3067\u5143\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306e Raspberry Pi(WiFi\u4ed8\u304d\uff09\u3092\uff11\u53f0\u306e MacBook Air\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002MacBook Air\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u308c\u3070\u3001Mac\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5171\u6709\u3067\u3001\u7c21\u5358\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af&#8230;<\/p>\n<p><a class=\"more\" href=\"https:\/\/research.itplants.com\/?p=2113\"> Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2116,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2113"}],"collection":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2113"}],"version-history":[{"count":7,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2113\/revisions"}],"predecessor-version":[{"id":2121,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/2113\/revisions\/2121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/media\/2116"}],"wp:attachment":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}