Setting up and configuring native CODE packages on Linux

Collabora provide native Linux packages for selected Linux distributions: Debian 9, Debian 10, Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, CentOS 7 (at least 7.2), CentOS 8, SLE 15.x and openSUSE Leap 15.x.

1. Import the signing key

CODE packages are digitally signed by Collabora Productivity Ltd. First step is to import the signing key.

On deb based distributions (Debian, Ubuntu), use the following command:

sudo apt-key adv --keyserver --recv-keys 0C54D189F4BA284D


wget && sudo apt-key add repomd.xml.key

Note: On Debian you might need to execute first:

sudo apt-get install dirmngr

On rpm based distributions (CentOS, openSUSE), use the following command:

wget && sudo rpm --import repomd.xml.key

2. Add CODE package repositories

(Mind, it may be needed to add the line to the sources.list directly, not by giving a command in the console.)

Debian 9:

sudo echo 'deb ./' >> /etc/apt/sources.list

Debian 10:

sudo echo 'deb ./' >> /etc/apt/sources.list

Ubuntu 16.04:

sudo echo 'deb ./' >> /etc/apt/sources.list

Ubuntu 18.04:

sudo echo 'deb ./' >> /etc/apt/sources.list

Ubuntu 20.04:

sudo echo 'deb ./' >> /etc/apt/sources.list

CentOS 7:

sudo yum-config-manager --add-repo

CentOS 8:

sudo yum-config-manager --add-repo

openSUSE Leap 15.x (and SLE 15):

sudo zypper ar '' 'CODE'
sudo zypper mr -r 'CODE' # enable auto refresh

ARM64 – Ubuntu 18.04:

sudo echo 'deb ./' >> /etc/apt/sources.list

3. Install packages

On deb based distributions (Debian, Ubuntu), use the following command:

sudo apt update && sudo apt install loolwsd code-brand

On CentOS, use the following command:

sudo yum install loolwsd CODE-brand

On openSUSE Leap, use the following command:

sudo zypper ref && sudo zypper in loolwsd CODE-brand

This is the minimal installation, without localizations. For full installation install ‘collaboraoffice*’ packages.

4. Configuration

Edit /etc/loolwsd/loolwsd.xml. Collabora Online (loolwsd) service runs via systemd. After editing the configuration file, you have to restart the service:

sudo systemctl restart loolwsd

Collabora Online logs into systemd journal by default. You can check the log with:

sudo journalctl -u loolwsd

The default configuration is looking for an SSL certificate and key, which are not present, so probably it’s the best to disable SSL, and optionally enable SSL termination, then set up the reverse proxy.