{"id":404,"date":"2021-05-09T22:00:44","date_gmt":"2021-05-09T14:00:44","guid":{"rendered":"https:\/\/22pig.com\/?p=404"},"modified":"2021-05-09T22:00:44","modified_gmt":"2021-05-09T14:00:44","slug":"ubuntu%e5%91%bd%e4%bb%a4%e8%a1%8c%e9%93%be%e6%8e%a5wifi","status":"publish","type":"post","link":"http:\/\/22pig.com\/?p=404","title":{"rendered":"Ubuntu\u547d\u4ee4\u884c\u94fe\u63a5WIFI"},"content":{"rendered":"<p>\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u65e0\u7ebf\u7f51\u5361<\/p>\n<div class=\"cnblogs_Highlighter\">\n<pre class=\"bash\">ip a\n<\/pre>\n<\/div>\n<p>.\u542f\u52a8\u65e0\u7ebf\u7f51\u5361, \u5982\u679c\u7f51\u5361\u662fwlan0<\/p>\n<div class=\"cnblogs_Highlighter\">\n<pre class=\"bash\">\nip link set wlan0 up\n<\/pre>\n<\/div>\n<p>.\u626b\u63cf\u53ef\u7528\u7684WiFi(\u6ca1\u4ec0\u4e48\u7528\u5904)<\/p>\n<div class=\"cnblogs_Highlighter\">\n<pre class=\"bash\"># \u4e0d\u52a0less\u53ef\u80fd\u4f1a\u4ea7\u751f\u592a\u591a\u8f93\u51fa\niw dev wlan0 scan |less\n\n# \u6216\u8005\niwlist wlan0 scanning\n<\/pre>\n<\/div>\n<p>.\u521b\u5efa\u53e3\u4ee4\u6587\u4ef6, \u5e76\u8fde\u63a5<\/p>\n<div class=\"cnblogs_Highlighter\">\n<pre class=\"bash\"># \u5efa\u7acb\u914d\u7f6e\u6587\u4ef6\nwpa_passphrase ESSID PWD &gt; connect.conf\n\n# \u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u8fde\u63a5\nwpa_supplicant -B -i wlan0 -Dwext -c .\/connect.conf\n\n\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u63d0\u793a\nSuccessfully initialized wpa_supplicant\nnl80211: Could not configure driver mode\nnl80211: deinit ifname=wlan1 disabled_11b_rates=0\nwlan1: Failed to initialize driver interface\n\n\u518d\u6765\u4e00\u904d \nsudo wpa_supplicant -B -i wlan0 -c connect.conf -Dwext\n\nSuccessfully initialized wpa_supplicant\nioctl[SIOCSIWAP]: Operation not permitted\nioctl[SIOCSIWENCODEEXT]: Invalid argument\nioctl[SIOCSIWENCODEEXT]: Invalid argument\n\u4e0d\u7528\u7ba1\u8fd9\u4e9b\u9519\u8bef\u4fe1\u606f\n\n# \u8bbe\u7f6e\u4e3adhcp client, \u83b7\u53d6IP\ndhclient wlan0\n\n# \u67e5\u770b\u8fde\u63a5\u7ed3\u679c \nip a<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u662f\u5426\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u65e0\u7ebf\u7f51\u5361 ip a .\u542f\u52a8\u65e0\u7ebf\u7f51\u5361, \u5982\u679c\u7f51\u5361\u662fwlan0 ip link set wlan0 up .\u626b\u63cf\u53ef\u7528\u7684WiFi(\u6ca1\u4ec0\u4e48\u7528\u5904) # \u4e0d\u52a0less\u53ef\u80fd\u4f1a\u4ea7\u751f\u592a\u591a\u8f93\u51fa iw dev wlan0 scan |less # \u6216\u8005 iwlist wlan0 scanning .\u521b\u5efa\u53e3\u4ee4\u6587\u4ef6, \u5e76\u8fde\u63a5 # \u5efa\u7acb\u914d\u7f6e\u6587\u4ef6 wpa_passphrase ESSID PWD &gt; connect.conf # \u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u8fde\u63a5 wpa_supplicant -B -i wlan0 -Dwext -c .\/connect.conf \u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u63d0\u793a Successfully initialized wpa_supplicant nl80211: Could not configure driver mode nl80211: deinit ifname=wlan1 disabled_11b_rates=0 &#8230; <a title=\"Ubuntu\u547d\u4ee4\u884c\u94fe\u63a5WIFI\" class=\"read-more\" href=\"http:\/\/22pig.com\/?p=404\" aria-label=\"More on Ubuntu\u547d\u4ee4\u884c\u94fe\u63a5WIFI\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=404"}],"version-history":[{"count":0,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions"}],"wp:attachment":[{"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}