Blog | Getting started | Infinite Scale

How to install ownCloud Infinite Scale on a Raspberry Pi in 4 easy steps

Want to install ownCloud Infinite Scale on a Raspberry Pi? While we would not suggest this for production, it is a nice way to get to know Infinite Scale.
install ownCloud Infinite Scale on a Raspberry Pi

With the ownCloud Infinite Scale 1.1.0 tech preview release is just out the door, people often ask if it is running on a Raspberry Pi as well. And the answer is yes, of course it does. While that would not be such a good idea for production, running ownCloud Infinite Scale on a Raspberry Pi is a great way to get to know the upcoming ownCloud Infinite Scale platform.

Keep it simple

Granted, ownCloud Infinite Scale can also be delivered through Docker, but why go complicated. Let us start it on the bare metal making use of the ARM build. It means there is just one file to download and start! With that, starting the ownCloud Infinite Scale tech preview on a Raspberry Pi is as easy as:

1. Install Raspberry Pi OS Lite and update it

Download the image, put it on a card (do not forget to enable ssh by creating an empty file on the boot partition) and boot the Pi.

Update it:
sudo apt-get update && sudo apt-get upgrade

2. Install etcd for registry

As I wanted to go with etcd instead of mdns for service registration, I had to install etcd:
sudo apt-get install etcd

But for some reason etcd needs some fixes that are described here: https://github.com/etcd-io/etcd/issues/10677#issuecomment-572911175

So, at the end of /etc/default/etcd, we need to add the line
ETCD_UNSUPPORTED_ARCH=arm

And finally start the etcd service:
sudo service etcd start

Note that this step is not neccessary, you could also go for the default, which is mdns. For that to work, you would need to make sure ahavi-daemon is installed and started.

3. Download the ownCloud Infinite Scale tech preview binary and start it

Get the ARM build from the download server:
curl https://download.owncloud.com/ocis/ocis/1.1.0/ocis-1.1.0-linux-arm --output ocis-1.1.0-linux-arm

and make it executable:
chmod 755 ./ocis-1.1.0-linux-arm

Now let’s create a little start script for ocis. I called it startocis.sh and it contains:

#!/bin/sh

# Let ocis know that etcd is used instead of mdns
export MICRO_REGISTRY=etcd

PROXY_HTTP_ADDR=0.0.0.0:9200 \
OCIS_URL=https://raspberrypi:9200 \
KONNECTD_TLS=0 \
./ocis-1.1.0-linux-arm server

Install ownCloud Infinite Scale on a Raspberry Pi

Then, make it executable by
sudo chmod 755 startocis.sh

And finally, execute:
sudo ./startocis.sh

4. Enjoy! You just installed ownCloud Infinite Scale on a Raspberry Pi

Now you can point your browser to https://raspberrypi:9200 and enjoy the new ownCloud Web frontend that comes with the ownCloud Infinite Scale tech preview….

Was that hard? Try that with a LAMP stack 😉

Klaas Freitag

About the Author

Klaas Freitag is since the beginning an essential actor in the ownCloud community. In the role of the CTO Klaas influences the development of ownClouds products and pushes the development of Infinite Scale.

Klaas Freitag elsewhere:

Klaas Freitag

February 1, 2021

Read now:

Understanding Web Applications in oCIS

Understanding Web Applications in oCIS

In today’s fast-paced digital world, web applications play a crucial role in enhancing user experience and functionality. Infinite Scale comes with a world-class web interface to manage file resources, but it can be extended by utilizing ownCloud Infinite Scale (oCIS) as a construction set for custom web apps.

read more