I am a long time Dropbox user who now out of privacy and economy reasons want to setup my personal nextcloud using a Raspberry Pi3, my PC is running Windows 10.
I want a cloud that my whole family can use around the globe (we live in multiple countries). Let my just say that I am a linux beginner, so I don’t have a lot of experience with linux operating systems.
I have now tried several times to get nextcloud running, but there is always something that doesn’t work. There are a lot of tutorials on the web, but most of them are for owncloud, some are very complicated and I don’t follow what’s going on (such as the tutorial from Carsten Rieger), and there are a lot of tutorials in German.
My most successful attempt was by following this: https://www.youtube.com/watch?v=pYo6seF29ts , which to a large extend follow the “Example Installation on Ubuntu 16.04 LTS Server” found in the nextcloud manual. Problem is that he uses Rasbian, meaning PHP5, and I couldn’t get SSL working after following his approach.
I very much would like to follow the nextcloud instruction manual and use Apache, MariaDB and PHP7, since I have the understanding that this is the recommended and best setup.
Problem 1: OS
I have been looking all over, and understand that I cannot use Rasbian since I want PHP7. I have tried Ubuntu 16.04 for raspberry pi 3, Ubuntu 16.04 Server for raspberry pi 3, but I can’t get them to boot.
I wanted to try Ubuntu MATE 16.04, but I doesn’t fit on my 8GB card even though it is supposed to.
I have tried to install Ubuntu Core 16 to be ready for the snap of nextcloud, but I need to import an SSH key to my account, and the instructions to do so is not valid for Windows.
From what I have read on this and other forums, the answer is basically to wait for the snap version of nextcloud for Pi3, since it is the easiest and best solutions for a simple setup. Is this correct?
Problem 2: Installation
If I can get an OS that supports PHP7 up and running, I think I could follow the nextcloud manual. But in the youtube video I previously followed, it is shown that one have to edit the apache2.conf file (have a look from 6:50 in the video), is this necessary when I would follow the manual correctly?
Before using the graphical installation wizard, the manual says that I should temporarily change some ownership by using “chown -R www-data:www-data /var/www/nextcloud/”. Is this a temporary execution, og do I need to reverse it somehow?
Problem 3: External HDD
I can’t find any instructions on how to choose what drive functions as the storage. How can I mount and set an external HDD as the storage on my Pi3?
Is there a recommended HDD, or a non-recommended one?
Problem 4: External Access
How can I access the cloud from anywhere, like my Dropbox?
Problem 5: Security
How do I best secure the cloud when it is to be used with external access?
From the nextcloud manual I understand that SSL is quite important.
I am guessing that the users’ passwords need to be strong (including the admin password I made at the start of the GUI wizzard).
Is the file encryption option important?
Is the passwords I need to enter during the setup important? If I remember correctly I needed to make a password for MariaDB and for MySQL (I thought that was the same thing).
Problem 6: File size
If I understand correctly the snap version has a file size limitation of 2GB, which to me is quite small.
I have some HD movies I have made that I would like to have in the cloud, and they are larger then 2GB.
If I do a manual installation, can I change this limitation to something larger?