How to Install ONLYOFFICE on Debian

ONLYOFFICE is an open-source office suite that can be installed on different platforms. This tutorial explains how to install ONLYOFFICE Server on Debian Latest.

Step-by-Step Guide

Step 1: Prepare Your Server

Before you start installing ONLYOFFICE Server on Debian, make sure that you have the latest Debian version installed on your server.

You will need to have root access for the installation process. You can also create a new user with root privileges, but it is not advisable to use the root user for regular tasks.

Step 2: Install Dependencies

ONLYOFFICE Server requires some dependencies. To install these, run the following commands:

$ sudo apt-get update 
$ sudo apt-get install curl gnupg2 ca-certificates lsb-release

Step 3: Register the ONLYOFFICE Repository

To install ONLYOFFICE Server on your Debian system, you need to register the ONLYOFFICE repository. Run the following command to add the ONLYOFFICE GPG key to your system:

$ curl -s https://download.onlyoffice.com/repo/onlyoffice.key | sudo apt-key add -

Next, add the ONLYOFFICE repository to your system’s sources.list file:

$ echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list

Then update the package list:

$ sudo apt-get update

Step 4: Install ONLYOFFICE Server

Now that the ONLYOFFICE repository is registered on your system, you can install ONLYOFFICE Server with the following command:

$ sudo apt-get install onlyoffice-documentserver

Step 5: Configure ONLYOFFICE Server

After ONLYOFFICE Server is installed, you need to configure it. Run the following command to configure ONLYOFFICE Server:

$ sudo dpkg-reconfigure onlyoffice-documentserver

This will open the OnlyOffice Document Server Configuration window. In this window, you need to enter the address that you will use to access the ONLYOFFICE web interface in the Document Editing Service Address field.

The default value is http://localhost:8000, but this may not be suitable for your environment. You can enter any valid address that can be used to access your Debian server.

Once you have entered your preferred address, click OK to save the changes.

Step 6: Start ONLYOFFICE Server

To start ONLYOFFICE Server, run the following command:

$ sudo systemctl enable onlyoffice-documentserver
$ sudo systemctl start onlyoffice-documentserver

Step 7: Access ONLYOFFICE Web Interface

Now that ONLYOFFICE Server is running, you can access the web interface through your preferred address.

If you have installed ONLYOFFICE Server on your local machine, you can use the default address http://localhost:8000. If you have installed ONLYOFFICE Server on a remote server, use the address you entered in the Document Editing Service Address field during the configuration step.

Conclusion

ONLYOFFICE Server is now installed on your Debian system, and you can start using it to create, edit, and share documents.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!