📝How-to: use wpa_supplicant to connect to Wi-Fi

tags
#how-to
# Save passphrase
wpa_passphrase <ssid> <passphrase> | sudo tee /etc/wpa_supplicant.conf

# start wpa_supplicant
# -B = run daemon in background
wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp3s0
dhcpcd
# or dhclient wlp3s0