Nextcloud Installation

  1. Prerequisites

    sudo apt install -y openssh-server net-tools
    
  2. Install

    sudo snap install nextcloud
    
  3. Configure

    sudo nextcloud.manual-install <username> <password>
    
  4. Set Trusted Domain

    set it to the hostname that your server is at, or the ip it is at

    sudo nextcloud.occ config:system:set trusted_domains 1 --value=<example.com>
    
    sudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.0.219
    
  5. certificate

    open up some ports

    sudo ufw allow 22
    sudo ufw allow 80,443/tcp
    sudo ufw enable
    

    select which encryption method

    sudo nextcloud.enable-https lets-encrypt
    
    sudo nextcloud.enable-https self-signed
    
  6. Go to the website, sign on as admin, and continue configuring.

Warning

Hard to backup and manage files because snap data is stored in root.

Workaround:

https://github.com/nextcloud-snap/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition

External References

Nextcloud Integration

With Thunderbird

Google Calendar