Welcome to my Education Lounge

Where I write about security and tech how-tos

Home
2 September 2018

Creating a Nextcloud server on Linode

Based off Ubuntu 16.04.4 LTS linode

Create a Linode instance running Ubuntu 16.04.4 LTS by following the guide here. If you have domain go ahead and set that up for this new instance following the instructions here. (I highly recommend this step for public use) We will be downloading Nextcloud using snap so run the following:

sudo snap install nextcloud
snap changed nextcloud
  1. Once we verify that your setup ran without a problem we are going to set up an admin account by running:

sudo nextcloud.manual-install <username> <password>

  1. You should then see another verification that Nextcloud was installed successfully. If you didn’t add a domain in step 2 then skip this step. Add your custom domain to the trusted list by typing:
sudo nextcloud.occ config:system:set trusted_domains 1 --value=<domain-name>
sudo nextcloud.occ config:system:get trusted_domains
  1. Upon verification that your domain has been added, restart your server by running:

sudo snap restart nextcloud

I want to add SSL?

Ah glad you mentioned it let’s set that up too shall we? Run the following:

sudo nextcloud.enable-https lets-encrypt
y
<email-address>
<domain-name>

Once you get a confirmation you are done! To logon either put in the ip-address of your server or your domain. Welcome to the world of Nextcloud, enjoy and be great!

First published on Medium

tags: Ubuntu - Linode - Nextcloud