wpa_supplicant talking directly to the interface.Execute:
How this works:~ # rfkill list ~ # rfkill unblock N ~ # cd /etc/wpa_supplicant ~ # nano wpa_supplicant.conf ~ # wpa_passphrase ESSID password >> /etc/wpa_supplicant/wpa_supplicant.conf ~ # rc-service wpa_supplicant start
rfkill list→ check for blocked interfaces before doing anything else.rfkill unblock N(N = the interface number rfkill reported) clears a soft block, which is the reason a perfectly good card sometimes just won't associate.- create
wpa_supplicant.confwith:ctrl_interface=/run/wpa_supplicantupdate_config=1 wpa_passphraseappends two lines to the file: a commented-out#psk=passwordline with your password in plain text, and the realpsk=line with the computed hash. delete the commented plain-text line and leave the hash — that's the one wpa_supplicant actually uses. deleting the wrong one breaks the connection, so double-check before saving.rc-service wpa_supplicant start→ brings the connection up under OpenRC.
if it doesn't associate after this, check dmesg for driver or firmware errors before touching the config again — half the "wpa_supplicant won't connect" cases on Gentoo are actually missing firmware, not a config problem.
this whole flow assumes you're managing the interface directly. if you'd rather not deal with wpa_supplicant.conf by hand, NetworkManager or iwd cover the same ground with less manual editing — worth it for a laptop that hops networks, less worth it for a box that connects to one AP and stays there.
Nenhum comentário:
Postar um comentário
Observação: somente um membro deste blog pode postar um comentário.