Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
Automatically Install ownCloud on Debian 7/Raspbian
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Automatically Install ownCloud on Debian 7/Raspbian

rmlhhdrmlhhd Member, Provider
edited June 2014 in Tutorials

This tutorial is to show you how to install a ownCloud on Debian 7 automatically.

In order for this to work correctly you will need to follow these instructions.

You need to be running Debian 7 32bit or 64bit for this to work.

Please note that this is intended for a clean install as this will remove ALL existing MySQL databases, Nginx and Apache Configurations and Websites on your server.

First you need to download the script, this can be done by running:

Debian 7 - wget http://rmlh.me/dw/owncloud.sh

Raspbian - wget http://rmlh.me/dw/owncloud-rpi.sh

Once that’s downloaded you need to give it permissions to run, you can do this with:

chmod +x owncloud.sh

So now we’re ready to start, just enter:

./owncloud.sh

Now follow the on-screen instructions and ownCloud should work.

If you have any issues just comment on this post.

You can see the original post on my blog - http://rmlh.me/?p=34

Thanked by 1karjaj

Comments

  • Anyone tried this yet?

  • rmlhhdrmlhhd Member, Provider

    @george said:
    Anyone tried this yet?

    The script has been downloaded a few times so I guess it has. It's been tested multiple times on new and old VM's

  • georgegeorge Member
    edited March 2014

    @rmlhhd said:

    Would there be any problem if I changed the version inside the script (owncloud-6.0.1.tar.bz2 -> owncloud-6.0.2.tar.bz2)?

    Edit: or is this script made specifically for the 6.0.1 version?

  • rmlhhdrmlhhd Member, Provider

    @george said:
    Edit: or is this script made specifically for the 6.0.1 version?

    Changing the version should not cause an issue. I'll change the version shortly.

  • @george said:
    Edit: or is this script made specifically for the 6.0.1 version?

    you can download the web install scripts directly from owncloud website

    https://download.owncloud.com/download/community/setup-owncloud.php

    put this script into your public web directory, then, browse to it, following the instructor, you can install it without any problem.

    [“Insanity is doing the same thing, over and over again, but expecting different results.”]

  • rmlhhdrmlhhd Member, Provider
    edited March 2014

    @smile93 said:

    You could do but that doesn't create the config files for Nginx and install PHP along with MySQL that just install ownCloud. My script does everything.

  • Would this work on a RasPi? :)

    This signature wasted 121 bytes of your data allocation.

    https://nixstats.com/report/56b53d6465689e44598b4567

  • georgegeorge Member
    edited March 2014

    @0xdragon said:
    Would this work on a RasPi? :)

    I don't see a reason why it wouldn't. I might be wrong though.

  • rmlhhdrmlhhd Member, Provider

    @0xdragon said:
    Would this work on a RasPi? :)

    It should do, you may need to remove the dotdeb stuff from the script.

    I've created another script for RPi.

    http://rmlh.me/scripts/owncloud-rpi.sh

  • rmlhhdrmlhhd Member, Provider
    edited March 2014

    @0xdragon - Just tested it on an RPi and works perfectly. (Takes a while)

  • @rmlhhd said:
    0xdragon - Just tested it on an RPi and works perfectly. (Takes a while)

    Have you tried whatever there are any issues with installing the newer version or not?

  • rmlhhdrmlhhd Member, Provider

    @george said:

    Testing it now.

  • rmlhhdrmlhhd Member, Provider

    @george said:

    Works, I've updated both the normal and RPi scripts.

  • @rmlhhd said:
    Works, I've updated both the normal and RPi scripts.

    Thanks.

  • rmlhhdrmlhhd Member, Provider

    I've added the Raspbian script to this post, both Debian and Raspbian have been tested using these scripts and both working perfectly.

  • @rmlhhd said:
    I've added the Raspbian script to this post, both Debian and Raspbian have been tested using these scripts and both working perfectly.

    Wow! Thanks for doing this for me, you've made my life a lot easier! :)

    This signature wasted 121 bytes of your data allocation.

    https://nixstats.com/report/56b53d6465689e44598b4567

  • Can be use on openvz?

    wget http://freevps.us/downloads/bench.sh -O - -o /dev/null|bash && dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync; rm -rf test

  • cassacassa Member, Provider

    @roykem said:
    Can be use on openvz?

    Yep

    ik moet poepen

  • sc754sc754 Member

    I tried owncloud but it was just too buggy, hubiC on the other hand works beautifully!

  • BlazeMuisBlazeMuis Member
    edited June 2014

    Awesome script :)

    Had a 502 bad gateway error at first, but that has been solved quickly

  • rmlhhdrmlhhd Member, Provider

    @joodle said:
    Awesome script :)

    Had a 502 bad gateway error at first, but that has been solved quickly

    That may have been to do with the way that PHP5-FPM listens.

    I have seen recently after some updates that FPM isn't working on it's socket, you have to enter the IP and port.

  • @rmlhhd said:
    I have seen recently after some updates that FPM isn't working on it's socket, you have to enter the IP and port.

    I've run into issues after a php update (from dot.deb) where the permissions for the php-fpm socket were changed from 666 to 660, with the owner as root. Not sure if that's been changed or not though.

    As far as hard coding the latest version of owncloud, why not use:
    http://download.owncloud.org/community/owncloud-latest.tar.bz2

  • 404 Not Found

  • rmlhhdrmlhhd Member, Provider

    @XxNisseGamerxX said:
    404 Not Found

    Sorry about that, I changed the DNS. Try again shortly.

  • [email protected]:~# bash owncloud.sh
    owncloud.sh: line 2: $'\r': command not found
    owncloud.sh: line 6: $'\r': command not found
    owncloud.sh: line 7: $'clear\r': command not found
    owncloud.sh: line 8: $'\r': command not found
    
    *****************************************************
    WELCOME TO THE OWNCLOUD INSTALLATION SCRIPT
    -----------------------------------------------------
    
     This script will set up a ownCloud storage
                 server on your target server
    
    *****************************************************
    owncloud.sh: line 18: $'\r': command not found
    owncloud.sh: line 19: $'clear\r': command not found
    owncloud.sh: line 20: $'\r': command not found
    
    ****************************************************************
    Please enter the domain you would like to use to access ownCloud
    ****************************************************************
    
    ': not a valid identifierd: `d
    owncloud.sh: line 26: $'\r': command not found
    owncloud.sh: line 27: $'clear\r': command not found
    owncloud.sh: line 28: $'\r': command not found
    
    *******************************************************************************************
    THIS SCRIPT WILL REMOVE MYSQL, APACHE AND NGINX ALONG WITH THIER CONFIG FILES AND DATABASES
    -------------------------------------------------------------------------------------------
    
     If you do not want to continue with this script
                 you have 15 seconds to enter Ctrl + C to Cancel
    
    *************************************************************
    owncloud.sh: line 38: $'\r': command not found
    sleep: invalid time interval `15\r'
    Try `sleep --help' for more information.
    owncloud.sh: line 40: $'\r': command not found
    owncloud.sh: line 41: $'clear\r': command not found
    owncloud.sh: line 42: $'\r': command not found
    ] is not known. option '
    ] is not known. option '
    ] is not known. option '
    owncloud.sh: line 46: $'\r': command not found
    owncloud.sh: line 135: warning: here-document at line 47 delimited by end-of-file (wanted `EOF')
    [email protected]:~#
    
  • rmlhhdrmlhhd Member, Provider

    That's different, are you using Debian 7?

  • @rmlhhd said:

    Yes, Debian 7 64 Bit

  • rmlhhdrmlhhd Member, Provider

    Okay, I just tested the script myself and it seems to be corrupt.

    Please wait few minutes while I make a new one.

  • @rmlhhd said:

    ok

  • rmlhhdrmlhhd Member, Provider
Sign In or Register to comment.