Install OnlyOffice ubuntu 22

Install ONLYOFFICE Document Server on Ubuntu 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:

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

Earlier distributions might require their manual installation.

  1. 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

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 18.04 will require to install nginx-extras . This is done using the command:

sudo apt-get install nginx-extras
  1. Installing Document Server

apt install gnupg gnupg2 gnupg1 -y

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

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.

terakhir untuk membuat new file

sudo systemctl start ds-example
sudo systemctl enable ds-example

Install ONLYOFFICE Document Server on Ubuntu using the official Docker Image

Install the latest Docker version:

         sudo apt-get install docker-ce

Execute the following command to install Document Server and all the dependencies:

         sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver

Install ONLYOFFICE Document Server on Ubuntu from snap package

To install ONLYOFFICE Document Server from the command line, just run the following command:

         sudo snap install onlyoffice-ds

untuk token sebagai addon nextcloud

echo onlyoffice-documentserver onlyoffice/jwt-secret password <JWT_SECRET> | sudo debconf-set-selections

This entry was posted in Data and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *