How to Install ONLYOFFICE Docs on Ubuntu 20.04

ONLYOFFICE is an open-source office suite that contains three editors. These are usually for text documents, presentations, and spreadsheets. All the sliders are fully compatible with Office Open XML formats and can enable collaborative editing in real-time. Read and learn how you can install ONLYOFFICE docs with ease.

The Office Open XML formats can be integrated with ONLYOFFICE collaboration platforms: CRM, projects, document management system, and more. It is available for Linux, Windows, and macOS too. 

ONLYOFFICE is so versatile that you install ONLYOFFICE Documents Server on your local server and integrate your custom app with other third-party integration apps.

The ONLYOFFICE utility comes with a dual-license model. In fact, as long as the GNU AGPL v.3 licenses are respected, you will be able to use the ONLYOFFICE open-source solution on GitHub

A commercial license is required for bigger teams to use ONLYOFFICE as a part of their SaaS or on-premise service.

How to Install ONLYOFFICE Docs on Ubuntu 20.04

Now that you’ve got enough information, let’s learn how to install ONLYOFFICE on your Ubuntu system.

Prerequisite

Before anything else, you need to know the basic requirements for installing ONLYOFFICE. Make sure you’ve got all the following entities sorted:

  • Specs for CPU: dual-core CPU with 2Ghz or higher
  • Specs for RAM: At least 2 GB or higher
  • HDD Requirements: At least 40 GB of available/free storage
  • OS: 64-bit Debian, Ubuntu, or other compatible distribution
  • PostgreSQL Requirements: Version 12.9 or higher than that
  • NGINX Requirements: Version 1.3.14 or higher than that
  • RabbitMQ
  • Redis

How to Install ONLYOFFICE Docs on Ubuntu 20.04

Installation of ONLYOFFICE with Debian-based distributions requires the presence of libstdc++6, NGINX, and PostgreSQL. You can download them from their respective websites. Additionally, ONLYOFFICE Docs will automatically install dependencies found in the system repo.

Installing and Configuring the PostgreSQL Utility

Installing PostgreSQL is pretty simple. Launch the Terminal and invoke the following command:

install postgresql

If you wish to install some other PostgreSQL version, please see the official documentation for more detail on that.

Once installed, you have to configure and create the database and user. Run the following command to create the database, user and give the user the required privileges.

Input:

install PostgreSQL

Please note that you cannot use another database name than onlyoffice, so stick with that one, but you can use any password you wish.

Installing rabbitmq on Ubuntu

Get yourself inside the Terminal and run the following command to install rabbitmq. 

Input:

install rabbitmq

Some versions of Ubuntu require extra dependencies, nginx-extras. Install that using the following command:

install nginx-extras

Altering the Default Available ONLYOFFICE Docs Port

By default, ONLYOFFICE Docs will strictly listen to incoming requests at port 80. But you can change that if you need to use any custom port. For that, invoke the following command:

install ONLYOFFICE

Remember to use your port number instead of <PORT_NUMBER>

Note: You cannot change to port 443.

Next up, you need to add GPG key with the following command:

install ONLYOFFICE docs

After that, add the ONLYOFFICE Docs repository by invoking a command that looks something like this:

sort the onlyoffice repository and install onlyoffice docs

When installing ONLYOFFICE Docs on Debian distro, add the contrib component to /etc/apt/souce.list.

Now, update the package manager cache with the following command:

sudo apt-get update

Install mscorefonts on Ubuntu

To install mscorefonts on your Ubuntu system, simply pass the following command inside the Terminal:

install mscorefonts

Now finally, install ONLYOFFICE Docs with the help of the following command.

Input:

install onlyoffice

Here, you will be prompted to provide a password for the ONLYOFFICE PostgreSQL user. Input the password that you entered earlier.

After that is done, ONLYOFFICE Docs will be run as a usual process, and the package will be updated.

Afterward, you can enter localhost in your browser with the URL http://localhost. This will navigate you to the ONLYOFFICE Docs welcome page. There you will find further instructions. The instructions are based on how to enable document examples. Not just that, it speaks about integrating online editors into your web app using the API.

Installing the ONLYOFFICE Desktop Editor via the Snap Utility

If you are using Ubuntu, one of the easiest ways to install ONLYOFFICE Desktop Editors is to use the snap package. To install it, run the following command:

$ snap install [onlyoffice-desktopeditors]

Once the installation is over, you can launch the corresponding ONLYOFFICE Desktop Editors. Getting the job done is simple, just using this Terminal command:

$ snap run [onlyoffice-desktopeditors]

Installing ONLYOFFICE Desktop Editor via the Flatpak Utility

Just like snap, you can use Flatpak to install the desktop version of ONLYOFFICE. Flatpak allows you to install desktop apps on 28 Linux distros like Ubuntu, Fedora, Mint, Debian, etc.

Run the following command to install ONLYOFFICE:

install ONLYOFFICE docs on ubuntu

From there, you can launch it using the following command:

install ONLYOFFICE docs on ubuntu

Running ONLYOFFICE Docs using HTTPS

Typically, using HTTPS over HTTP is considered more secure as it uses a secured protocol using cryptography. By default, it uses HTTP; to switch to HTTPS, we will use Let’s Encrypt SSL Certificate using certbot.

Run the following command to install certbot:

install ONLYOFFICE docs on ubuntu

Once installed, run the script like this:

install ONLYOFFICE docs on ubuntu

Here use your email and domain instead of [email protected] and yourdomain.com. This script will install and create a letsencrypt.org certificate to your server and restart the NGINX service for the changes to save and effect.

Once all done, ONLYOFFICE Docs should be available at:

https://yourdomain.com

And that’s it for this article, we hope you now know how to install ONLYOFFICE on your Ubuntu system. As you can see, getting the job done is no big deal, provided you know the right procedures.

If this guide helped you, please share it.

Leave a Reply
Related Posts