Getting Started with NextCloud
About NextCloud
NextCloud is an open-source, on-premise file share and collaborative platform that allows you to save your files and access them across multiple devices such as PCs, smartphones, and tablets.
As a popular self-hosting platform that works much like DropBox, it allows you to seamlessly collaborate on various projects, manage your calendar, send and receive emails as well as make video calls.
Official Website: https://nextcloud.com/
Underlying OS: Ubuntu 20.04 (64 Bit)
Minimum System Requirements
1 vCPU Core
1 GB RAM
15 GB of Disk
Getting Started
Once the application is installed, you can visit the IP address of your server to configure the server
NextCloud Login: http://{your-server-ip}
During first login, please enter your desired username and password to setup NextCloud
Let's Encrypt Installation (SSL)
1) Run the following command to allow the connection via the domain example.com to your NextCloud
nextcloud.occ config:system:set trusted_domains 1 --value=example.com
Replace example.com with your domain
2) Enable SSL and request a Let’s Encrypt SSL certificate:
nextcloud.enable-https lets-encrypt
3) The following message will appear, confirm it by pressing y on your keyboard:
In order for Let's Encrypt to verify that you actually own the
domain(s) for which you're requesting a certificate, there are a
number of requirements of which you need to be aware:
1. In order to register with the Let's Encrypt ACME server, you must
agree to the currently-in-effect Subscriber Agreement located
here:
https://letsencrypt.org/repository/
By continuing to use this tool you agree to these terms. Please
cancel now if otherwise.
2. You must have the domain name(s) for which you want certificates
pointing at the external IP address of this machine.
3. Both ports 80 and 443 on the external IP address of this machine
must point to this machine (e.g. port forwarding might need to be
setup on your router).
Have you met these requirements? (y/n)
4) Enter your email address when asked to do so and confirm by pressing Enter:
Please enter an email address (for urgent notices or key recovery): user@domain.com
5) Enter the domain name that you have configured in a previous step for your instance (your.domain.com in our case), then confirm by pressing Enter:
Please enter your domain name(s) (space-separated): example.com
6) Your certificate is being requested and apache will be restarted. The following messages will appear, once the certificate has been obtained:
Attempting to obtain certificates... done
Restarting apache... done
Additional Notes
Run the following command to add an email address for the admin account or any user.
nextcloud.occ user:setting USERNAME settings email "EMAIL_ADDRESS"
Run the following command to reset password for admin account or any user.
nextcloud.occ user:resetpassword USERNAME
Important files and documents
Visit NextCloud official documentation site here: https://docs.nextcloud.com/
Updated on: 07/09/2020
Thank you!