wlp1s0 up<\/span><\/pre>\n\u5982\u679c\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u7684Wifi\u5728\u7b14\u8bb0\u672c\u7535\u8111\u6216\u8ba1\u7b97\u673a\u4e0a\u5f88\u96be\u88ab\u5c4f\u853d\u3002<\/p>\n
RTNETLINK answers<\/span>:<\/span> Operation<\/span> not<\/span> possible due to RF<\/span>-<\/span>kill<\/span><\/pre>\n\u8981\u5220\u9664\u6216\u53d6\u6d88\u963b\u6b62\uff0c\u60a8\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u89e3\u51b3\u9519\u8bef\u3002<\/p>\n
$ echo <\/span>\"blacklist hp_wmi\"<\/span> |<\/span> sudo tee <\/span>\/<\/span>etc<\/span>\/<\/span>modprobe<\/span>.<\/span>d<\/span>\/<\/span>hp<\/span>.<\/span>conf\r\n$ sudo rfkill unblock all<\/span><\/pre>\n\u7136\u540e\u5c1d\u8bd5\u518d\u6b21\u6253\u5f00<\/strong>\u7f51\u7edc\u8bbe\u5907\uff0c\u5e76\u4e14\u8fd9\u6b21\u5e94\u8be5\u53ef\u4ee5\u5de5\u4f5c\u3002<\/p>\n$ sudo ip link <\/span>set<\/span> wlp1s0 up<\/span><\/pre>\n\u5982\u679c\u60a8\u77e5\u9053\u8981\u8fde\u63a5\u7684Wi-Fi\u7f51\u7edc\u7684ESSID<\/strong>\u00a0\uff0c\u8bf7\u8f6c\u81f3\u4e0b\u4e00\u6b65\uff0c\u5426\u5219\u8bf7\u53d1\u51fa\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u518d\u6b21\u626b\u63cf\u53ef\u7528\u7684Wi-Fi\u7f51\u7edc\u3002<\/p>\n$ sudo iw wlp1s0 scan<\/span><\/pre>\n\u6700\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fde\u63a5\u5230Wi-Fi\u7f51\u7edc\uff0c\u5176\u4e2dHackernet<\/strong>\u00a0\uff08Wi-Fi\u7f51\u7edcSSID\uff09\u548clocalhost22<\/strong>\u00a0\uff08\u5bc6\u7801\/\u9884\u5171\u4eab\u5bc6\u94a5\uff09\u3002<\/p>\n$ nmcli dev wifi connect <\/span>Hackernet<\/span> password localhost22<\/span><\/pre>\n\u8fde\u63a5\u540e\uff0c\u901a\u8fc7\u5bf9\u5916\u90e8\u8ba1\u7b97\u673a\u6267\u884cping\u64cd\u4f5c\u6765\u9a8c\u8bc1\u8fde\u63a5\uff0c\u5e76\u5982\u56fe\u6240\u793a\u5206\u6790ping\u7684\u8f93\u51fa\u3002<\/p>\n
$ ping <\/span>8.8<\/span>.<\/span>8.8<\/span><\/strong>\r\nPING <\/span>8.8<\/span>.<\/span>8.8<\/span> (<\/span>8.8<\/span>.<\/span>8.8<\/span>)<\/span> 56<\/span>(<\/span>84<\/span>)<\/span> bytes of data<\/span>.<\/span>\r\n64<\/span> bytes <\/span>from<\/span> 8.8<\/span>.<\/span>8.8<\/span>:<\/span> icmp_seq<\/span>=<\/span>1<\/span> ttl<\/span>=<\/span>48<\/span> time<\/span>=<\/span>61.7<\/span> ms\r\n<\/span>64<\/span> bytes <\/span>from<\/span> 8.8<\/span>.<\/span>8.8<\/span>:<\/span> icmp_seq<\/span>=<\/span>2<\/span> ttl<\/span>=<\/span>48<\/span> time<\/span>=<\/span>61.5<\/span> ms\r\n<\/span>64<\/span> bytes <\/span>from<\/span> 8.8<\/span>.<\/span>8.8<\/span>:<\/span> icmp_seq<\/span>=<\/span>3<\/span> ttl<\/span>=<\/span>48<\/span> time<\/span>=<\/span>61.6<\/span> ms\r\n<\/span>64<\/span> bytes <\/span>from<\/span> 8.8<\/span>.<\/span>8.8<\/span>:<\/span> icmp_seq<\/span>=<\/span>4<\/span> ttl<\/span>=<\/span>48<\/span> time<\/span>=<\/span>61.3<\/span> ms\r\n<\/span>64<\/span> bytes <\/span>from<\/span> 8.8<\/span>.<\/span>8.8<\/span>:<\/span> icmp_seq<\/span>=<\/span>5<\/span> ttl<\/span>=<\/span>48<\/span> time<\/span>=<\/span>63.9<\/span> ms\r\n<\/span>^<\/span>C\r\n<\/span>---<\/span> 8.8<\/span>.<\/span>8.8<\/span> ping statistics <\/span>---<\/span>\r\n5<\/span> packets transmitted<\/span>,<\/span> 5<\/span> received<\/span>,<\/span> 0<\/span>%<\/span> packet loss<\/span>,<\/span> time <\/span>4006ms<\/span>\r\nrtt min<\/span>\/<\/span>avg<\/span>\/<\/span>max<\/span>\/<\/span>mdev <\/span>=<\/span> 61.338<\/span>\/<\/span>62.047<\/span>\/<\/span>63.928<\/span>\/<\/span>0.950<\/span> ms<\/span><\/pre>\n\u800c\u5df2\uff01\u00a0\u6211\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u4eceLinux\u547d\u4ee4\u884c\u8bbe\u7f6e\u4f60\u7684Wi-Fi<\/strong>\u7f51\u7edc\u3002\u00a0\u4e0e\u5f80\u5e38\u4e00\u6837\uff0c\u5982\u679c\u60a8\u53d1\u73b0\u8fd9\u7bc7\u6587\u7ae0\u6709\u7528\uff0c\u8bf7\u5728\u4e0b\u9762\u7684\u8bc4\u8bba\u90e8\u5206\u5206\u4eab\u60a8\u7684\u60f3\u6cd5\u3002<\/p>\n<\/div>\n<\/div>\n\n\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.howtoing.com\/nmcli-connect-wi-fi-from-linux-terminal<\/a><\/p>\n\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/nmcli-4-linux-wifi.html<\/a>