Install Nextcloud on Ubuntu 20.04

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

  1. install nextcloud from snap package.
    $ sudo snap install nextcloud
  2. Check nextcloud information.
    $ snap info nextcloud
  3. Get connections list
    $ snap connections nextcloud
  4. Setup fqdn hostname.
    $ sudo nextcloud.manual-install sammy password
  5. Setup fqdn hostname.
    $ sudo nextcloud.occ config:system:set trusted_domains 1 --value=example.com
  6. Conform domains.
    $ sudo nextcloud.occ config:system:get trusted_domains
  7. ufw & SSL (TLS) cert. setup.
    $ ufw allow 80
    $ ufw allow 443
    and then
    $ sudo nextcloud.enable-https lets-encrypt
  8. Finally check NextCloud functional.
    access Next Cloud !