ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NextCloud Automated Installation

    IT Discussion
    linux fedora installer nextcloud script bash selinux storage cloud storage
    12
    76
    11.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

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

      0_1518319199174_DeepinScreenshot_select-area_20180210211928.png

      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.

      popesterP 1 Reply Last reply Reply Quote 2
      • popesterP
        popester @scottalanmiller
        last edited by

        @scottalanmiller Thank you sir. I know what i will be doing on Monday.

        1 Reply Last reply Reply Quote 1
        • M
          mattbagan
          last edited by

          @scottalanmiller It took me 40 minutes from start to finish. I even added a 200GB lvm2. All done via cockpit. Nice job!

          scottalanmillerS 1 Reply Last reply Reply Quote 2
          • scottalanmillerS
            scottalanmiller
            last edited by

            Just added the Vultr guide, as well. One little modification and you don't even need to log in to run the script!

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @mattbagan
              last edited by

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

              M 1 Reply Last reply Reply Quote 0
              • M
                mattbagan @scottalanmiller
                last edited by

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

                scottalanmillerS 1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller @mattbagan
                  last edited by

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

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mattbagan @scottalanmiller
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • FATeknollogeeF
                      FATeknollogee
                      last edited by

                      For SSL: how do we add LE to the mix or did I miss that part?

                      M scottalanmillerS 2 Replies Last reply Reply Quote 0
                      • M
                        mattbagan
                        last edited by

                        @scottalanmiller any ideas how to change the maximum upload size from the web? Web interface says "missing permissions to edit from here"

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • M
                          mattbagan @FATeknollogee
                          last edited by

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

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @mattbagan
                            last edited by

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

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mattbagan @scottalanmiller
                              last edited by

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

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @FATeknollogee
                                last edited by

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

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @mattbagan
                                  last edited by

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

                                  1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @mattbagan
                                    last edited by

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

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mattbagan @scottalanmiller
                                      last edited by mattbagan

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

                                      black3dynamiteB scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • black3dynamiteB
                                        black3dynamite @mattbagan
                                        last edited by

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

                                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @mattbagan
                                          last edited by

                                          @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

                                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                                          • JaredBuschJ
                                            JaredBusch @black3dynamite
                                            last edited by

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

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post