NextCloud

From Indie IT Wiki

Documentation

https://docs.nextcloud.com/

https://github.com/nextcloud/nextcloud-snap/wiki

Installation

Yeah, you could go through the manual process of installing all the various many elements, or you could just use snap...

sudo install snapd
sudo snap install nextcloud
sudo nextcloud.enable-https lets-encrypt    (sudo nextcloud.enable-https self-signed)

That's it.

nextCloud on Ubuntu

How to install Nextcloud 15 on Ubuntu Server 18.04

Apps

OnlyOffice

https://www.onlyoffice.com/

https://www.onlyoffice.com/office-for-nextcloud.aspx

OnlyOffice Integration with NextCloud on Docker

Tasks

Once enabled, a new Tasks menu will appear in your Nextcloud apps menu. From there you can add and delete tasks, edit their title, description, start and due dates and mark them as important. Tasks can be shared between users. Tasks can be synchronized using CalDav (each task list is linked to an Nextcloud calendar, to sync it to your local client - Thunderbird, Evolution, KDE Kontact, iCal, … - just add the calendar as a remote calendar in your client). You can download your tasks as ICS files using the download button for each calendar.

https://apps.nextcloud.com/apps/tasks

Deck

Deck is a kanban style organization tool aimed at personal planning and project organization for teams integrated with Nextcloud.

  • Add your tasks to cards and put them in order
  • Write down additional notes in markdown
  • Assign labels for even better organization
  • Share with your team, friends or family
  • Attach files and embed them in your markdown description
  • Discuss with your team using comments
  • Keep track of changes in the activity stream
  • Get your project organized

https://apps.nextcloud.com/apps/deck

Move Data Directory

For example, to AWS EFS...

Mount your EFS in the folder /mnt/efs, then...

mkdir -p /mnt/efs/nextcloud
snap enable nextcloud
snap stop nextcloud
snap connect nextcloud:removable-media
nano /var/snap/nextcloud/current/nextcloud/config/config.php    ('datadirectory' => '/mnt/efs/nextcloud/data',)
snap disable nextcloud
rsync -av --delete /var/snap/nextcloud/common/nextcloud/ /mnt/efs/nextcloud/
chown -R root:root /mnt/efs/nextcloud/
chmod -R 0770 /mnt/efs/nextcloud/
ll /mnt/efs/nextcloud/
snap enable nextcloud
snap start nextcloud

https://help.nextcloud.com/t/snap-install-external-storage-local-configuration/1519/9

Key part of page above is the snap connect :-)

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

Copy Large Data

After you have transferred large files, you need to get NextCloud to scan the folder...

cd /var/www/nextcloud
sudo -u www-data php console.php files:scan --all

Full instructions here...

https://help.nextcloud.com/t/tutorial-how-to-migrate-mass-data-to-a-new-nextcloud-server/9418

CLI Commands

nextcloud.occ

Log Files

https://github.com/nextcloud/nextcloud-snap/wiki/Where-to-find-logs-of-components

Command Line OCC

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html

List User Accounts

sudo occ user:list

Reset Lost Admin Password

sudo occ user:resetpassword admin

https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html

Trusted Domains

Security in NextCloud has been tightened and so to allow all of your local network to access the server, you have to edit the config file on the command line and add the network IP address or range...

nano docker/stacks/nextcloud/data/config/www/nextcloud/config/config.php

'trusted_domains' => 
  array (
    0 => '127.0.0.1:4443',
    1 => '192.168.0.*',
  ),

Docker

Docker#NextCloud

Remove app and delete all its settings

https://help.nextcloud.com/t/remove-app-and-delete-all-its-settings/80808

https://help.nextcloud.com/t/how-to-remove-apps-from-the-terminal/63569