Howdy, Stranger!

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

Advertise on LowEndTalk.com
Make your own cloud storage
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Make your own cloud storage

curtisgcurtisg Banned
edited January 2013 in Tutorials

Script: http://pastebin.com/g3gcSDz5 (updated)
Function: Install, configure all needed items to create your own cloud
Required OS: Ubuntu 10.x-12.x
Unsupported: Below Ubuntu 10.x

How to use (if not using root, add sudo before launching script_cloud.sh):
[email protected]:~# vim script_cloud.sh
(paste content)
ESC :wq
[email protected]:~# chmod +x script_cloud.sh
[email protected]:~# ./script_cloud.sh

(go get a coffee or something - it'll take a few minutes, keep putty running)

[email protected]:~# (install completed)

Credits: Me(@curtisg), owncloud(.org for creating the cloud web script there).

"Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning"
"A person who never made a mistake never tried anything new"
"Insanity: doing the same thing over and over again and expecting different results."

Comments

  • what's with the sleeps and clears

  • How to use (if not using root, add sudo before launching script_cloud.sh):
    [email protected]:~# vim script_cloud.sh
    (paste content)
    ESC :wq

    or

    wget -O script_cloud.sh http://pastebin.com/raw.php?i=S8jyp51h

    Credits: Me(@curtisg)

    What exactly did you do?

  • Is there an issue with it @gubbyte?

    You're free to modify it if you wish.

  • @kamalnasser said: What exactly did you do?

    Wrote the bash script :)

  • Why does it do apt-get update twice in a row?

    Why does it apt-get install everything one at a time?

    Why not use the newest version of owncloud?

    Doesn't "cp -r /etc/apache2/sites-enabled/000-default" need a from?

  • oops thats damian for noticing that!

  • and for CentOS?

    I'm looking for a sponsored KVM VPS, but I'm not in a hurry. Just want to hear what you might offer to me
  • @luis123456 I'll make one in a few minutes.

    Updated URL @Damian http://pastebin.com/CNxZhwy5

  • Why does it do apt-get update twice in a row?

    Why does it apt-get install everything one at a time?

    Why not use the newest version of owncloud?

  • cp -r 000-default /etc/apache2/sites-enabled/000-default
    

    why are you recursively copying a file?

  • Keep putty running or use screen ;)

    Interesting... very intersting. Thinking of buying 2 yearly Kimsufi's with 2TB and have them rsync for redundancy.

    Linux noob willing to learn.

  • @Damian - had problems with the latest version,

    • Updates twice to make sure it is all up to date (you're free to remove it if you wish)
    • Why does it? Because I made it do that?
  • @gubbyte said: why are you recursively copying a file?

    oops, another error, apologies.
    http://pastebin.com/g3gcSDz5

  • @curtisg said: had problems with the latest version,

    Wouldn't it best to determine why the current version isn't working?

    @curtisg said: Updates twice to make sure it is all up to date (you're free to remove it if you wish)

    I don't think I've had Debian doubt itself before. You can remove it; it's redundant.

    @curtisg said: Why does it? Because I made it do that?

    Well, at least you admit you don't know why, for a change. Carry on!

  • @Damian said: Well, at least you admit you don't know why, for a change. Carry on!

    lmao, what is your issue with doing it one by one. You're free to change it if you wish.

    • why are you copying files to /etc/ as non-root?
    • why are you restarting apache as non-root?
  • @curtisg said: lmao, what is your issue with doing it one by one.

    It's stupid. Put them all on the same line, there's absolutely no reason to do them one by one.

    I will pay $5 via Paypal to anyone who can tell me a good reason to apt-get things one by one.

  • @gubbyte said: why are you copying files to /etc/ as non-root?

    why are you restarting apache as non-root?

    why not? I ran it fine on a spare VPS without using sudo and it installed fine. (ubuntu 12.04)

  • @curtisg said: why not? I ran it fine on a spare VPS without using sudo and it installed fine. (ubuntu 12.04)

    you give normal users permission to write to /etc/? okay lol

  • @Damian that way when one things doesn't intall right it is easier to remove them. ? maybe?

  • @gubbyte said: you give normal users permission to write to /etc/? okay lol

    ever heard of logged in as root?

  • @curtisg said: ever heard of logged in as root?

    no sorry I haven't heard of your bad security practices

  • only install as root. @gubbyte lots of software you have to be logged in as root to install.

  • @24khost said: only install as root. @gubbyte lots of software you have to be logged in as root to install.

    installing it using sudo should be sufficient.

  • joepie91joepie91 Member, Provider

    @24khost said: @Damian that way when one things doesn't intall right it is easier to remove them. ? maybe?

    Except there's no error checking in this script whatsoever (protip to @curtisg: $?), so that point is sort of moot.

  • @gubbyte, I bet you if you create a standard OVZ container with ubuntu 12.04 image and you run this script while logged in as root, it won't prompt you for passwords or anything.

  • @curtisg said: @gubbyte, I bet you if you create a standard OVZ container with ubuntu 12.04 image and you run this script while logged in as root, it won't prompt you for passwords or anything.

    obviously, but what's your point?

  • @gubbyte said: obviously, but what's your point?

    if you don't have root perms then don't install it. Stop trying to cause shit, if I met for this to be installed by a non-root user I would of designed it for that.

  • @curtisg said: if you don't have root perms then don't install it. Stop trying to cause shit, if I met for this to be installed by a non-root user I would of designed it for that.

    hello, using sudo runs the command with root privileges

  • @curtisg said: How to use (if not using root, add sudo before launching script_cloud.sh):

    [email protected]:~# vim script_cloud.sh
    (paste content)
    ESC :wq

    Yeah, 'cause "wget -O script_cloud.sh http://pastebin.com/raw.php?i=g3gcSDz5" is too hard?

    Looking for support, sysadmin, etc. work: PM
    Working on VPSM
  • @DimeCadmium said: Yeah, 'cause "wget -O script_cloud.sh http://pastebin.com/raw.php?i=g3gcSDz5" is too hard?

    if you want to do that, go ahead. I do shit manually.

  • gubbytegubbyte Member
    edited January 2013

    @curtisg said: if you want to do that, go ahead. I do shit manually.

    then why did you create this script list of commands

  • I don't know the full story about this guy, I just see that he's trying and learning.

  • CoreyCorey Member, Provider

    @gubbyte said: then why did you create this script list of commands

    Shortcut.

    BitAccel - OpenVZ VPS / IRC,VPN,Anything Legal & Unrivaled Support!
  • @Corey said: Shortcut.

    but

    @curtisg said: I do shit manually.

  • CoreyCorey Member, Provider

    @gubbyte said: @Corey said: Shortcut.

    but

    @curtisg said: I do shit manually.

    You give him such a hard time.

    BitAccel - OpenVZ VPS / IRC,VPN,Anything Legal & Unrivaled Support!
  • Thanks for the script, I've been meaning to give OwnCloud another shot.

  • 24khost24khost Member
    edited January 2013

    foster his growth @gubbyte! give tips not put downs.

  • @Damian said: I will pay $5 via Paypal to anyone who can tell me a good reason to apt-get things one by one.

    Because it doesn't matter.

  • rskrsk Member, Provider
    edited January 2013

    So the guy @curtisg actually makes something that will make your life easy, and you just bash him ... no wonder all the good guys left LET.

    Relax.

  • @Corey said: You give him such a hard time.

    @24khost said: foster his growth @gubbyte! give tips not put downs.

    @rsk said: So the guy @curtisg actually makes something that will make your life easy, and you just bash him ... no wonder all the good guys left LET.

    Relax.

    Terribly sorry for advising @curtisg to not force the user to be logged in as root in order to run the script.

  • mikhomikho Member, Provider

    @gubbyte
    Perhaps a suggestion on how to do it instead of going butthurt over someone elses work?

    Give feedback instead of bashing. Makes this a better place.

    I can now be found at https://talk.lowendspirit.com
    or on twitter
    Come say HI! :)
  • Perhaps a suggestion on how to do it instead of going butthurt over someone elses work?

    Give feedback instead of bashing. Makes this a better place.

    but I did:

    @gubbyte said:

    @curtisg said: if you don't have root perms then don't install it. Stop trying to cause shit, if I met for this to be installed by a non-root user I would of designed it for that.

    hello, using sudo runs the command with root privileges

  • First don't say hello it is like a slap in the face.

    You need to re-read your comments.

  • @24khost said: First don't say hello it is like a slap in the face.

    You need to re-read your comments.

    Your silly arguments are worse than mine.
    I'm out of this thread, toodles.

  • If you can't operate or trust yourself as root, then you shouldn't be managing a server

  • @gubbyte my silly arguments?

    Lets look at your statement

    hello, using sudo runs the command with root privileges

    That is condescending

    installing it using sudo should be sufficient.

    Yep it is, but that is not the point. The point is it was designed to be run as root. Just cause you don't do it that way it is not his fault. Get over yourself.

    @joepie91 I haven't even looked at his script, I was trying to come up with some explanation. Explanation for which there isn't one.

Sign In or Register to comment.