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 keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D

or

wget https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key && 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 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key && 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 https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian9 ./' >> /etc/apt/sources.list

Debian 10:

sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian10 ./' >> /etc/apt/sources.list

Ubuntu 16.04:

sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE ./' >> /etc/apt/sources.list

Ubuntu 18.04:

sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu1804 ./' >> /etc/apt/sources.list

Ubuntu 20.04:

sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2004 ./' >> /etc/apt/sources.list

CentOS 7:

sudo yum-config-manager --add-repo https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7

CentOS 8:

sudo yum-config-manager --add-repo https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos8

openSUSE Leap 15.x (and SLE 15):

sudo zypper ar 'https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-opensuse15' 'CODE'
sudo zypper mr -r 'CODE' # enable auto refresh

ARM64 – Ubuntu 18.04:

sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-arm64-ubuntu1804 ./' >> /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.