💾 Archived View for leematthewjackson.space › learning › setup-nextcloud-for-your-agency.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

Setup Nextcloud for your agency

In this episode we look at how easy it is to create your own cloud platform to replace Google Workspace or Microsoft365 using completely free and open source software. Manage your own cloud for your web agency, reduce costs, take back control of your data and decentralise your business.

We will utilise Ubuntu 20.04 and “snap” for easy installation.

The video

You can follow along with the video on our PeerTube:

Trailblazer Tube (PeerTube instance)

Configure the OS

First we update the OS. We are logged in as ROOT and are using Ubuntu 20.04

apt-get update
apt-get upgrade

Next we add a SUDO user for when we install Nextcloud.

adduser lee

To give SUDO privillages:

usermod -aG sudo lee

Now we to activate the Firewall. We start by allowing SSH connections:

ufw allow OpenSSH

Then we enable the Firewall:

ufw enable

Installing NextCloud

Be sure to “exit” the log into your server as the user you created above. You will now need to use sudo in your commands.

As we will be using Snap to install and keep Nextcloud updated we must install it:

sudo apt-get install snapd

Then we can install Nextcloud:

sudo snap install nextcloud

Once complete set a username and password for your Nextcloud instance. (Replace with your own):

sudo nextcloud.manual-install lee p4ssw0rd

Now we setup the trusted domain we wish to use with Nextcloud. (Replace with your domain):

sudo nextcloud.occ config:system:set trusted_domains 1 --value=example.com

To check this has registered correctly use:

sudo nextcloud.occ config:system:get trusted_domains

Now we setup SSL using Let’s encrypt. To do that we need to open the relevant ports on the Firewall:

sudo ufw allow 80,443/tcp

Then we need to run Let’s Encrypt and carefully follow all the prompts.

sudo nextcloud.enable-https lets-encrypt