Tips on how to set up Ubuntu Server on a Raspberry Pi 4

I simply bought my palms on Raspberry Pi 4. As I needed to put in a 64 bit Working System, Ubuntu appeared to be the only option. Sadly, the official tutorial on putting in Ubuntu Server 21.04 on a Raspberry Pi didn’t work for me, so right here is how I proceeded.

Flashing the OS onto the micro SD card

From Linux

It's best to see the checklist of the connected disks. Notice the machine of the micro SD card (for instance: /dev/sdb) and exchange X within the following command:

$ sudo dd if=your_image.img of=/dev/sdX bs=4M conv=fsync

Lastly, you may eject the cardboard.

From macOS

It's best to see the checklist of the connected disks. Notice the variety of the micro SD card (for instance: /dev/disk2 is 2) and exchange N within the following instructions by it:

$ diskutil unmountDisk /dev/diskN
$ sudo dd bs=1m if=your_image.img of=/dev/rdiskN; sync
$ sudo diskutil eject /dev/rdiskN

Organising the OS

Then, SSH into the Raspberry Pi. Username: ubuntu, Password: ubuntu

$ ssh ubuntu@[IP_ADDRESS]

And observe the directions.

Updating the software program and firmware

This step is supposed to make sure that your Raspberry Pi runs the most recent software program and firmware:

$ sudo apt replace && sudo apt improve -y
$ sudo apt set up rpi-eeprom-update
$ sudo rpi-eeprom-update

Organising Wi-Fi

That is the place the official tutorial stopped working for me. Certainly, as an alternative of enhancing the network-config file, it is advisable to edit /and many others/netplan/50-cloud-init.yaml, reminiscent of observe:

            dhcp4: true
            non-obligatory: true
    model: 2
            non-obligatory: true
            dhcp4: true
                    password: "{{PASSWORD}}"

And, that’s all 🙂

Reboot your Raspberry Pi with sudo shutdown now -h and you might be able to rock 🚀

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *