Installing Nextcloud client on Ubuntu¶
Nextcloud does not have it's own desktop client. The ownCloud client is compatible with Nextcloud.
The ownCloud client on Ubuntu is outdated. The client will display an error:
Error downloading https://SERVERNAME/owncloud/remote.php/webdav/ - server replied: Forbidden (Unsupported client version.)".
To resolve the problem, install the ownCloud client by following the instructions here:
sudo wget -nv https://download.owncloud.com/repositories/desktop/Ubuntu_16.04/Release.key -O Release.key sudo apt-key add - < Release.key sudo sh -c "echo 'deb http://download.owncloud.com/repositories/desktop/Ubuntu_16.04/ /' > /etc/apt/sources.list.d/owncloud.list" sudo apt-get update sudo apt-get install owncloud-client
As of this writing, the ownCloud website links to the opensuse website for installing the owncloud client. The packages in the opensuse website do not work. See the forum and GitHub issue for more information.
Running occ tool¶
occ tool can be used for NextCloud administrative tasks.
The occ command can be run using the Web terminal. For example, to list the users:
sudo -u www-data php -f /app/code/occ user:list
Resetting admin password¶
To reset the admin password, run the following occ command using the Web terminal:
sudo -u www-data php -f /app/code/occ user:resetpassword admin
Managing deleted files¶
When you delete a file in Nextcloud, it is not immediately deleted permanently. Instead, it is moved into the trash bin. It is not permanently deleted until you manually delete it, or when the Deleted Files app deletes it to make room for new files.
To configure, how items are permanently deleted, configure the trashbin_retention_obligation parameter.
The parameter can be edited using the Web terminal and editing the file
Attaching external storage¶
Many VPS providers like Digital Ocean, Linode allow attaching external block storage to the server. NextCloud has a feature that allows mounting additional directories on the server as external storage.
Mounting an existing server directory as 'external storage' on NextCloud is currently not supported.
If the intent is to simply increase the amount of storage available to NextCloud (since you have run out of disk space in the default data partition), there are two options:
- Configure NextCloud to use an external object storage like Digital Ocean Spaces, AWS S3 etc
Configure Cloudron to store all of NextCloud's data in the external block storage. To achieve this, follow the guide for moving a single app's data directory to another location.
Moving NextCloud's directory entirely has the advantage that the iOS/Android app's Instant Upload feature uses this new disk.
NextCloud will not pick up files if they are added directly in the data directory of the user on the server. To make it rescan, open a Web terminal and run the following command:
sudo -u www-data php -f /app/code/occ files:scan <username>
To rescan external storage, use the
sudo -u www-data php -f /app/code/occ files:scan <username> --path=/<username>/files/externaltest
Fixing a broken install¶
The NextCloud App Store has a wide variety of apps that can be installed on top of NextCloud. NextCloud has no native sandboxing mechanism for plugins - if a plugin fails, it will bring down the whole installation. Plugins might also break an installation after a NextCloud upgrade. For this reason, we encourage carefully reviewing apps before using them.
To fix a broken installation, open a Web terminal and repair the app. Then run the following commands:
sudo -u www-data php -f /app/code/occ app:list # this lists the apps sudo -u www-data php -f /app/code/occ app:disable <app> # use this to disable the faulty app sudo -u www-data php /app/code/occ maintenance:mode --off
After running the commands, end the repair for the app to come up.
Collabora Online Document Editor¶
Collabora Online is a powerful online office suite that supports all major document, spreadsheet and presentation file formats, which you can integrate in your own infrastructure. Key features are collaborative editing and excellent office file format support.
See the Collabora App docs on how to setup NextCloud with Collabora Office.