ONLYOFFICE Docs is an online office package whose source code is publicly available on GitHub under the terms of the GNU AGPL v3.0 license. It offers a free community edition with complete editing functionality and commercial versions for businesses and software developers.
ONLYOFFICE Docs comes with collaborative web-based editors for text documents, spreadsheets, presentations and fillable forms that are totally compatible with the Open Office XLM formats (DOCX, XLSX and PPTS). It provides real-time document editing and co-authoring features that can be enabled within a number of sync&share platforms, electronic document management systems and e-learning solutions, such as Nextcloud, Seafile, ownCloud, Nuxeo, Confluence, Alfresco, Redmine, WordPress, Moodle, Chamilo, etc.
Starting from version 7.1, ONLYOFFICE Docs can be installed on Debian-based systems with the 64-bit ARM architecture.
In this guide, you will learn how to install the latest version of ONLYOFFICE Docs and all the necessary components on Ubuntu with ARM64 support and find out about the most popular integration options.
What you’ll learn
This guide describes how to install ONLYOFFICE Docs (ONLYOFFICE Document Server) and all the required dependencies on an ARM64 device with Ubuntu.
What you’ll need
Recommended system requirements:
· 64-bit ARM processor;
· 2 GB of RAM or more;
· At least 40 GB of free disc space;
· No less than 4 GB of swap space;
· Ubuntu 18.04 o 20.04 with ARM64 support.
· PostgreSQL v.12.9 or later;
· NGINX v.1.3.13 or later;
· libstdc++6: versión 4.8.4 or later;
Install the necessary components
First of all, you need to install all the dependencies that are required for the correct installation and operation of ONLYOFFICE Docs. Install the latest version of PostgreSQL with this command:
sudo apt-get install PostgreSQL
Then, create a database and a PostgreSQL user (you can specify any password but don’t forget to memorize it):
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;"
After that, install another required component, rabbitmq. It can be done with this command:
sudo apt-get install rabbitmq-server
Change the default port
When all these components are successfully installed, you can change the default port for ONLYOFFICE Docs if necessary. The default port is 80, and you can change it by running this command:
echo onlyoffice-documentserver onlyoffice/ds-port select <PORT_NUMBER> | sudo debconf-set-selections
Specify the required port number instead of <
PORT_NUMBER>. If you want ONLYOFFICE Docs to switch to the HTTPS protocol, don’t specify port 443.
Install ONLYOFFICE Docs
Now you can install ONLYOFFICE Docs. To do so, add a GPG key first:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Then, add the ONLYOFFICE Docs repository with this command:
echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
After that, you need to update the package manager cache. Run the following command:
sudo apt-get update
Also, Install mscorefonts:
sudo apt-get install ttf-mscorefonts-installer
Finally, install ONLYOFFICE Docs on your Ubuntu machine:
sudo apt-get install onlyoffice-documentserver
During the installation process, you will be asked to enter the password for the PostgreSQL user. Enter the one you specified while configuring PostgreSQL.
Enable HTTPS and run ONLYOFFICE Docs
After successful installation, enter http://localhost in your web browser, and you will see the ONLYOFFICE Docs welcome page with detailed instructions on how to enable document examples or integrate the ONLYOFFICE online editors with your web application using the API.
If you need more secure document editing, you can enable HTTPS. The easiest way to switch to this protocol is to automatically get SSL certificates from Let’s Encrypt using Certbot, a fully-featured client for the Let’s Encrypt CA.
Install Certbot with this command:
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
After that, run this script specifying your email and domain:
sudo bash /usr/bin/documentserver-letsencrypt.sh email@example.com yourdomain.com
Once this is done, ONLYOFFICE Docs will be available at the following address: https://yourdomain.com.
That’s it! You can now integrate ONLYOFFICE Docs with such solutions as Nextcloud, Moodle, Redmine, Alfresco, Chamilo, Confluence, Nuxeo and others. After integration, you will be able to edit and collaborate on text documents, spreadsheets, presentations and fillable forms within the interface of your favourite platform.