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
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

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 65Next »
DriesB4 days ago


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

The current location seems to be:

This did work

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

sudo tar -xjf owncloud-4.5.7.tar.bz2
BlueD2 GR0B13 days ago

This did not work

thursday77 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 ;)

TommyT128 days ago

Update: Owncloud 7.0.3 link to replace the broken

($ wget

and the obsolete


Now Use

$ wget

TommyT128 days ago

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

colinkhalid1 month ago

My Install failed with

pi@raspberrypi ~ $ sudo pecl install apc

Package "apc" does not have REST info xml available

install failed

mbalfour12 months ago

I'm having trouble with $ sudo pecl install apc

i get: $ sudo: pecl: command not found

any help??

remove the $

senavi1 year ago
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 ( 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 ( 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?

lionwang2 months ago

Banana PI is an Open Source hardware platform which was produced to run the 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.

TommyT13 months ago

Latest own cloud download link

to replace the broken

($ wget

Cole Pearson4 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.

    michaelmorar6 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!

    michaelmorar6 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!

    derekiswise7 months ago

    hello, the link on here for owncloud is broken. It is old and it isn't up anymore. Instead go to 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

    HackaCracka10 months ago


    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.

    OwnCloud does have an iPhone app as well as an Android. I know that the one for Android works very nicely and even has an instant upload feature.


    malakesher10 months ago

    When I create the admin account on owncloud and click finish set up the page say "Your web server is not yet properly setup to allow files synchronisation because the WebDAV interface seems to be broken." any idea what I did wrong?

    I ran into this problem the other night while building a Pi ownCloud box. Not knowing what this image looks like on the inside, my advice should be taken with a grain of salt, but what you can do (on a Debian-base such as Raspbian) is simply apt-get (or aptitude) install owncloud. This will give you a working, if old, version of owncloud. You can also go to the ownCloud web site link way below and add the repository to your sources.list and install the latest version. I can vouch for the Debian version working on the Pi as I finished it last night 2/11/2014 and it's working fine.

    Best of luck.

    francofool11 months ago
    It's not often I make a new account to leave a comment, but I felt I had to with this tutorial. Although I cheated by using the image you supplied, I really enjoyed the way you explained everything, as I am just sprouting out of my raspberry pi noob stage. Thanks for showing me how to get this up and running because now I have a 1T cloud at my disposal which is so awesome.

    To anyone else who is trying to keep the windows files system on their hard drive, I eventually just gave up on mounting it that way and did what the guide told me to do. I reformatted so 500GB were in NTFS and 500GB were in ext4. I went through several rewrites trying to keep it in windows and it just was not working. But reformatting and mounting the ext4 partition did the trick for me.

    Thanks again for the help, you did a great job
    vladcoolv12 months ago
    i will try it
    ypelster1 year ago
    Hi. I've downloaded the image and used win32diskimager to write it to SD card.
    Now I've inserted the card into PI, and plugged on (in that order) Ethernet and power.
    As I'm running headless and used to work with remote desktop connection up to now, I cannot see why, but I do not seem to have an Ethernet Connection. The controlling LEDs are off and I cannot see PI in my router as I used to. Any hints or ideas ?
    have you tried a different ethernet port on your router?
    yes, I've tried that. I have even borrowed a monitor, and pi doesn't seem to boot at all - I've attached HDMI cable, usb keyboard and usb mouse, then power. No signs of life from pi. On a different SD Card I have set up a system with NOOBS which runs just fine. Any Ideas ?
    You can try it without the image, doing steps 1 to 5 in stead of using the image.
    ridopc1 year ago
    Thanks for the tutorial! I have used and modified to make it one in Italian!
    shywolf911 year ago
    Could this be used outside my local network?
    yes, just enter your public ip instead of your local ip (local: 192.168.x.x), global ip varies unless you have static ip or are using no-ip.

    Be sure to forward port 22 for SSH access and port 80 for HTTP access.

    Here's a link (if You want to know your global ip right now):
    ps0ram1 year ago
    very good idea and tech
    Fabi2802 years ago
    What's the average speed for a file transfer?
    Wouldn't using nginx speed it a bit up?
    1-40 of 65Next »