Setting up and configuring native CODE packages on Linux

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

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

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

Debian 8:

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

Debian 9:

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

CentOS 7:

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

openSUSE Leap:

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

On openSUSE Leap we also need to add the repository for the POCO library, because it is maintained by them.

sudo zypper ar 'http://download.opensuse.org/repositories/devel:/libraries:/c_c++/openSUSE_Leap_42.2/devel:libraries:c_c++.repo' 

or

sudo zypper ar 'http://download.opensuse.org/repositories/devel:/libraries:/c_c++/openSUSE_Leap_15/devel:libraries:c_c++.repo' 

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.