Which distro/image to choose to run Nextcloud on Raspberry Pi 3?

If I buy another PI my PI1 will be obsolete because I have no other use-case for it. I mean there are several other cloud services which are running on the pi1 but they donā€™t have so much features like nextcloud. Thatā€™s why I was asking about the benchmark for the pi1 :stuck_out_tongue:

If I have enough time I will play around a little bit. Maybe I can speed up my server configuration.

Idea: User your Pi1 to add a local mailserver and install nagios to monitor all your own devices and services.

I just happened to create a video yesterday on how to install Nextcloud on a Raspberry Pi 3 using UBOS, a rollling-release Arch Linux derivative Iā€™ve been working on that can install web apps like Nextcloud in a single command. UBOS has the goal to take the drudgery out of installing and maintaining web apps.

While the video is fairly long, thatā€™s because it goes through every single step from downloading UBOS, writing to SD Card, connecting wires, etc.

The actual Nextcloud install is just one command with a few answers to be provided. Hereā€™s a transcript.

> sudo ubos-admin createsite
App to run: nextcloud9 
Downloading packages...
Hostname (or * for any): ubos-raspberry-pi2.local 
App nextcloud9 suggests context path /nextcloud
Enter context path:
Any accessories for nextcloud9? Enter list: 
Site admin user id (e.g. admin): admin
Site admin user name (e.g. John Doe): admin
Site admin user password (e.g. s3cr3t): 
Site admin user e-mail (e.g. foo@bar.com): test@ubos.net

This will download Nextcloud, MySQL, configure Apache virtual host, create the Nextcloud config files etc. When the command has finished executing, that hostname will have Nextcloud running. (The hostname is the default mDNS/Avahi that UBOS advertises in this case; can be changed of course)

Full-stack software updates are also just one command, as is backup and restore.

Hereā€™s the link to the video: http://ubos.net/blog/2016/07/15/nextcloud-raspberry-pi3-install-video.html.

Let me know what you think!

3 Likes

Spending time checking how much faster an RPI1 is versus RPI3 is a complete waste of time. It is not recommended to run SQL databases on RPi1, itā€™s just way too slow.

@j12t it sounds like a nice script for UBOS. But on a RPi3, using Apache and MySQL is the slowest option based on the posts I have read in this forum and others. As mentioned above there are faster alternatives like NGINX and MariaDB.

I would love to see a guide on Nextcloud.com for noobs on how to install NextCloud on a Debian based system in such a way it will be light and fast. From what I understand I have to install PHP7, NGINX, MariaDB before installing NextCloudā€¦ but how to do all this, no idea.

@zilexa: all depends on what your goals are. Obviously any RPi is not suitable to run your companyā€™s Nextcloud installation on. For easy evaluation, however, why not? The problem is actually less the RPi than the SD Cards. They are slow, and have a habit of failing more often than one would like for valuable data.
Note that UBOS runs on all sorts of hardware, including x86 PCs and cloud. The one-command installation process is the same for all, see http://ubos.net/quickstart/ .
Of course, as usual, the installation process ā€“ UBOS or not ā€“ is the easy part; keeping a system up and running is harder and more time-consuming. Thatā€™s really where UBOS shines.

Carsten Rieger did a really good job in that way :

Have a look on his blog !

2 Likes

Now also Nextcloud 10, see http://ubos.net/blog/2016/11/09/ubos-beta9-available.html

Just wanted to update my thread.
Nextcloud is working well in version 11 on my Pi3 and I am just happy.

Now its your turn. Christmas is awaiting you, tinkers!

Hello Smaig,

Did you find any guide which explains how to install on a PI3: Jessie light with php 7.0.7-5 / nginx 1.10.1/ mariaDB 10.0.24 and Nextcloud 11?
I did read and work through a lot of guides (I am a noob when it comes to servers so I really need guides), but none of them had this particular combination as far as I could find.

Do you have any suggestions on which guides to combine otherwise?

I can recommend DietPi for running any server on the Pi. It is lightweight, easy to handle and already contains lots of optimizations for the Pi running on a SD card. For example keeping the logs in the ram to minimize write access to the SD card. And there is a preconfigured nextcloud.

Hi Evan,

I used the Carsten guide I quoted just above and adapted it a little bit to Debian but then, I chose to go back on Ubuntu 1) to be in the same environment as him and help to improve his tutorial 2) because of nginx issue (that could be fixed with a recent gcc version)

Hi, thanks for your reply!

What was the nginx issue that could be fixed with a recent gcc version (I have no idea yet what this meansā€¦)? And was it fixed by using ubuntu or is it now fixed in Debian/Raspbian? (if not in Debian, I guess i canā€™t use Raspbian + nginx + nextcloud if I understand correctly?)

Also, would you recommend to run Raspbian Jessie Lite or Ubuntu (Core?), for the fastest results? Or does it not matter that much maybe?

Thanks in advance!

So, if I understand correctly, you are now running a Pi3 with Ubuntu (server? core?) and php 7.0 / nginx 1.10 (1.11?) / mariaDB 10.0 (10.2?)?

I am double checking because then I can be certain it should be possible to get it to work :wink:

Also, please see my previous post which was meant as a reply to yours.

https://www.c-rieger.de/ is updated constantly to reflect the fastest and latest installs. Please check it out.
It is a bit of work but I have succesfully installed 3 Pi3ā€™s using this guide. Needless to say itā€™s the bible for Nextcloud on a Pi. Fast, stable and extreme secure.
My next project is to get this going on a 64bit OS. Today I noticed Suse is available. There goes 4 evenings :wink:

PS. The manual guides you to this distribution: https://wiki.ubuntu.com/ARM

Forked from the official NextCloud VM and as easy to setup, build from scripts: NextBerry
Performance tweaks will come next. Note that this is not as lightweight as the official SNAP which has more advantages on the low powered device!

Hello,

Most people get stuck in tutorials, and many people are not very technical.

To add to this conversation I would like to share my own image.

I created a Nextcloud 11 Rasbian 8 with PHP7 and HTTP2 image ready to download and copy to SD card for the Raspberry Pi.

Hopefully it will help more people use NC

https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/

1 Like

For all those who wants Nextcloud on RPi 3 we have developed an image based on the Nextcloud VM. You can download it here: https://www.techandme.se/nextberry-rpi/

Please report issues (if any) to this repo: https://github.com/techandme/NextBerry Thanks!

2 Likes

NextCloudPi was just updated to NextCloud 12

This release includes new extras, such as backups, online installation and automount

https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/

1 Like

This build includes:
For all those who wants Nextcloud on RPi 3 we have developed an image based on the Nextcloud VM. You can download it here: NextBerry RPI ā€“ Tech and Me

Please report issues (if any) to this repo: https://github.com/techandme/NextBerry Thanks!

Letsencrypt
Webmin
Http2
Mysql-server-5.5
Php-7
Fail2Ban
Auto SD resize upon boot
Choose to use HD/USB or SD card to hold /

And much more: NextBerry RPI ā€“ Tech and Me or https://github.com/techandme/NextBerry
This is a clean Rasbian image that installs Nextcloud from scratch using scripts.

I donā€™t know if this helps, but Iā€™ve been using nextcloud on a RPi3 for a while now, Iā€™m running it on Docker, you can use HypriotOS, which is a Docker-ready raspbian-based distro, it comes with only the necessary tools to run containers on it, and itā€™s quite lightweight compared to raspbian.

About the Nextcloud images, iā€™m using the Wonderfall/dockerfiles, bad thing is you have to build them yourself for ARM, though i have mine built already, so you an use them if you want to.