An open-source office suite known as ONLYOFFICE Docs is offered under the AGPLv3 license. It enables working with spreadsheets, presentations, office documents, and fillable forms that you may save as PDF files.
The suite's reliance on DOCX, XLSX, and PPTX as its primary file types ensures good MS Office file compatibility.
Collaborative document editing is one of ONLYOFFICE Docs' strengths.
The package includes built-in chat, review and track changes, real-time and paragraph-locking co-editing modes, and comments. The Jitsi plugin can also be added if you want to make audio and video calls inside the editors.
ONLYOFFICE Docs can be incorporated into your solution and integrated with a variety of cloud services, like WordPress, Nextcloud, Strapi, Redmine, Jira, and Moodle.
This article explains how to install ONLYOFFICE Docs on Ubuntu 20.04.
According to the official documentation, to install ONLYOFFICE Docs, you’ll need at least:
Dual-core 2 GHz CPU
2 GB of RAM
40 GB of storage
4 GB of swap
Using Docker to install the suite is the simplest option.
This approach is formally advised by the developers.
You can consult the Docker installation instructions if you don't already have it installed.
Once you have Docker's most recent version, you can use the following command to install ONLYOFFICE Docs and all of its dependencies:
sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
Use the -p option to modify the port if necessary.
Here is an illustration of how to change to port 8080:
sudo docker run -i -t -d -p 8080:80 --restart=always onlyoffice/documentserver
When ready, launch the welcome page by typing http://localhost into your browser's address bar.
There, the editors are included by default along with an integration example. This straightforward DMS is used to test the editors and determine how the integration may be carried out.
Storing Data Outside Containers
All the data is stored in the specially-designated directories called data volumes:
It's a good idea to mount those you need to your hosting machine. Use the -v option in the docker run command:
sudo docker run -i -t -d -p 80:80 --restart=always \
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
-v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver
If you delete the container or something goes wrong during the update, you wont lose your data. You will also be able to update your certificates without messing with the container.
Switching to HTTPS
The quickest approach to convert ONLYOFFICE Docs to HTTPS is to use certbot to automatically obtain Let's Encrypt SSL Certificates.
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
Run the ONLYOFFICE Docs Docker container. Specify ports 80 and 443 and set your domain name and email:
sudo docker run -i -t -d -p 80:80 -p 443:443 \
-e LETS_ENCRYPT_DOMAIN=yourdomain.com -e LETS_ENCRYPT_MAILemail@example.com onlyoffice/documentserver
Once done, ONLYOFFICE Docs will be available under https://yourdomain.com.
Integrating with Cloud Platforms
You can combine the editors with your favourite DMS/sync&share system after ONLYOFFICE Docs is installed.
You will want a connector—an integration app that acts as a link between the editors and the DMS system—to accomplish this.
On the official website, the developers offer integration programs that are ready to use. The WordPress integration is one of the most recent additions. Within the WordPress administrative dashboard, it enables administrators to collaborate and amend office documents:
It is also possible to add ONLYOFFICE blocks to the post to insert documents in the embedded mode:
You have now shown how to install ONLYOFFICE Docs on a PC running Ubuntu 20.04. You no longer need to switch between different applications to edit and co-author your office documents within the cloud platform you already use.
The developers also made it possible to install the suite on Ubuntu 18.04 and Ubuntu 20.04 for the 64-bit ARM architecture with the most recent upgrade of the editors (version 7.1). You can review the official instructions.
Please leave comments below, if you have any questions. Thank you.