
Replace ESSID and Wi-fi passphrase with your own. Run the following command to create this file. wpa_nf is the configuration file describing all networks that the user wants the computer to connect to.

We need to create a file named wpa_nf using the wpa_passphrase utility.
#NMCLI CONNECT TO EDUROAM INSTALL#
Now install wpa_supplicant on Ubuntu 16.04. Step 3: Connect to Wi-fi network using wpa_supplicant Replace wlp3s0 with your own interface name. Then find your wireless network name by scanning nearby networks with the command below. If your wireless interface isn’t shown, perhaps you need to bring it up with the following command. You can also see that it’s not associated with any access point right now. Wlan0 is a common name, but my wireless interface is called wlp3s0. Run iwconfig to find the name of your wireless interface. sudo systemctl disable NetworkManager Step 2: Find your wireless interface name and wireless network name You also need to disable NeworkManager start at boot time by executing the following command. If you are using the desktop version of Ubuntu, then you also need to stop Network Manager with the following command, otherwise it will cause connection problem when using wpa_supplicant. To unblock it, use the following command: rfkill unblock wifi To check the status of wireless card, run rfkill listĪs you can see, my wireless card is blocked by software. Step 1: Enable wireless interfaceįirst, make sure your wireless card is enabled. Maybe someday Ubuntu will ship wpa_supplicant on a clean install.

If you don’t like this method, please don’t be mad at me. Please note that you will need to install the wpa_supplicant software before connecting to Wi-Fi, so you need to connect to Wired Ethernet first, which is done for just one time. A supplicant in wireless LAN is a client software installed on end-user’s computer that needs to be authenticated in order to join a network. wpa_supplicant is an implementation of the WPA supplicant component. In a modern home wireless network, communications are protected with WPA-PSK (pre-shared key) as opposed to WPA-Enterprise, which is designed for enterprise networks.
#NMCLI CONNECT TO EDUROAM HOW TO#
In this tutorial, we are going to learn how to connect to Wi-fi network from the command line on Ubuntu 16.04 server and desktop using wpa_supplicant.
