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

Yesterday I spent the evening installing and configuring Void Linux. I spent most of my time understanding how to connect to my Wi-Fi network from the terminal using wpa_supplicant. I had a lot of different problems then in the end, I was able to solve this problem. I have collected all the necessary steps to connect to Wi-Fi from the terminal using wpa_supplicant in this Medium blog post.

  • The first thing we have to do is to check the name of our interface. Run this command:

In my case, “wlp1s0” is the name of the Wi-Fi interface.

  • Now you have to create a configuration file to connect to Wi-Fi, execute the following command:
  • Now we have to add two lines to the file we have just created. Run the following command:
  • Write the following lines into the file and then save it:
  • You have to add the information about your wireless network to the file we have just created. Run the following command:
  • Run this last command:
  • To check your connection run:

--

--

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