To do this, there are some things you need to do:
1. Go to your wifi connection in the upper right of your screen and click on "Edit Connections".
2. Once in there, you need to click on your connected wifi ssid and select "Edit".
3. Go to the "General" tab and select "All users may connect to this network". (without this, the rest of this is moot and it will not work)
Ok, that is the only gui portion of this setup. Next:
4. Create the file /etc/wpa_supplicant.conf and add the content that follows:
ctrl_interface=DIR=/var/run/wpa_supplicant group=wheelIn the above code, you will input your ssid that you would like to connect to and also enter your password for the connection. If you are using an encryption method other than WPA/WPA2, then you will need to reference the man page for wpa_supplicant.conf. There are plenty of examples to help you out.
network={
ssid="your_connection_ssid"
scan_ssid=1
key_mgmt=WPA-PSK
psk="password"
}
After you have that file all setup, save it.
5. Issue the following command on the command line, as root or with sudo:
wpa_supplicant -B -i wlp4s0 -c /etc/wpa_supplicant.conf
You should see a message that says something to the effect that wpa_supplicant initialization was successful.
After you have completed those steps, go ahead and reboot the machine and watch the login screen. If all is correct and right with the configuration, you should see the wifi connection show as connected. You can test this by ssh'ing to the machine. Enjoy!
UPDATE: I took the opportunity to reinstall my Linux system to go from Ubuntu 16.04 LTS to Ubuntu 18.04. I know its a bit extreme to do a full re-install, but:
1. An distribution upgrade wasn't yet available
2. There wasn't anything I couldn't re-setup on the machine
3. Ubuntu moved away from Unity to the Gnome desktop, so I wanted everything clean and fresh.
I will say this though, auto-connection of the wifi (seeing as how you tell it how to connect during installation) just WORKS with Ubuntu 18.04. You just have to make sure to install the openssh-server package.
No comments:
Post a Comment