Wifi
void linux安裝過程中如何連接wifi
在安裝Void Linux時,我按照我用這個命令複製的這個例子
/etc/wpa_supplicant/wpa_supplicant.conf
cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
然後
wpa_supplicant-wlo1.conf
像這樣編輯:ctrl_interface=/run/wpa_supplicant ctrl_interface_group=wheel eapol_version=1 fast_reauth=1 update_config=1 # Add your networks here. network={ ssid="MYSSID" key_mgmt=NONE wep_key0="MYPASSWORD" wep_tx_keyidx=0 auth_alg=SHARED }
刪除現有
wlo1
的/run/wpa_supplicant/
並執行以下命令:wpa_supplicant -i wlo1 -c /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
並由
dhcpcd
_sv restart dhcpcd
但它沒有用!然後我刪除了這部分:
network={ ssid="MYSSID" key_mgmt=NONE wep_key0="MYPASSWORD" wep_tx_keyidx=0 auth_alg=SHARED }
從
wpa_supplicant-wlo1.conf
並執行:wpa_passphrase MYSSID MYPASSWORD >> /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
再次刪除
wlo1
in/run/wpa_supplicant/
並執行相同的命令:wpa_supplicant -i wlo1 -c /etc/wpa_supplicant/wpa_supplicant-wlo1.conf
並重新強調
dhcpcd
,它也沒有工作!如何連接?
這有效:
wpa_passphrase SSID PASSWORD >> /etc/wpa_supplicant/wpa_supplicant-wlo1.conf wpa_supplicant -B -iwlo1 -c/etc/wpa_supplicant/wpa_supplicant-wlo1.conf
除了鍵入這兩行之外,我不需要做任何事情。