Wifi

void linux安裝過程中如何連接wifi

  • August 29, 2019

在安裝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

再次刪除wlo1in/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

除了鍵入這兩行之外,我不需要做任何事情。

引用自:https://unix.stackexchange.com/questions/531071