{"id":376,"date":"2015-02-17T14:36:49","date_gmt":"2015-02-17T06:36:49","guid":{"rendered":"http:\/\/www.woria.cn\/blogs\/?p=376"},"modified":"2015-02-17T14:36:49","modified_gmt":"2015-02-17T06:36:49","slug":"raspberry-pi-wifi-putty","status":"publish","type":"post","link":"https:\/\/blogs.woria.cn\/?p=376","title":{"rendered":"\u547d\u4ee4\u6a21\u5f0f\u4e0b\u914d\u7f6e\u6811\u8393\u6d3e\u7684wifi"},"content":{"rendered":"<p>#\u67e5\u770b\u7f51\u7edc\u8fde\u63a5\u60c5\u51b5<br \/>\niwconfig<br \/>\n#\u5b89\u88c5\u547d\u4ee4\u64cd\u4f5c\u5305<br \/>\napt-get install wireless-tools wpasupplicant firmware-realtek<br \/>\n#\u626b\u63cf\u65e0\u7ebf<br \/>\niwlist wlan0 scan<br \/>\n#\u751f\u6210\u65e0\u7ebf\u914d\u7f6e\uff0c\u5fc5\u987b\u8f93\u5165\u5bc6\u7801\uff0c\u82e5\u65e0\u5bc6\u7801\u6682\u65f6\u80e1\u4e71\u6253\u4e00\u4e2a\u3002\u751f\u6210\u914d\u7f6e\u540e\u6e05\u7a7a\u5bc6\u7801\u9879<br \/>\nwpa_passphrase SSID\u540d\u79f0 \u5bc6\u7801<br \/>\n#\u914d\u7f6e\u6837\u4f8b<br \/>\n#network={<br \/>\n#     ssid=&#8221;SSID\u540d\u79f0&#8221;<br \/>\n#     #psk=&#8221;\u5bc6\u7801&#8221;<br \/>\n#     psk=4b7084a26fea96aaf67518820cc1151fb8f47c5fc0674cd6e877a2ecd70b596e<br \/>\n#}<br \/>\n#\u5b58\u5165\u914d\u7f6e\u6587\u4ef6<br \/>\nvi \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\n#\u8bbe\u7f6e\u81ea\u52a8\u83b7\u53d6ip<br \/>\nallow-hotplug wlan0<br \/>\nauto wlan0<br \/>\niface wlan0 inet dhcp<br \/>\npre-up wpa_supplicant -B w -D wext -i wlan0 -c \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\npost-down killall -q wpa_supplicant<br \/>\n#\u8bbe\u7f6e\u56fa\u5b9aip<br \/>\nallow-hotplug wlan0<br \/>\nauto wlan0<br \/>\niface wlan0 inet static<br \/>\naddress 192.168.1.137<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 192.168.1.0<br \/>\nbroadcast 192.168.1.255<br \/>\ngateway 192.168.1.1<br \/>\nwpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\n#\u5173\u95edwifi<br \/>\nifdown wlan0<br \/>\n#\u6fc0\u6d3b\u91cd\u8fde<br \/>\nifup wlan0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#\u67e5\u770b\u7f51\u7edc\u8fde\u63a5\u60c5\u51b5 iwconfig #\u5b89\u88c5\u547d\u4ee4\u64cd\u4f5c\u5305 apt-get install wireless-to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,9,5],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-technique","category-programmer","category-magician"],"_links":{"self":[{"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=376"}],"version-history":[{"count":0,"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.woria.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}