User avatar
Thijxx
Posts: 86
Joined: Mon Oct 22, 2012 1:25 pm
Location: The Netherlands

OwnCloud tutorial

Sat Jan 26, 2013 8:22 pm

Pie should be shared! So sometimes I give someone a Pi as a present, packed with Raspbmc and ready to go.
I manage them using SSH over VPN. To learn more about my way with the Pi and VPN, check my post about it;
http://www.raspberrypi.org/phpBB3/viewt ... 31#p201431

I have this network of Raspberries and want to build a cloud of raspberries. You follow? :P

After some research it became clear to me I should give OwnCloud a try. I will also try SparkleShare (http://sparkleshare.org/) in the future.
Note: OwnCloud is a webservice running on a webserver, the webserver by default uses /var/www as the directory for data storage, you probably want this potentialy large directory on your external drive. Take this: http://forum.owncloud.org/viewtopic.php?f=3&t=20#p53
Always make a backup if you care about the current configuration of your Pi and brush your teeth before you go to bed.
This tutorial is based on the Raspberry Pi version B (thanks for the extra memory!) loaded with "2012-09-18-wheezy-raspbian".
Main source of information: http://www.instructables.com/id/Raspber ... pbox-clone
Apache2 can be replaced by Nginx. May help regarding performance.
Pre-installation
First we install Apache2 & PHP5
Manual: http://www.instructables.com/id/Raspber ... hp-Apache/

Then we install OwnCloud

# Downloading: (check for the lastest version here: http://owncloud.org/changelog/)

Code: Select all

wget http://mirrors.owncloud.org/releases/owncloud-4.5.1.tar.bz2
# Unziping

Code: Select all

sudo tar -xjf owncloud-4.5.1.tar.bz2
# Copy to the web root

Code: Select all

sudo cp -r owncloud /var/www
# Give the webserver permission to access the owncloud directory

Code: Select all

sudo chown -R www-data:www-data /var/www/owncloud/
# Take it to the browser
Surf to https://IPADDRESS/owncloud where you fill in the IP address of the Pi
Follow the directions on screen and your done.

If you get a security warning saying "Your data directory and your files are probably accessible from the internet.", change Apache2 security setting in /etc/apache2/sites-available/default
Here is how: http://forum.owncloud.org/viewtopic.php ... 3042#p6394
Notes:
Great interface. Clean & light.
There is an App store for OwnCloud, awesome plug-ins like Torrent client or Webmail. (Settings > Apps)
The maximum file size of 2GB makes me cry.
There is an App for iOS, it's works fine but no auto-upload (of all your crazy holiday pics. ).
I had some minor trouble with getting SSL to work, didn't fill in commonName field of the certificate.
You can sync your phone with it, contacts, calendar and more.
It should be easy to burn down your Pi using OwnCloud on a group of clients on the same time.
I did not test transfer speed or stability.
Here your can find the latest documentation: https://github.com/owncloud/documentation.
Should add Apache2 to boot sequence in order to be always-on.
Please feel free to comment!
Last edited by Thijxx on Mon Apr 28, 2014 8:00 am, edited 1 time in total.
Mimi: Where'd you come from?
Doyle: My mom and the authorities are still trying to figure that out.

Annie
Posts: 16
Joined: Sat Jul 14, 2012 2:13 pm

Re: OwnCloud tutorial

Sun Apr 27, 2014 10:57 pm

Thnx for the guide, it helped me alot.

Just one thing:

Check the following link for the correct version and download-link as it has changed since this guide was written: http://owncloud.org/changelog/

User avatar
Thijxx
Posts: 86
Joined: Mon Oct 22, 2012 1:25 pm
Location: The Netherlands

Re: OwnCloud tutorial

Mon Apr 28, 2014 8:03 am

Annie wrote:Thnx for the guide, it helped me alot.

Just one thing:

Check the following link for the correct version and download-link as it has changed since this guide was written: http://owncloud.org/changelog/
Thanks Annie! Made the change.

Bye the way; I don't use OwnCloud anymore because I don't like the 'does it all' approach and I use Seafile (http://seafile.com/en/home/) at the moment, a beautiful dropbox alternative.
Mimi: Where'd you come from?
Doyle: My mom and the authorities are still trying to figure that out.

Return to “Networking and servers”