#RaspberryPi – Update or setup Wifi configuration in Ubuntu

Buy Me A Coffee

Hi !

This is not a Raspberry Pi specific post, however I always forget how to this in Ubuntu, and I’m so used to raspi-config in Raspberry OS, that I may write this down.

Ok, so let’s setup the Wifi in Ubuntu. 1st let’s change the 50-cloud-init.yaml file.

 sudo nano /etc/netplan/50-cloud-init.yaml

Let’s edit the file and add the Wifi information.

 network:
     version: 2
     wifis:
         wlan0:
             dhcp4: true
             dhcp6: true
             optional: true
             access-points:
                 "<Wifi name>":
                     password: "<Wifi password>"

Important: use spaces, not tabs. That’s it!

Close, save and reboot !

Happy coding!

Greetings

El Bruno


My posts on Raspberry Pi ⚡🐲⚡

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware
Azure IoT


¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.