wpa_supplicant example
- Make conf file(“testap” is SSID and “98765432” is password).
wpa_passphrase testap 98765432 > testap.conf
- Kill NetworkManager.
sudo systemctl stop NetworkManager
- Kill processes that could cause trouble.
sudo pkill wpa_supplicant sudo dhclient wlan0 -r sudo pkill dhclient
- Run wpa_supplicant(wlan0 is interface name) and acquire IP.
sudo wpa_supplicant -B -i wlan0 -c testap.conf sudo dhclient wlan0