{"id":1718,"date":"2015-02-08T01:50:47","date_gmt":"2015-02-07T16:50:47","guid":{"rendered":"http:\/\/blog.sensuishi.net\/?p=1718"},"modified":"2015-02-08T01:50:47","modified_gmt":"2015-02-07T16:50:47","slug":"post-1718","status":"publish","type":"post","link":"https:\/\/blog.sensuishi.net\/?p=1718","title":{"rendered":"04 Raspberry Pi USB wifi \u30a2\u30c0\u30d7\u30bf\u8a2d\u5b9a"},"content":{"rendered":"<p>1. sudo lsusb \u3067\u30a2\u30c0\u30d7\u30bf\u3092\u8a8d\u8b58\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af<br \/>\nBus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB<br \/>\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br \/>\nBus 001 Device 003: ID 0b95:772b ASIX Electronics Corp.<br \/>\nBus 001 Device 004: ID 0411:01a2 BUFFALO INC. (formerly MelCo., Inc.) WLI-UC-GNM Wireless LAN Adapter [Ralink RT8070]<\/p>\n<p>2. sudo vi \/etc\/network\/interfaces\u3000\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<p>allow-hotplug wlan0<br \/>\niface wlan0 inet dhcp<br \/>\nwpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\niface default inet dhcp<\/p>\n<p>3. sudo vi \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/p>\n<p>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev<br \/>\nupdate_config=1<br \/>\nnetwork={<br \/>\n  ssid=&#8221;SSID&#8221;<br \/>\n  proto=WPA2<br \/>\n  key_mgmt=WPA-PSK<br \/>\n  psk=&#8221;PASSWORD&#8221;<br \/>\n}<\/p>\n<p>4. NIC\u306e\u518d\u8d77\u52d5<br \/>\nsudo ifdown wlan0<br \/>\nsudo ifup wlan0<\/p>\n<p>5. sudo ifconfig \u3067\u78ba\u8a8d<\/p>\n<p>6. sudo iwconfig \u3067\u3082\u30c1\u30a7\u30c3\u30af<\/p>\n<p><a href=\"http:\/\/blog.sensuishi.net\/wp-content\/uploads\/2015\/02\/iwconfig.jpg\"><img loading=\"lazy\" src=\"http:\/\/blog.sensuishi.net\/wp-content\/uploads\/2015\/02\/iwconfig-300x164.jpg\" alt=\"iwconfig\" width=\"300\" height=\"164\" class=\"alignnone size-medium wp-image-1726\" srcset=\"https:\/\/blog.sensuishi.net\/wp-content\/uploads\/2015\/02\/iwconfig-300x164.jpg 300w, https:\/\/blog.sensuishi.net\/wp-content\/uploads\/2015\/02\/iwconfig-1024x560.jpg 1024w, https:\/\/blog.sensuishi.net\/wp-content\/uploads\/2015\/02\/iwconfig.jpg 1265w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n7\uff0e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c1\u30a7\u30c3\u30af<br \/>\nsudo netstat -nrt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. sudo lsusb \u3067\u30a2\u30c0\u30d7\u30bf\u3092\u8a8d\u8b58\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB Bus 001 D [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1726,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[130],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/posts\/1718"}],"collection":[{"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1718"}],"version-history":[{"count":2,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions"}],"predecessor-version":[{"id":1727,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions\/1727"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=\/wp\/v2\/media\/1726"}],"wp:attachment":[{"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sensuishi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}