Before you can change the cronjob with the terminal, select "cron"
#For Nextcloud to run smoothly, you will want to set up a cronjobsudocrontab-uwww-data-e#If asked, press “1” to use the nano editor (which is super easy to use)#Add the following line to your crontab file*/5 **** php -f /var/www/nextcloud/cron.php
Move Nextcloud data directory (useful if you have a second hdd / ssd)
WARNING: Make sure that the "data" folder in the target directory does not yet exists!
#Switch the default data-directory to the new mountpoint data-directorysudocp-a/var/www/nextcloud/data/./mnt/cloud/data/#Switch the following directory to change the value of "datadirectory" cd/var/www/nextcloud/config#Edit the config.php file sudonanoconfig.php
#Switch the following directory to set the value for "defaultapp" cd/var/www/nextcloud/config#Edit the config.php file sudonanoconfig.php#File: config.php / if files not exists it switches over to photos ans so on'defaultapp' =>'files,photos,calendar',
#After that restart the service apache2 sudoserviceapache2restart
Install OnlyOffice
Click on your user image
Click on Apps
Select Office & Text from the left menu
Download and enable the Community Document Server (Picture 1)
Download and enable ONLYOFFICE (Picture 2)
Click on your user image and go to settings
Make sure to update your Document Editing Service address (Picture 3)