Installing ONLYOFFICE Community Edition

In this post we are going to see the steps we must follow to have an ONLYOFFICE server installed in our organization. In this case, we will use it to integrate it in a next post with Nextcloud so that our users can work online on any office document without the need to have anything installed locally. To do this, it will be necessary to have ONLYOFFICE correctly deployed beforehand!

 

ONLYOFFICE Community Edition is the open source version of the office suite, is a service that allows users to work with Office documents online, And not only that, but also allows for seamless collaboration, since several users may be working on the same document at the same time! We will only use the Document Server, which supports Office OP formats in XML such as .docx, .xlsx, .pptx… so they will be able to open and edit text or Word type documents, spreadsheets or Excel, PowerPoint presentations…. all online and with no other need than a browser! And remember the collaborative editing, It's super interesting! like Google Docs and an alternative to Microsoft Office. Supported formats: DOC, DOCX, TXT, ODT, RTF, ODP, EPUB, ODS, XLS, XLSX, CSV, PPTX, HTML…

 

The installation of ONLYOFFICE can be done in several ways, a very simple one would be with Docker and its container, that could run under the same Nextcloud machine; or dedicate a machine to it as I think is preferable and more serious, We can do a 1-Click How do they propose to us (also in a container) or the traditional way, which will be to perform an installation on a server, the latter will be our choice! The post is based on an Ubuntu 14.04 LTS, but hey, it's also supported under Windows or any Linux with kernel 3.10 or higher (Ubuntu 15.04, Fedora 20, CoreOS 647… we understand that the machine is up-to-date and has a static IP address configured, Start!

 

Installing ONLYOFFICE Document Server,

We have to pre-install any requirements, We start by adding the repo to Node.js we will need:

[SourceCode]curl -sL https://deb.nodesource.com/setup_6.x | Sudo Bash -[/SourceCode]

We installed PostgreSQL and created the database for ONLYOFFICE, a user and give them permissions on it:

[SourceCode]sudo apt-get install postgreSQL -y
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;"[/SourceCode]

 

We install Redis, RabbitMQ and Node.js:

[SourceCode]sudo apt-get install redis-server -y
sudo apt-get install rabbitmq-server -y
sudo apt-get install nodejs[/SourceCode]

 

We add the GPG key and add the Document Server repository, we update and install ONLYOFFICE Document Server, during installation it will ask us for the password for PostgreSQL, We will indicate the username and password that we have previously established:

[SourceCode]sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys CB2DE8E5
sudo echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
Sudo apt-get update
sudo apt-get install onlyoffice-documentserver[/SourceCode]

 

After installation, we can now try to open a browser against the URL of the ONLYOFFICE Document Server, If everything has gone well it will open something like this! We continue in other documents with more adventures!

 


Recommended Posts

Author

nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!