Techdee

How to Install ONLYOFFICE Docs on Debian and Ubuntu

ONLYOFFICE Docs is an open-source collaborative office suite. It contains three editors for text documents, spreadsheets, and presentations, fully compatible with Office Open XML formats and enabling collaborative editing in real-time. 

Features fo Onlyoffice

Onlyoffice Doсs Features The Following:

Let’s look at how to install ONLYOFFICE Docs Community Edition Linux version on Debian, Ubuntu, and derivates.

Hardware Requirements

Install ONLYOFFICE Docs using .deb package

Installation with Debian-based distributions also requires the presence of libstdc++6, NGINX, and PostgreSQL in the system.

There are other dependencies installed automatically when you use Ubuntu 14.04 LTS or later: 

Earlier distributions might require manual installation.

Step 1. Installing and configuring PostgreSQL

ONLYOFFICE Docs uses NGINX and PostgreSQL as databases. Dependencies found in the system repository will be installed automatically at ONLYOFFICE Docs installation using the apt-get install command.

To install the PostgreSQL version included in your version of Ubuntu, run the command:

Create the PostgreSQL database and user:

The created database must have onlyoffice both for user and password.

Step 2. Installing rabbitmq:

Step 3. Changing the port

If you want to change the port, you will need to change the default port for the debconf system, running the command:

You should write the port number instead of the <PORT_NUMBER> in the above command line.

Step 4. Installing ONLYOFFICE Docs

Add GPG key:

During the installation process, you will be asked to provide a password for the onlyoffice PostgreSQL user. Please enter the onlyoffice password that you have specified when configuring PostgreSQL.

Use the official documentation to install ONLYOFFICE Docs on CentOS with rpm package.

Alternative Ways of Installing ONLYOFFICE Docs

Installing ONLYOFFICE Docs using Docker. 

Installing ONLYOFFICE Docs from snap package. 

Snapd is included into most of modern distributions. You only need to either enable or install it with the commands:

Now ONLYOFFICE Docs can be easily installed using the following command:

Running ONLYOFFICE Docs 

Once the installation is finished,  you can easily run ONLYOFFICE Docs using a secure connection at http://localhost.

To use ONLYOFFICE Docs, you’ll need to integrate the suite with a document management system (DMS) or your own web application.  An integration example is provided by default on the ONLYOFFICE Docs welcome page:

Follow these instructions to equip your users with online editors and collaborate on text docs, spreadsheets, and presentations within the interface of your favorite platform. For example: 

In this article, we have described how the Community version is installed. You can use its basic editing tools as long as you respect the GNU AGPL v.3 licenses. 

In case you are seeking for a scalable solution with pro features, priority access to security fixes and regular updates as well as professional technical assistance, you can opt for ONLYOFFICE Docs Enterprise or Developer which can be embedded into your own solution and deployed under your corporate brand.

Follow Techdee for more!