Nextcloud Installation

  1. Prerequisites

    sudo apt install 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


docker compose exec --user www-data app php occ config:system:get  trusted_domains
docker compose exec --user www-data app php occ config:system:get  trusted_domains 0
docker compose exec --user www-data app php occ config:system:set  trusted_domains 4 --value=<hostnameorip>

Docker-Compose info

More Recent

Nextcloud Integration

Google Calendar

https://www.lifewire.com/how-to-sync-google-calendar-with-thunderbird-4691009

https://addons.thunderbird.net/en-US/thunderbird/addon/provider-for-google-calendar/?src=search