Please note that this guide will install a very old version of ownCloud. I recommend that you install Nextcloud instead, and you can follow this simple step-by-step guide that explains how it’s done.
In the previous entry in the PRISM Break series, I looked at how to set up a NETGEAR ReadyNAS 102 as a basic replacement for your current, commercial, privacy-repellant, cloud storage needs. But to really get things running, you’ll have to tinker a little bit more with the NAS box. In this entry, I’ll cover how you connect to your ReadyNAS device over SSH with root privileges, how you install and configure Owncloud and you set up your Android device to synchronize files with your new Owncloud account. The tutorial below has been tested on a NETGEAR ReadyNAS 102 and a NETGEAR ReadyNAS 312, and it’s very likely that you can follow this guide to accomplish exactly the same on other ReadyNAS versions as well. The only prerequisite is that your ReadyNAS device has version 6 of the firmware installed.
I’m assuming that you’ve completed all the steps required to configure your ReadyNAS unit and that it’s connected to your LAN, and that you have installed the latest version of the firmware.
- First we have to configure the NAS unit to accept SSH connections if you haven’t done this already. Log in to the ReadyNAS administration web site with your admin account, go to System -> Settings, and enable SSH. Personally, I’ve turned off everything except for HTTP, HTTPS and SSH, but if you are using any of the other enabled services, you should of course keep them enabled.
- The next step is to connect to the NAS device using SSH. Log in as root using the same password as the admin account you used to log in to the web site in the previous step.
- Install Owncloud with the following command:
root@vNAS:~# apt-get install owncloud. This will install a bunch of packages and might take a while depending on your internet connection.
- When the installation process eventually finishes, the last step is to log in to Owncloud. Go to https://192.168.5.135/owncloud/ (replace the IP address with the IP address of your own ReadyNAS unit) and follow the simple installation process. Note: After the Owncloud installation wizard completes, I’m not able to log on with Firefox, for some strange reason. This is unbelievably frustrating, but so far I’ve not been able to solve it. If you have the same problem, you simply have to use another browser to log in.
And there you have it, your very own, private cloud storage service. I did everything described above after having performed a factory reset of the NAS. It’s not necessary to do a factory reset to get everything to work, but you’re having problems and you want to do the same, have a look here for instructions on how to perform a factory reset. Please note the following, however, copied from NETGEAR’s factory reset instructions:
Warning: The factory default reboot process resets the storage system to factory settings, erases all data, resets all defaults, and reformats the disk to X-RAID2.
To sync files to and from Owncloud, simply download and install one of the sync clients. If you are using an Android phone, there’s an official Android client as well, but it’s not exactly getting great reviews. A better alternative might be FolderSync, an excellent application that let’s you synchronize files on your Android phone with Owncloud. FolderSync doesn’t support Owncloud per se, but Owncloud uses WebDAV, which is supported by FolderSync. The full version of the application costs a little money, but I strongly recommend that you buy it. I’ve been using FolderSync for a long time, first for syncing my files with Google Drive and now Owncloud and it has performed flawlessly.
If you decide to use FolderSync, there’s a couple of things you should know when setting up the WebDAV account: You find the WebDAV URL by logging in to the Owncloud web interface, clicking on your name on the top right and selecting Personal. The WebDAV URL can be found a bit down on the page. In FolderSync, select HTTPS as the protocol, make sure you allow self-signed certificates, enter the server address in the WebDAV URL in the server address field, and everything else in the (including the first / after the server address in the start folder field.
vegard at vegard dot netwith your input. You can also use any of the other points of contact listed on the About page.
I have been struggling for at couple of days getting ownCloud working satisfyingly on my ReadyNAS 312. You see, I have installed it three or four times in different ways and always ended up with the same problem. The upload via the mac client (as well as the connection over WebDav) was incredibly slow. Have you had that problem?
It turned out that I needed to disable WebDav on the server (as the documentation also mentions under Prerequisites in http://doc.owncloud.org/server/5.0/admin_manual/installation.html). So now it runs like a charm and I can confirm that it is not only on the 102 that the command line installation works perfectly.
I’m looking forward to see if I’ll be able to rid myself completely of Dropbox.
Thanks for a great Prism break series!
Sorry if this is a disappointment, but I still have the problem with slow uploads. Very slow in fact. But only when dealing with multiple small files. This is a very widespread problem as far as I can see, and I don’t see any solutions to it around. So for now, I have given up on ownCloud after having spent a couple of days trying to get it running.
I certainly hope you find a solution or satisfying setup! If you do, please do post an update.
The issue was recently closed as of 10 days ago, but I’m not sure what version of owncloud you could download to get the fix.
Currently the version of owncloud on my ReadyNas 316 is 5.07 and for some reason, I can’t get apt-get install to update it to 5.013 which is the latest (maybe there isn’t a version created for the readynas yet).
Unfortunately, a new release of owncloud doesn’t necessarily mean that it will be available on the ReadyNAS. The availability of new ownCloud versions is dependent on whoever is maintaining the ReadyNAS repositories, whoever that might be. If you are adventurous, however, it should be possible to download the ownCloud source and compile it on the ReadyNAS manually. I have no idea how to do this, though.
But to my mind Owncloud is still waaay too slow for regular use. Besides, that mac client presents as a veritable CPU hog, even in the most recent updates. And the greatest problem is that it produces so-called "conflicting" copies on a massive (and unnecessary) scale, which often leads to dataloss, since it swaps an older server-version of a file with the most recent version on the client.
I took the consequence of this and looked for alternatives. Lo and behold, I actually found something!
I have now been using Seafile for about a week and I absolutely love it. It is snap, reliable and exserts an only minimal strain on both my readynas and my laptop.
It’s clean, reliable, fast and light weight, all the things I missed (in my installation of) Owncloud, without lacking any of the fundamental feature set.
I would recommend Seafile for anyone in a snap. I can’t exactly say the same of Owncloud.
It will install 5.0.5 and that version works on my 314. But then I upgrade to 5.0.12 the browser just give me a blank page. Any thoughts?
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package owncloud
Any idea what the problem might be? I’m running a ReadyNAS Ultra 2.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Browser shows this message:
Can’t write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.
What should I try?
dpkg –purge –force-all php5-imagick
apt-get remove –purge owncloud
apt-get install owncloud
(secondly I did not set pw for mysql)
Checking your installation…
Here is your backup: /apps/owncloud/web/data/updater_backup/220.127.116.11-170829cf.zip
Please fix this and retry.
The update was unsuccessful. Please report this issue to the ownCloud community.
I was just wondering if you know how to get OwnCloud to use another volume for data than the one it is installed on. I have two volumes on my ReadyNAS, the default data-volume and a volume called cloud. I want OwnCloud to use the latter for data.
I really do hope you can help me. Last week I installed the latest Oc version on my RN106 and all okay. Within my home network I can access the RN.
However, after spending numerous hours trying to login with my ddns account for remote syncing I am getting the trusted domains error.
Obviously I have to change a few config.php files but everything I tried, no success.
Would you PLEASE be able to explain what I should do to solve my problem? Which config.php’s on which location?
Many thanks in advance!
Hope you can help me! Thanks.
or, in Firefox I get the message "you access the server from a not trusted domain, please contact your administrator. If you are an administrator of this instance, configure ‘the trusted domains’ setting in config/config.php".