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 50Next »
TommyT13 days 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...


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

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

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

    thursday73 months ago

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

    derekiswise4 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

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

    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.

    Enjoy.

    https://itunes.apple.com/us/app/owncloud/id543672169?mt=8

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

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

    francofool7 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
    vladcoolv8 months ago
    i will try it
    bugmeidareyou8 months ago
    The current location seems to be:
    wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
    ypelster9 months 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 ?
    lau1406 ypelster9 months ago
    have you tried a different ethernet port on your router?
    ypelster lau14068 months ago
    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 ?
    lau1406 ypelster8 months ago
    You can try it without the image, doing steps 1 to 5 in stead of using the image.
    ridopc9 months ago
    Thanks for the tutorial! I have used and modified to make it one in Italian!
    shywolf919 months ago
    Could this be used outside my local network?
    chizpa shywolf919 months ago
    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):
    http://www.whatsmyip.org/
    senavi9 months 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.
    ps0ram10 months ago
    very good idea and tech http://esyncsecurity.com
    Fabi2801 year ago
    What's the average speed for a file transfer?
    Wouldn't using nginx speed it a bit up?
    koff1979 (author)  Fabi2801 year ago
    The file transfer speed is about 5-10 seconds to upload a 10MB mp3 file and about 3 Minutes to upload a 350MB video file.

    Using nginx might speed it a bit but it seems to be going at an acceptable speed and I've been using apache for about 12 years so am just more use to it.
    Topssot koff197910 months ago
    A very, very, good guide. A few spelling mistakes, but with an existing Pi I was up in 20 minutes. I didn't notice any point about changing the default .htaccess in /etc/apache2/apache2.conf to allow overrides, then the if needed the .htaccess in the default directories. However, small, stuff easily solved.

    NOTE: The stupid captcha (why are we doing this?) won't show on FF in safemode so I went this route.
    I'm also curious about the pi's performance. Did you test this on the new 512 MB Pi or the older 256 MB?
    koff1979 (author)  unholythree1 year ago
    Its with the 256MB Pi the performance is good. The thing to point out is I'm the only user of it which means it doesn't have to multi task at any point.
    Topssot koff197910 months ago
    A very, very, good guide. A few spelling mistakes, but with an existing Pi I was up in 20 minutes. I didn't notice any point about changing the default .htaccess in /etc/apache2/apache2.conf to allow overrides, then the if needed the .htaccess in the default directories. However, small, stuff easily solved.
    hey, great tutorial! Thank you so much!

    I just installed transmission on my pi, because it has a nice webui for adding torrents.

    Now I have a remote cloud storage/torrent seedbox that I can add torrents to from my iphone. It wasn't that hard, I just ended up:
    - copying (-p to keep permissions/ownership) the whole /var/www/owncloud/username/data to a USB thumb drive.
    - changing transmission user to "pi" (superuser) and making it part of the www-data group.
    - changing permissions of progress, torrentwatch and /data/files folders to 770 (so the "pi" user can write to them from www-data group)
    -opened some ports, did a test run, put a slash after /transmission/web url and....voila!

    I'll post a tutorial about how to modify to add transmission later if anyone is interested...or even if they're not xD.

    Thanks again for tut.
    TXTCLA551 year ago
    Hi, I used your image file to set mine up. However I dont have my external drive just yet, is there a way I can test this part out without the drive?
    You can follow this guide to try out what you are asking here:
    http://www.techjawab.com/2013/09/how-to-setup-your-own-cloud-on.html
    abhishek238611 months ago
    If you already have a Raspberry Pi setup and don't want to replace the setup with a new image, rather want to install ownCloud over it then follow this guide here http://www.techjawab.com/2013/09/how-to-setup-your-own-cloud-on.html
    javl1 year ago
    It would be nice if you could explain some things a bit more, like:

    "In to that file we need to add the following
    extension=apc.so
    apc.enabled=1
    apc.shm_size=30"

    What are these values? It is always good to know what it is you're doing, instead of just following the steps blindly.
    ard10n1 year ago
    Barracuda
    greatpanda1 year ago
    FYI, your command line text in step 5 should read sudo gparted, not sudo gprarted.
    hot-chili1 year ago
    In response to adriancuervo:

    99.9% of the general population  has no idea what open source is or cares about the ideology. They are not developers and they just want something that works. My neighbors and friends have no clue about what open source is when I bring it up in a discussion, and they all seem to concur about  going with a product  supported by a company.

    BTW, although Real Time Logic could close the project, the software would still be available on the Internet for eternity. Just because software is old and not maintained does not mean it's not useful. I still prefer XP over Windows 8. In any event, I find it extremely unlikely that Real Time Logic would close the project.   Just because something is open source does not mean that it could not be shut down or maintained.

    Owncloud is extremely slow on the Raspberry Pi. You should check out the following benchmarking, which shows how BarracudaDrive outperforms all major servers such as Apache and Nginx by a large margin.

    http://barracudadrive.com/blog/2013/03/Apache-Nginx-Lighttpd-Monkey-and-BarracudaDrive-Speed-Test
    hot-chili1 year ago
    BarracudaDrive is much lighter, faster, and includes more features:
    http://store.raspberrypi.com/projects/barracudadrive
    Maybe, I did't check the features, but the point is: it's not Open Source. In other words, if in 2014 Real Time Logic closes this project, they kills you :) Open Source is the way in computer development.
    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
    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
    1-40 of 50Next »