Installing Document Server for Linux on Debian, Ubuntu and derivatives – ONLYOFFICE

Introduction

Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.

Functionality

  • Document Editor
  • Spreadsheet Editor
  • Presentation Editor
  • Documents application for iOS and Android
  • Collaborative editing
  • Hieroglyph support
  • Support for all the popular formats: DOC, DOCX, TXT, ODT, RTF, ODP, EPUB, ODS, XLS, XLSX, CSV, PPTX, HTML

This guide will show you how to install Document Server Linux version to your machine.

System requirements

  • CPU
    dual core 2 GHz or better
  • RAM
    2 GB or more
  • HDD
    at least 40 GB of free space
  • Additional requirements
    at least 4 GB of swap
  • OS
    64-bit DebianUbuntu or other compatible distribution with kernel version 3.13 or later
  • Additional requirements
    • PostgreSQL: version 9.1 or later
    • NGINX: version 1.3.13 or later
    • libstdc++6: version 4.8.4 or later
    • Redis
    • RabbitMQ

Installing Document Server

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

All the necessary instrutions for these components and their dependencies installation can be found at their official websites.

There are other dependencies installed together with Document Server:

  • libcurl3
  • libxml2
  • supervisor
  • fonts-dejavu
  • fonts-liberation
  • ttf-mscorefonts-installer
  • fonts-crosextra-carlito
  • fonts-takao-gothic
  • fonts-opensymbol

These dependencies are installed automatically when you use Ubuntu 14.04 LTS or later. Earlier distributions might require their manual installation.

Installing dependencies

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

Installing and configuring PostgreSQL:

Install the PostgreSQL version included in your version of Ubuntu:

sudo apt-get install postgresql
If you want to install some other PostgreSQL version from the PostgreSQL Repository, please see the official PostgreSQL documentation for more detail on that.

After PostgreSQL is installed, create the PostgreSQL database and user:

The created database must have onlyoffice both for user and password.
sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;"
sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"

Installing redis:

sudo apt-get install redis-server

Installing rabbitmq:

sudo apt-get install rabbitmq-server
Ubuntu distributives prior to 14.04 LTS might require some other dependencies to be installed.

Ubuntu 18.04 will require to install nginx-extras. This is done using the command:

sudo apt-get install nginx-extras
Changing the default Document Server port

By default Document Server listens to the incoming connections using port 80. Starting with version 4.3 you can change the port for Document Server if you plan to use it instead of the default one.

If you are going to change the default port, make sure that it is open for the incoming/outgoing connections. See the complete list of the ports used by Document Server.

To do that you will need to change the default port for the debconf system, running the command:

echo onlyoffice-documentserver onlyoffice/ds-port select <PORT_NUMBER> | sudo debconf-set-selections

Please write the port number instead of the <PORT_NUMBER> in the above command.

WarningIf you want to change the Document Server protocol to HTTPS, do not change the port to 443, but use this instruction instead.

There are additional options which can be used for Document Server installation. Please read this section for more information on them.

After that you can continue with Document Server installation.

Installing Document Server

Add GPG key:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5

Add Document Server repository:

sudo echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
While the APT package is built against Debian Squeeze, it is compatible with a number of Debian derivatives (including Ubuntu) which means you can use the same repository across all these distributions.

Update the package manager cache:

sudo apt-get update

Install Document Server

sudo apt-get install onlyoffice-documentserver
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.

After that Document Server will be run as a process. The package will be updated just like any other deb package.

Now you can connect Document Server to Community Server or integrate it into your own document management system using the provided API.

Running Document Server using HTTPS

In most cases accessing the portal via HTTPS protocol is much more secure than via HTTP which is used by default. You can easily run Document Server using secure connection. Please see the details here to learn more on how this can be done.

Additional information: more options for Document Server installation

The installation of Document Server allows the use of more debconf options which might be very helpful in case you plan installing it to more than one server or in some other cases.

