TL/DR: To enable the WiFi adapter for STK1AW32SC on Ubuntu 20.04 LTS:
- sudo apt install wireless-tools
- sudo apt install wpasupplicant
- sudo ip link set wlp1s0 up
- sudo -
- wpa_passphrase Fios-F2MZ0 >> /etc/wpa_supplicant.config
typeinyourpassphrasehere - exit
- sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
- sudo dhclient wlp1s0
Now, I want to use the WiFi but to do that I need to install the wireless-tools with:
sudo apt install wireless-tools
Now I just need to connect to my network. The initial round of tutorials I Binged all were based on ifconfig which wasn't installed. I found out that it was deprecated way back in 2012, so I guess it is time to learn how to use ip. Connect to WiFi network from command line in Linux is a good article that covers all the steps with the why and how and such. For me, I ran an >ip a to get my interface name:
lsmithmier@stick:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 60:f6:77:e4:63:76 brd ff:ff:ff:ff:ff:ff
4: enx9cebe8aee3cd: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 9c:eb:e8:ae:e3:cd brd ff:ff:ff:ff:ff:ff
inet 192.168.1.208/24 brd 192.168.1.255 scope global dynamic enx9cebe8aee3cd
valid_lft 82430sec preferred_lft 82430sec
inet6 fe80::9eeb:e8ff:feae:e3cd/64 scope link
valid_lft forever preferred_lft forever
and then brought the interface up with >sudo ip link set wlp1s0 up and confirmed that it was up with >sudo ip link show wlp1s0 :
lsmithmier@stick:~$ sudo ip link set wlp1s0 up
lsmithmier@stick:~$ sudo ip link show wlp1s0
3: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 60:f6:77:e4:63:76 brd ff:ff:ff:ff:ff:ff
Now that we have our interface up, we need to connect to it. That means using our passphrase which we need to set up by using wpa_passphrase which we need to install with >sudo apt install wpasupplicant and then we capture and encode our pass phrase:
root@stick:~# wpa_passphrase Fios-F2MZ0 >> /etc/wpa_supplicant.config
donotthinkiamgoingtoshowit
Now that we have that done, we can check to see that our link has been made by running >iw wlp1s0 link and confirming that we have a connection. Alternatively we can use the command from earlier >sudo ip link show wlp1s0
lsmithmier@stick:~$ ip link show wlp1s0
3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 60:f6:77:e4:63:76 brd ff:ff:ff:ff:ff:ff
Now that the link is made, we need to get an IP address using >sudo dhclient wlp1s0 and we are done!