Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

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):
root@server:~# vim script_cloud.sh
(paste content)
ESC :wq
root@server:~# chmod +x script_cloud.sh
root@server:~# ./script_cloud.sh

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

root@server:~# (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."

«1

Comments

  • what's with the sleeps and clears

  • How to use (if not using root, add sudo before launching script_cloud.sh):
    root@server:~# 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?

  • @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.

  • @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.

  • @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):

    root@server:~# 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?

Sign In or Register to comment.