Installing Ubuntu 20.04 LTS on a Raspberry Pi 4 (including Wifi)
This is a generic tutorial on how to install Ubuntu 20.04 LTS on a Raspberry Pi 4 including hooking it up to Wifi.
To give some context: the reason I wanted to set up the device is to run Gravio on it. Gravio is the IoT platform by Asteria Corporation, Japan. The vision of Gravio is to become an “Operating System for the Physical Space” by enabling everybody to create applications without any programming or software engineering knowledge.
Installing Ubuntu 20.04 LTS 64 bit on Raspberry Pi 4 (including setting up WiFi)
In order to get Gravio on the Raspberry Pi 4, we need to start with installing the 64 bit Ubuntu:
- Download the latest ARM 64 bit image from https://ubuntu.com/download/iot
- Write the downloaded image on an SD card (preferably a 32gb or less FAT32 formatted, fast speed) using, for example, the Balena Etcher which is available for Mac and Windows
- Put the flashed SD card into the Raspberry Pi and connect a monitor and keyboard. Note, the Raspberry Pi 4 has 2 HDMI ports.
- Power-on the Raspberry 4 and wait for it to boot. This process can take a long time, up to 10 minutes.
- Log in with username
ubuntuand change the latter to something you can remember
- Next you need to connect your RPI to a wifi network using
There is an example file available under
You probably want to enable the DHCP configuration and remove the static parts. Just copy the example to the
/etc/netplan/directory and edit it, so it may look similar to this:
"<your network ESSID>":
password: "<your wifi password>"
sudo netplan try and accept the configuration
8. You should now be connected to the internet
net-toolsby entering the command
sudo apt install net-tools(you may have to reboot before doing so). This allows you to find out the IP address using the command
ifconfigso you can log in from another computer using SSH.
Installing Gravio HubKit on the Raspberry Pi4
Now, that you’re up and running with Ubuntu 20.04 LTS, it’s time to install Gravio:
- Log into your Raspberry Pi and download the latest arm64 bit Gravio HubKit
- Ensure your dpkg packages are up to date:
sudo apt-get update
sudo apt-get upgrade
- Install Gravio:
sudo apt install ./gravio_arm64.deb
Now, reboot your Raspberry Pi and once it’s back, you will be able to connect to it using Gravio Studio.
Installing Gravio Studio on your PC/Mac and Creating a Gravio Account
Gravio Studio (Mac OS app, Windows app) is a free desktop app that is needed to configure the platform and put your IoT applications together. You can also subscribe to the sensor rental plan inside those apps if you like to rent hardware sensors.
After you have downloaded the application and started it, you will see a registration screen:
Sign up with your details and you will receive an e-mail with a code:
Now click on the + sign on the top right to add your Raspberry Edge node:
Now you can start configuring your node and build your applications.
If you like to order sensors, you need a subscription. Please check availability in your country before you order sensors.
The sensors are rented on a monthly basis. You can stop the subscription at any time, in which case you will have to send the sensors back.
Choose your subscription and follow your Operating System’s instructions on how to subscribe:
Once you are subscribed, you can visit https://www.gravio.com and use the login button at the top right to log in and visit the ordering page:
Once ordered, Asteria will ship the sensors and the USB dongle to you, ready to connect.
Note: If you have a RPI4 with 4GB ram, you may run into the issue of the USB ports not working. To fix this, access your SD card on your computer and add the line
to the file
It will limit the memory usage to 3GB but at least USB will work. This is supposed to be a temporary fix until Ubuntu fixes the kernel.