---
title: Turning your Raspberry Pi 4 into an Edge Gateway (Part I)
description: With Ubuntu 19.10 installed on the Raspberry Pi 4, EdgeX Foundry can
  be installed in a single command
url: https://canonical.com/blog/turning-your-raspberry-pi-4-into-an-edge-gateway-part-i?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Galem KAYO](https://canonical.com/blog/author/galemk "More about Galem KAYO")

26 November 2019

# Turning your Raspberry Pi 4 into an Edge Gateway (Part I)

[Edge Computing](https://canonical.com/blog/tag/edge-computing)
[Edge gateway](https://canonical.com/blog/tag/edge-gateway)
[EdgeX](https://canonical.com/blog/tag/edgex)
[IOT Gateway](https://canonical.com/blog/tag/iot-gateway)
[Raspberry Pi](https://canonical.com/blog/tag/raspberry-pi)

---

Share the article

Developers get new opportunities to innovate with the emergence of edge computing. However, to unleash this innovation, form factors and software stacks suitable for hacking edge applications need to be made accessible. Canonical has enabled [Ubuntu on the Raspberry Pi 4](https://ubuntu.com/blog/ubuntu-19-10-delivers-kubernetes-at-the-edge-multi-cloud-infrastructure-economics-and-an-integrated-ai-ml-developer-experience) for this purpose. Furthermore,  popular [edge and IoT platforms are available and easily deployable from the Snap Store](https://snapcraft.io/iot).

When it comes to IoT edge, [EdgeX Foundry](https://www.edgexfoundry.org/) is a feature-rich platform for accelerated development. Not only is EdgeX Foundry open source, but it also puts a strong accent on interoperability. These factors combine to catalyse an ecosystem of components federating the IoT space. The platform thereby accelerates the development of IoT solutions across various industrial and enterprise use cases.

This blog showcases an entry-level stack for IoT edge hacking. Prerequisite for this tutorial is a [Raspberry Pi 4, with Ubuntu installed](https://ubuntu.com/download/raspberry-pi). We will see how to make an IoT edge gateway with EdgeX Foundry.

## Quick install of EdgeX Foundry with Snap

With Ubuntu 19.10 installed on the Raspberry Pi 4, [the EdgeX Foundry snap](http:// https://snapcraft.io/edgexfoundry) can be installed in a single command:

```
$ sudo snap install edgexfoundry
```

This simple command, installs all services required to run EdgeX. The services are also launched in the background. Services that come bundled with the edgexfoundry snap can be listed by issuing the *snap services* command.

```
$ sudo snap services edgexfoundry
```

The *snap services* command also shows if existing services are enabled and active.

## Enabling Services

Upon installation, the following [services](https://docs.edgexfoundry.org/Ch-APIReference.html) are automatically enabled:

* cassandra (persistent storage for Kong)
* consul (aka ‘the registry’)
* core-command
* core-config-seed
* core-data
* core-metadata
* edgexproxy
* kong-daemon
* mongod
* mongo-worker
* pkisetup
* sys-mgmt-agent
* vault
* vault-worker

The following services are *disabled* by default:

* support-notifications
* support-logging
* support-scheduler
* export-client
* export-distro
* device-virtual
* device-random

Any disabled service can be enabled and started as follows:

```
$ sudo snap set edgexfoundry support-notifications=on
```

## Installing the Management Client

EdgeX instances can be conveniently managed in a web browser from a desktop. Management tasks like pairing devices to a gateway, creating device profiles, or visualising data can be carried out through the web UI. The [edgex-ui-go](https://github.com/edgexfoundry/edgex-ui-go) snap delivers this interface. To install, run the following:

```
sudo snap install edgex-ui-go --channel=latest/beta
```

The web UI for gateway and device management will become available in the browser at  *http://localhost:4000*. The default user credentials are *username: admin /* *password:admin*.

## Provisioning the Edge Gateway

After login, the user will be redirected to the gateway management page. To provision the Raspberry Pi 4 device as a gateway, a user will add it through the web UI. A name, a description and the network IP address of the board (obtained via command: *hostname -I*) will be required.

## Resources

* **[EdgeX Foundry documentation](https://docs.edgexfoundry.org/index.html)**
* **[Snap store for IoT](https://snapcraft.io/iot)**
* **[Install instructions for Ubuntu on the Raspberry Pi 4](https://ubuntu.com/download/raspberry-pi)**
* **[Roadmap for official support for the Raspberry Pi 4](https://ubuntu.com/blog/roadmap-for-official-support-for-the-raspberry-pi-4)**

## Next steps

In the second part of this tutorial, the gateway will be connected to virtual devices. We will then explore both the [Southbound (from device to gateway), and the Northbound (gateway to cloud)](https://github.com/lf-edge/glossary/blob/master/edge-glossary.md#northbound-vs-southbound-and-eastwest)  data transmission through the gateway.

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/dataprivacy).

Sign up

## Share on

---

## Related posts

[### Introducing MicroCloud Cluster Manager](https://canonical.com/blog/introducing-microcloud-cluster-manager)

Canonical introduces the beta release of MicroCloud Cluster Manager, a new way to discover, organize, and operate your MicroCloud environments from a single, unified interface.

[Miona Aleksic](https://canonical.com/blog/author/mionaalex)

20 March 2026

[### Canonical at India Mobile Congress 2024 – a retrospective](https://canonical.com/blog/canonical-at-india-mobile-congress-2024-a-retrospective)

With an ambition to become Asia’s technology hub for telecommunications in the 5G/6G era, India hosts the annual India Mobile Congress (IMC) in Pragati Maidan, New Delhi. IMC...

[Serdar Vural](https://canonical.com/blog/author/serdarvural80)

28 October 2024

[### The waiting game is over. 5G is coming to the edge.](https://canonical.com/blog/omdia-report-5g-edge-computing)

Canonical and Omdia’s report reveals that 96% of CSPs will launch commercial 5G edge computing within 2 years. In this blog, we examine the drivers behind this optimism.

[Cedric Gegout](https://canonical.com/blog/author/cgegout)

30 September 2024

[### 5G mobile networks: A driver for edge computing](https://canonical.com/blog/telco-5g-mobile-networks-a-driver-for-edge-computing)

Recently, a striking report published by Omdia and Canonical highlighted that 86% of communication service providers (CSPs) are optimistic about the future of edge computing on...

[Serdar Vural](https://canonical.com/blog/author/serdarvural80)

26 September 2024
