Taking a break from the Human Family and wanted to talk about installing Nextcloud on an Ubuntu-Server. Got the idea from a feed on Google News where this woman did just this. Her reason for doing this was being concerned about security as she is an author and didn’t want her work to become plagiarized. With the advent of AIchat scrapping information from the internet and then presenting it to a user she was concerned that storing her information on any cloud device could be vulnerable. Don’t share her concerns as first am not anywhere close to her abilities and secondly don’t feel like private cloud repositories are open to that type of scrapping. But she went into detail about creating a cloud storage system on her private network at home.

As I didn’t read all her articles on her installation and not sure that she selected putting the cloud app on a separate computer or ended up using a Virtual machine. But she did use Ubuntu-Server for her operating system. Her feelings were that it is an easy install and most people should be able to follow along. Again, didn’t read any one of her articles completely and some of them not at all and did not feel that this is something that a non techie would be able to accomplish. In my case am not a super high-tech person but have definitely created numerous web servers on virtual machines and while most of my installs are Ubuntu Desktop have worked with numerous servers installs. Even though I knew that the cloud app would work on the desktop OS decided that it would be fun working with the server OS. And her suggestion of using a virtual machine was right in my wheelhouse as having so many benefits the first being that I can always delete it.

So, after downloading the iso server file created a new virtual machine only changing the hard drive storage to 30GB, memory to 4096MB, and 2 processors. Then I just installed the OS using the default setup suggestions and only added ssh service. Using her suggestion for installing Nextcloud followed their instructions for setting up the web server which is extremely similar to what one would do if installing WordPress or Laravel as all 3 are written in PHP. Having worked with both felt comfortable but believe that for someone with no experience in this area it could be daunting. If I had tested out my new web server at this time, would have recognized the problem that ran into once Nextcloud was installed. Keep in mind that my local development environments use the desktop OS and simply opening up a browser and typing in localhost brings up the server test page. On a server that is not the case as there is no browser and unless one installs some GUI app there is only the command line.

After Apache2, PHP, and MariaDB were installed followed Nextcloud instructions for creating a database user and a database for Nextcloud which is the same for WordPress or Laravel; really any of the PHP frameworks that I have worked with. Then on my host machine downloaded the Nextcloud zip file and relearned how to check out the validity using sha256 finding it to be valid. The using ssh transfered the zip file to my host machine and unzipped the file which created a Nextcloud folder and moved that to /var/www. At this point the instructions stopped and was surprised that there wasn’t any mention of a config file. There is a config folder in the Nextcloud folder and a sample file. Can only guess that it can be used to modify the install but not required for default usage. Ended up leaving that part alone.

This is where it got troublesome for me as I now had to learn how to access the website from the host machine. Setting up the web server followed the instructions for setting up a virtual host and gave the host a name of guestserver.com. But now I needed to create a static IP. In the VirtualBox settings created a 2nd adapter as a Host Only. Then back in the guest server had to add that adapter. Most of the google searches that I found was for /etc/network/interface, but Ubuntu has changed that to /etc/netplan/ and there is a file in there that can be modified. Took me some time to come up with something that worked, and it was almost magic the final result but it got the job done. Did have to go back to my host machine (Windows) and add the static ip and guestserver.com to my host’s file.

At this point was able to open my browser on the Windows box to guestserver.com and complete the setup, which was adding a user, password, database-user, database-password, database-name, and host which I left as localhost. And after a few minutes the Nextcloud was running. Figured out how to change the weather from centigrade to Fahrenheit. After all this while pleased could not see why she went to all this trouble keeping her writings in this app as opposed to some type of external hard drive. She was keeping the cloud local to her network which does ensure security issues but hardware failures or catastrophes like a fire could shut her down completely. Whereas rotating hard drives stored offsite in a lockbox would sure offer much more protection and the cost is minimal.