Skip to content

How to install Nextcloud on Raspberry Pi using MMB

Last updated on April 5, 2023

Installing Nextcloud can take several hours even from advanced Linux users. In addition to Nextcloud, you need to install and configure PHP 7 with extensions, a web browser, and a database management system. Experienced users of course do not put all this from scratch, but use ready-made Docker containers. So, run a minimal Raspbian or Ubuntu image on your Raspberry Pi and install Git, Docker and Docker Compose:

sudo apt-get update
sudo apt-get install git docker-compose
curl -sSL https://get.docker.com | sh

Then clone the MMB repository with GitHub:

cd ~
git clone https://github.com/tolstoyevsky/mmb.git
cd mmb

In MMB there are two Docker files with everything needed to create and launch containers with MariaDB and Nextcloud. If you don’t understand Docker, then simply run the following commands:

sudo ./mmb.sh mariadb armhf
sudo ./mmb.sh nextcloud armhf

Make sure that port 3306 is not busy, then launch both containers with docker-compose:

cd mariadb
docker-compose up -d
cd ../nextcloud
docker-compose up -d

Now open in the browser http: // [ip-address of your Raspberry Pi on the local network]: 8001/nc

You did everything right if you see the Nextcloud administrator account creation page.

Published inLinuxOtherRaspberry Pi