Problem with wireless networking for ubuntu server on a Raspberry pi 4

Barmann111

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?

Artur Meinild

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:

  1. that version: 2 had incorrect indentation,
  2. that you defined your AP under the ethernets section, where it should be under the wifis section, and
  3. that you missed the dhcp4: 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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Connect raspberry pi 4 with ubuntu server to wifi

From Dev

Wireless mesh networking on Raspberry Pi using batman-adv protocol

From Dev

Setup ubuntu server on Raspberry Pi 4 without keyboard

From Dev

wlan0 does not appear in Ubuntu server and raspberry pi 4

From Dev

Can't connect with SSH to Ubuntu server (20.04) on raspberry pi 4

From Dev

Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

From Dev

Raspberry pi (running ubuntu 14.04) citrix problem

From Dev

Raspberry pi (running ubuntu 14.04) citrix problem

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Ubuntu Server with Raspberry Pi Motion Camera

From Dev

Redistribute modified Ubuntu Server for Raspberry Pi

From Dev

Testing bcache with raspberry pi 4 on ubuntu

From Dev

Can you install Ubuntu on the Raspberry Pi 4

From Dev

KVM Bridge on Ubuntu 20.04 on Raspberry Pi 4

From Dev

How to set up WiFi on Ubuntu 19.10 Server running on Raspberry Pi 4?

From Dev

Unable to enumerate USB device on Ubuntu server 19.10 arm64 at Raspberry Pi 4B

From Dev

Game server on a Raspberry Pi

From Dev

Raspberry Pi Server

From Dev

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

From Dev

Shrinking Raspberry Pi SD .img via Ubuntu Server (cli)

From Dev

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

From Dev

Ubuntu Server 19.10 i386 for Raspberry Pi

From Dev

Direct remote access (ssh) with Raspberry Pi running Ubuntu server 20.04.1

From Dev

Periodic crash with Ubuntu Server 20.04 on Raspberry Pi 3 B+

From Dev

Raspberry Pi-4 firmware upgrade (eeprom), over UBUNTU 20.04

From Dev

Raspberry Pi 4 Ubuntu 19.10 cannot enable cgroup memory at boostrap

From Dev

Default login credentials are not working Ubuntu 20.04 on Raspberry Pi 4

From Dev

Connect to Raspberry Pi 4 with Ubuntu Core 18 via serial cable

From Dev

Automatic underclocking processor at high temperatures for raspberry pi 4 with ubuntu 20.04

Related Related

  1. 1

    Connect raspberry pi 4 with ubuntu server to wifi

  2. 2

    Wireless mesh networking on Raspberry Pi using batman-adv protocol

  3. 3

    Setup ubuntu server on Raspberry Pi 4 without keyboard

  4. 4

    wlan0 does not appear in Ubuntu server and raspberry pi 4

  5. 5

    Can't connect with SSH to Ubuntu server (20.04) on raspberry pi 4

  6. 6

    Ubuntu Server ARM or Ubuntu Server Raspberry Pi?

  7. 7

    Raspberry pi (running ubuntu 14.04) citrix problem

  8. 8

    Raspberry pi (running ubuntu 14.04) citrix problem

  9. 9

    Ubuntu Server with Raspberry Pi Motion Camera

  10. 10

    Ubuntu Server with Raspberry Pi Motion Camera

  11. 11

    Redistribute modified Ubuntu Server for Raspberry Pi

  12. 12

    Testing bcache with raspberry pi 4 on ubuntu

  13. 13

    Can you install Ubuntu on the Raspberry Pi 4

  14. 14

    KVM Bridge on Ubuntu 20.04 on Raspberry Pi 4

  15. 15

    How to set up WiFi on Ubuntu 19.10 Server running on Raspberry Pi 4?

  16. 16

    Unable to enumerate USB device on Ubuntu server 19.10 arm64 at Raspberry Pi 4B

  17. 17

    Game server on a Raspberry Pi

  18. 18

    Raspberry Pi Server

  19. 19

    How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

  20. 20

    Shrinking Raspberry Pi SD .img via Ubuntu Server (cli)

  21. 21

    How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

  22. 22

    Ubuntu Server 19.10 i386 for Raspberry Pi

  23. 23

    Direct remote access (ssh) with Raspberry Pi running Ubuntu server 20.04.1

  24. 24

    Periodic crash with Ubuntu Server 20.04 on Raspberry Pi 3 B+

  25. 25

    Raspberry Pi-4 firmware upgrade (eeprom), over UBUNTU 20.04

  26. 26

    Raspberry Pi 4 Ubuntu 19.10 cannot enable cgroup memory at boostrap

  27. 27

    Default login credentials are not working Ubuntu 20.04 on Raspberry Pi 4

  28. 28

    Connect to Raspberry Pi 4 with Ubuntu Core 18 via serial cable

  29. 29

    Automatic underclocking processor at high temperatures for raspberry pi 4 with ubuntu 20.04

HotTag

Archive