How to connect to Wi-Fi from Terminal using wpa_supplicant on Void Linux

ip a

sudo touch /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf

sudo vi /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf

ctrl_interface=DIR=/run/wpa_supplicant

update_config=1

wpa_passphrase SSID PASSWORD >> /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf

wpa_supplicant -B -i wlp1s0 -c /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf

ping google.com

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store