So I recently bought a raspberry pi, and I am trying to install ubuntu server 20.04 on it. I can't seem to configure wireless networking. I've tried editing the 50-cloud-init.yaml file and it doesn't seem to work. I've googled my issue and haven't been able to fix it.
50-cloud-init.yaml looks as follows
network:
ethernets:
eth0:
dhcp4: true
optional: true
wlan0:
access-points:
"newgateway_5GHz":
password: "clearfield"
version: 2
When I run sudo netplan --debug try
I get the message /etc/netplan/50-cloud-init.yaml:12:13: Error in network definition: unknown key 'access-points'
I've edited the file in many different ways, I've used sudo nano /etc/netplan/50-cloud-init.yaml
to edit the file as well as after installing it, as well as opening the partition on the sd card and went to network-config and changed it that way.
I've googled my problem and I've had no, luck any ideas?
From the examples on netplan.io, I would assume your file should look something like this:
network:
version: 2
ethernets:
eth0:
dhcp4: true
optional: true
wifis:
wlan0:
access-points:
"my_ssid":
password: "my_password"
dhcp4: true
optional: true
3 obvious errors in your file was:
version: 2
had incorrect indentation,ethernets
section, where it should be under the wifis
section, anddhcp4: true
statement for your wifi.In addition, you might need to run these commands:
sudo systemctl enable wpa_supplicant
sudo systemctl start wpa_supplicant
sudo netplan generate
sudo netplan apply
I hope this works out.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments