Instructables
Picture of Raspberry Pi Owncloud (dropbox clone)
What I'm going to show you is how to build a your own personal dropbox like service using a raspberry pi and some software called OwnCloud. ownCloud gives you freedom and control over your own data. It's a personal cloud which runs on your own server.

If you don't want to go through the steps for downloading and setup up the software you can download the image I have setup from here. While I have done everything I can to check this is working it should be understood that you use at your own risk. If you do download the image you can skip to step 5. 




 
Remove these adsRemove these ads by Signing Up

Step 1: What you need

Picture of What you need
IMGP8155.JPG
IMGP8151.JPG
IMGP8157.JPG
A Raspberry Pi
An Usb External Harddisk or a USB Drive
An Enclosure for the Raspberry Pi and Hard Disk
Wireless network card (optional)




Step 2: Setting up the network download the software

Picture of setting up the network download the software
So first off we need to give the Pi a fix IP address we do this by editting the network interfaces file

$ sudo nano /etc/network/interfaces

Once open we need to make the file look like this (your IP address might be different)

auto eth0
iface eth0 inet static
       address 192.168.1.118
       gateway 192.168.1.1
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255

The file then needs to be saved by pressing ctrl o and ctrl  x to exit

once exited the networking need to be restarted

$ sudo /etc/init.d/networking restart

After that is done we need to update the Pi and download the software. This will take a little while to complete

$ sudo apt-get update

We are going to install Apache with SSL, PHP5, PHP APC which will load pages faster

$ sudo apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl4-openssl-dev php5-curl php5-gd php5-cgi php-pear php5-dev build-essential libpcre3-dev php5 libapache2-mod-php5 php-apc gparted
1-40 of 79Next »

I'm getting the error "chown: cannot access `/media/owncloud': no such file or directory" even though I've followed your steps to the T. Help is appreciated

the reference directory for the owncloud server is no longer there. (return error 404). with this info, if I had to guess, the owncloud directory is never created. Checkout the link below for updated installs.

http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud

when do you get this response?

I'm getting the same error, after attempting to partition the drive - it's likely that I'm doing that step wrong, but since there's no direction in the step, I don't know how to change that.

DbC116 days ago

thanks loads!! it works great! your tut has helped me so much.

:-)

gcheintz21 days ago

Thanks for the guide! I was thinking about buying a pi and doing this. Just one question, will it work equally well with say a banana pi or cubieboard? They seem to have a lot faster network speed and general specs.

Also, I didnt understand if this is like an independent OS or if you like install it on raspbian or whatever is the OS on the pi? I kinda would like to use owncloud on the pi together with OTHER usages too if possible.

For folks looking for a dead simple (and free) way to roll your own Dropbox, check out odrive. The SFTP integration gives you the Dropbox experience on anything that runs SSH which, of course, can include the Raspberry Pi.

http://blog.odrive.com/blog/2014/12/16/create-your...

Full disclosure: I work for odrive. The reason I work here is because I am passionate about this stuff. I fought hard for the SFTP integration because I think it will open up a whole new world of possibilities for your existing storage and devices, so I am trying to get the word out. Overlaying sync on top of SSH gives you that "Dropbox experience" against your own storage, pretty much instantly.

You are spamming for a product that doesn't even exist for linux? Fresh.

I realize that it will not be for everyone, and certainly isn't a 1-to-1 replacement for Owncloud, which is a great product. We are looking into client integration to Owncloud, as a matter of fact.

I am simply trying to offer up an easy way to achieve dropbox-like access to your own storage, because I know how difficult it can be for some, as evidenced in these comments.

A linux client actually does exist, it is just in private beta right now. Windows and Mac clients, however, are already available to the public for free.

Mhm. Quick feedback: you currently do not have the product you are trying to sell. This is a site for how-to's and instructables. You are not supplying it. This is spam, and not what I'm looking for.

Tony, when will the linux client be made available?

Hi Dominic,

We are shooting to have something out in March, if not sooner. Since the client will allow linking to not only SFTP but many other sources like OneDrive, Google Drive, Dropbox, etc.., there is a lot to work through, as you can imagine. You can keep up-to-date on our blog and forums, though.

Excellent. I use odrive to access multiple Google Drive accounts on my Windows PC and there are a few files that I would like to back up to Google Drive from my Raspberry Pi. If you need any beta testers for the Google Drive integration on Linux let me know! Thanks.

DriesB1 month ago

hello

I have a little problem, my raspbery won't recognize my Hard Disc?
What can I do about that?

sverkerw DriesB27 days ago

do you still have this problem? I'm no wiz, but maybe I can help.

The current location seems to be:
wget http://download.owncloud.org/community/owncloud-latest.tar.bz2

This did work

GR0B1 year ago
For a newer versions of owncloud use "4.5.7" instead of "4.5.1"

wget http://mirrors.owncloud.org/releases/owncloud-4.5.7.tar.bz2
sudo tar -xjf owncloud-4.5.7.tar.bz2
BlueD2 GR0B1 month ago

This did not work

thursday78 months ago

Is there any reason why I should use this guide, instead of using aptitude?

This is the new one. That instructable is really old

Version on rasp pi package manager is really old.

Call me late, but here's my two cents: the difference between apt-get and aptitude are mainly personal. I grew into Linux using aptitude and know all of the switches, ergo I convert the majority of the tutorials from apt-get as I come across them. I know that deep down there are a few rather significant differences in the way that the two applications operate, but I'm just not that concerned with them to know ;)

TommyT12 months ago

Update: Owncloud 7.0.3 link to replace the broken

($ wget http://mirrors.owncloud.org/releases/owncloud-4.5...)

and the obsolete

(https://download.owncloud.org/community/owncloud-7.0.1.tar.bz2)

Now Use

$ wget https://download.owncloud.org/community/owncloud-7.0.3.tar.bz2

TommyT12 months ago

usenet clients are not implemented. you can create and implement one using the Owncloud APIs'

colinkhalid3 months ago

My Install failed with

pi@raspberrypi ~ $ sudo pecl install apc

Package "apc" does not have REST info xml available

install failed

mbalfour14 months ago

hey,
I'm having trouble with $ sudo pecl install apc

i get: $ sudo: pecl: command not found

any help??

remove the $

senavi1 year ago
hi,
i am going to setup this with a sata hdd. i am currently using dropbox and it is the best cloud which i have used. Is there any specific differences between dropbox and owncloud?
Thank you.

4Chan / Obama (NSA) are checking out your pervy pr0n in Dropbox; Owncloud on your pi-box at home is YOURS and yours only.

village761 year ago
Hi, thanks for this, got it up and running nicely. But at the end of your project you say that it would be possible to access the Rpi remotely using noip. Would this allow me to use the Rpi from a remote computer as if I was sat in front of it? Or would this just be another way of access owncloud?

Following these instructions (http://www.stuffaboutcode.com/2012/06/raspberry-pi-access-from-internet-using.html) I've set up the no-ip account, got a host and set the client running on the Rpi (which has a fixed internal IP address) but all I'm seeing when I put in http address in the browser (http://myname.no-ip.org) is the home page of my router. I see from other posts I need to set up port forwarding but I'm a bit new at this and can't work out which port I need to forward. I guess I'm then forwarding that port to the fixed IP address of my RPi. Once I've done this, what shoud I expect to see? Grateful for your views

you would be seeing a basic file server, not a desktop.

Is there a way to install a usenet client?

lionwang4 months ago

http://www.bananapi.com http://www.banana-pi.com

Banana PI is an Open Source hardware platform which was produced to run the Elastos.org open source OS among others. Banana PI a dual core, Android 4.2 product which is much better than the Raspberry Pi.
The Banana Pi hardware runs Android, Debian Linux, Ubuntu Linux, OpenSuse linux and images that run on the Raspberry Pi and Cubieboard.
Banana PI has a Gigabit Ethernet port and a SATA Socket. It can run with Android 4.2.2 smoothly. The size of Banana PI M1 is about the same size as a credit card,
It can easily run games as it supports 1080P high definition video output. The GPIO is compatible with Raspberry Pi and can run Raspberry Pi images directly.

TommyT15 months ago

Latest own cloud download link

https://download.owncloud.org/community/owncloud-7.0.1.tar.bz2

to replace the broken

($ wget http://mirrors.owncloud.org/releases/owncloud-4.5...


Cole Pearson5 months ago

These first few steps are just turning the pi into a web server. You can watch a more in-depth tutorial on youtube on how to set up an apache server on a pi. www.youtube.com/watch?v=WgcNBjIJNYs

    michaelmorar7 months ago

    Thanks for a great little tutorial! Just a hint from my experience - say NO to "Enable internal debugging" when installing APC or the server doesn't work.

    Also - the Android App is excellent!

    michaelmorar7 months ago

    Thanks for a great little tutorial! Just a hint from my experience - say NO to "Enable internal debugging" when installing APC or the server doesn't work.

    Also - the Android App is excellent!

    derekiswise9 months ago

    hello, the link on here for owncloud is broken. It is old and it isn't up anymore. Instead go to http://owncloud.org/install/ and scroll down to the help testing ownclloud dailly build. select the tar file and use that file in place of the one listed here. it will be called owncloud_daily_master.tar.bz2 and is changed often. Hope this helps anyone who it having trouble.

    By the way thank you hackitbuildit for this tutorial. at first i used your image than i set up my own. This is very helpful

    HackaCracka11 months ago

    Hi.

    I really like the sound of this project, it seems like a great way of using dropbox, without leaving my files in someone else's care. Can anyone tell me if i would be able to use this with a smartphone (specifically an iPhone) to store photos and such like, much as i do with dropbox at the moment.

    1-40 of 79Next »