NextCloud Automated Installation
-
Placeholder for Vultr automation guide.
The Vultr cloud is one of the better options for a hosted Nextcloud instance because of their low cost (and insanely popular) SATA based Storage Instances. If you can get one, they make for an extremely effective Nextcloud server, although they will be a little slow due to a lack of CPU and RAM resources, but they work just fine.
Vultr, as with most cloud computing providers, also has great options for more traditional instances that can add block storage additionally to the base instance - this is a very popular mode for larger or more performant Nextcloud installs. In either case, Vultr makes it super simple to do a Nextcloud install with essentially no interaction from you.
Now of course, we could just log in to our cloud instance as if it were any other server and run our script as I showed above. But with Vultr, we can make it so that no login to the server is ever needed, which is pretty cool.
Step One: On Vultr under "Deploy New Instance" go down to #5 "Startup Script" and select "Manage". Then select "Add Startup Script". Enter a name like "Nextcloud on Fedora Installer". Leave the type as "boot". Then replace the body of the script with the contents of this script, just copy and paste over what is there: https://gitlab.com/scottalanmiller/nextcloud_fedora_installer/raw/master/nextcloud_fedora.sh
Don't save that file quite yet, though.
Step Two: We need to remove the part of the file where it prompts for usernames and passwords and instead just set them manually.
So remove this section:
echo "Installing NextCloud 13 for Fedora 27 Server or Minimal" echo "If you have not made a DNS entry for the system," echo "it is recommended that you do so now." echo "" echo "Enter the database password for NextCloud: " read ncpass echo "Enter the root MariaDB user password: " read rootpass echo "Enter the name of your web admin user account (ex. admin)" read adminuser echo "Enter the initial password for admin" read adminpass
And replace it with this...
ncpass="mysecretdbpassword" rootpass="mysecretdbrootuserpassword" adminuser="admin" adminpass="myadminuserpasswordforthewebpage"
Step Three: Create your Vultr instance, either VC2 or a Storage instance. Select any Vultr datacenter location. Select Fedora 27 as your server type. Chose a minimum of 1GB of RAM, more is better. Remember to select your new "NextCloud on Fedora Installer". At step six add any keys that you have that you want. And add your system name at the bottom. Now you can "Deploy Now".
Step Four: Wait until the system returns an IP address for you. This will take a minute. You should get an email with this information as well as it populating on the Vultr console. Now, go get some coffee and a donut, you've got a little while to wait until the installation completes. Maybe take this time to add that new IP address to your DNS system so that you can use a fancy URL immediately once the install is done.
When it finally completes, just go to https://myfancyurl/nextcloud/ to use your new NextCloud install!
With this pre-stored script method, you can create a brand new NextCloud system, fully configured, in just minutes at any Vultr datacenter. Step One is only done the first time. After that, it's just steps two and three for as many NextCloud servers as you want to have. Vultr (and this script) really make Nextcloud that easy.
-
@scottalanmiller Thank you sir. I know what i will be doing on Monday.
-
@scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!
-
Just added the Vultr guide, as well. One little modification and you don't even need to log in to run the script!
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!
Awesome, thanks for testing it out. That's amazing.
I just did the Vultr based build using it as well, worked perfectly and only took maybe 15 minutes, I'd guess. But Vultr has updates already applied and you don't need to log in or do anything, so it is that much faster.
-
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!
Awesome, thanks for testing it out. That's amazing.
I just did the Vultr based build using it as well, worked perfectly and only took maybe 15 minutes, I'd guess. But Vultr has updates already applied and you don't need to log in or do anything, so it is that much faster.
Now I just need to make the switch from an ubuntu instance to fedora at work and we will be all set.
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!
Awesome, thanks for testing it out. That's amazing.
I just did the Vultr based build using it as well, worked perfectly and only took maybe 15 minutes, I'd guess. But Vultr has updates already applied and you don't need to log in or do anything, so it is that much faster.
Now I just need to make the switch from an ubuntu instance to fedora at work and we will be all set.
NextCloud works fine on Ubuntu, too. But I certainly prefer it on Fedora. Especially with what a good job Fedora does with things like keeping PHP up to date.
-
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!
Awesome, thanks for testing it out. That's amazing.
I just did the Vultr based build using it as well, worked perfectly and only took maybe 15 minutes, I'd guess. But Vultr has updates already applied and you don't need to log in or do anything, so it is that much faster.
Now I just need to make the switch from an ubuntu instance to fedora at work and we will be all set.
NextCloud works fine on Ubuntu, too. But I certainly prefer it on Fedora. Especially with what a good job Fedora does with things like keeping PHP up to date.
I only used it because at the time it was the only guide that worked on the first shot.
-
For SSL: how do we add LE to the mix or did I miss that part?
-
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
-
@fateknollogee said in NextCloud Automated Installation:
For SSL: how do we add LE to the mix or did I miss that part?
I was wondering that myself. I read the script before I ran it and I didn't see anything about the configuration commands.
-
@mattbagan said in NextCloud Automated Installation:
@fateknollogee said in NextCloud Automated Installation:
For SSL: how do we add LE to the mix or did I miss that part?
I was wondering that myself. I read the script before I ran it and I didn't see anything about the configuration commands.
Right now that’s done after.
-
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@fateknollogee said in NextCloud Automated Installation:
For SSL: how do we add LE to the mix or did I miss that part?
I was wondering that myself. I read the script before I ran it and I didn't see anything about the configuration commands.
Right now that’s done after.
Interesting, I am presented a certificate that I did not setup.
-
@fateknollogee said in NextCloud Automated Installation:
For SSL: how do we add LE to the mix or did I miss that part?
The pieces are there. It’s a stock Apache vhost at that point.
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@fateknollogee said in NextCloud Automated Installation:
For SSL: how do we add LE to the mix or did I miss that part?
I was wondering that myself. I read the script before I ran it and I didn't see anything about the configuration commands.
Right now that’s done after.
Interesting, I am presented a certificate that I did not setup.
Sure. But not one from LE. It’s the generic self signed one.
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
Send me the error. I’ll get it scripted.
-
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
Send me the error. I’ll get it scripted.
It's not some much of an error its a greyed out box in settings, under the file handling.
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
Send me the error. I’ll get it scripted.
It's not some much of an error its a greyed out box in settings, under the file handling.
If I remember correctly it has something to do with SELinux preventing you from changing that. It also can affect upgrading Nextcloud via web updater.
-
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
Send me the error. I’ll get it scripted.
It's not some much of an error its a greyed out box in settings, under the file handling.
Okay
-
@black3dynamite said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@mattbagan said in NextCloud Automated Installation:
@scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"
Send me the error. I’ll get it scripted.
It's not some much of an error its a greyed out box in settings, under the file handling.
If I remember correctly it has something to do with SELinux preventing you from changing that. It also can affect upgrading Nextcloud via web updater.
No, SELinux should not affect upgrading normally.