These options include:

  • PostgreSQL database options
    • Set PostgreSQL database host address (replacing <DB_HOST> with the actual address of the PostgreSQL server installed):
      echo onlyoffice-documentserver onlyoffice/db-host string <DB_HOST> | sudo debconf-set-selections
    • Set PostgreSQL database user name (replacing <DB_USER> with the actual name of the user with the appropriate PostgreSQL database rights):
      echo onlyoffice-documentserver onlyoffice/db-user string <DB_USER> | sudo debconf-set-selections
    • Set PostgreSQL database user password (replacing <DB_PASSWORD> with the actual password of the user with the appropriate PostgreSQL database rights):
      echo onlyoffice-documentserver onlyoffice/db-pwd password <DB_PASSWORD> | debconf-set-selections
    • Set PostgreSQL database name (replacing <DB_NAME> with the actual PostgreSQL database name):
      echo onlyoffice-documentserver onlyoffice/db-name string <DB_NAME> | sudo debconf-set-selections
  • Redis options
    • Set Redis host address (replacing <REDIS_HOST> with the actual address of Redis installed):
      echo onlyoffice-documentserver onlyoffice/redis-host string <REDIS_HOST> | sudo debconf-set-selections
  • RabbitMQ options
    • Set RabbitMQ host address (replacing <RABBITMQ_HOST> with the actual address of RabbitMQ installed):
      echo onlyoffice-documentserver onlyoffice/rabbitmq-host string <RABBITMQ_HOST> | sudo debconf-set-selections
    • Set RabbitMQ user name (replacing <RABBITMQ_USER> with the actual name of the user with the appropriate RabbitMQ rights):
      echo onlyoffice-documentserver onlyoffice/rabbitmq-user string <RABBITMQ_USER> | sudo debconf-set-selections
    • Set RabbitMQ user password (replacing <RABBITMQ_PWD> with the actual password of the user with the appropriate RabbitMQ rights):
      echo onlyoffice-documentserver onlyoffice/rabbitmq-pwd password <RABBITMQ_PWD> | sudo debconf-set-selections

Source: Installing Document Server for Linux on Debian, Ubuntu and derivatives – ONLYOFFICE

Installing Document Server for Linux on Debian, Ubuntu and derivatives – ONLYOFFICE was last modified: April 24th, 2020 by Jovan Stosic

dpkg – How to remove/install a package that is not fully installed? – Ask Ubuntu

You can remove the package file in this /var/lib/dpkg/info/ path and update the source.

sudo rm /var/lib/dpkg/info/[package_name].*
sudo dpkg --configure -a
sudo apt-get update

Then, reinstall your package sudo apt-get install [package_name]

Source: dpkg – How to remove/install a package that is not fully installed? – Ask Ubuntu

dpkg – How to remove/install a package that is not fully installed? – Ask Ubuntu was last modified: April 24th, 2020 by Jovan Stosic

Muzzle

Concise Oxford English Dictionary
muzzle
■ noun
the projecting part of the face, including the nose and mouth, of an animal such as a dog or horse. ▶a guard fitted over an animal’s muzzle to stop it biting or feeding.
the open end of the barrel of a firearm.
■ verb
put a muzzle on (an animal).
prevent from freedom of expression.

ME: from OFr. musel, dimin. of med. L. musum.

Concise Oxford Thesaurus
muzzle
▶ noun the dog’s velvety muzzle: SNOUT, nose, mouth, maw.
▶ verb attempts to muzzle the media: GAG, silence, censor, stifle, restrain, check, curb, fetter.

Merriam-Webster Collegiate® Dictionary
1muz·zle
Pronunciation: ‘mə-zəl
Function: noun
Etymology: Middle English mosel, from Middle French musel, from Old French *mus mouth of an animal, from Medieval Latin musus
Date: 15th century

1 : the projecting jaws and nose of an animal : SNOUT
2 a : a fastening or covering for the mouth of an animal used to prevent eating or biting b : something (as censorship) that restrains normal expression
3 : the open end of an implement especially : the discharging end of a weapon

muzzle[1] 2muzzle
Function: transitive verb
Inflected Form: muz·zled ; muz·zling \’məz-liŋ, ‘mə-zə-\
Date: 15th century

1 : to fit with a muzzle
2 a : GAG b : RESTRAIN, RESTRICT –muz·zler \-lər\ noun

Muzzle was last modified: April 23rd, 2020 by Jovan Stosic

Congenial | Definition of Congenial by Merriam-Webster

Definition of congenial

1a : pleasant especially : agreeably suited to one’s nature, tastes, or outlook a congenial atmosphere
b : sociable, geniala congenial host
c : existing or associated together harmoniously
2 : having the same nature, disposition, or tastes : kindredcongenial companions

Synonyms

agreeable, blessed (also blest), darling, delectable, delicious, delightful, delightsome, dreamy, dulcet, enjoyable, felicitous, good, grateful, gratifying, heavenly, jolly, luscious, nice, palatable, pleasant, pleasing, pleasurable, pretty, satisfying, savory (also savoury), sweet, tasty, welcome

Antonyms

disagreeable, pleasureless, unpalatable, unpleasant, unwelcome

Source: Congenial | Definition of Congenial by Merriam-Webster

Congenial | Definition of Congenial by Merriam-Webster was last modified: April 23rd, 2020 by Jovan Stosic