How to Install Collabora Office on Ubuntu 24.04

Collabora Online is an online office suite application based on LibreOffice. Collabora Online is one of the applications that can be integrated with Nextcloud, providing a complete solution for real-time editing of documents, spreadsheets, and presentations. With Collabora Online, teams can collaborate simultaneously on the same document, enhancing productivity and collaboration efficiency.

In this tutorial, we will learn how to install Collabora Online to integrate it into Nextcloud as an online office application.

Tutorial Environment

This tutorial uses:

  • VPS: Vultr 1 CPU 1 GB RAM
  • OS: Ubuntu 24.04
  • Web server: Nginx
  • Subdomain: collabora.aminlabs.my.id
  • SSL: Let’s Encrypt
  • Collabora: Collabora Online Development Edition (CODE) v24.04.4.2 fbf97e9 via package

Notes:

Install Collabora Online

The steps to install Collabora include installing the package, configuring Collabora, configuring Nginx, and integrating it into Nextcloud.

1. Install CODE

Update and upgrade the Ubuntu system first:

Import the Collabora CODE signing key:

Create a file for the Collabora CODE package repository:

Enter the repository configuration:

Install the CODE packages:

2. Configuration of CODE

Make the necessary configurations by modifying the /etc/coolwsd/coolwsd.xml file.

Restart the coolwsd service:

3. Nginx Configuration

Install Nginx:

Create a new Nginx configuration file for the subdomain collabora.aminlabs.my.id:

Enter the configuration:

Enable the Nginx server block configuration:

Restart the nginx service:

Open ports 80 and 443 if UFW firewall is active:

Install Certbot for Nginx:

Request SSL for the subdomain collabora.aminlabs.my.id:

Open the previously created Nginx server block configuration file:

Modify the configuration contents for reverse proxy to the Collabora server:

Restart the nginx service:

4. Integration with Nextcloud

Log in to Nextcloud as an admin, click the profile > +Apps icon. Click on the Office & Text menu, then click Download and enable for Collabora Online – Built-in CODE Server and Nextcloud Office.

Nextcloud Office & Text apps
Nextcloud Office & Text apps

Then click profile > Administration settings > Nextcloud Office.

Select Use your own server, enter the CODE subdomain in URL (and Port) of Collabora Online-server, which is collabora.aminlabs.my.id.

Nextcloud Office configuration
Nextcloud Office configuration

Then enter the IP address of the Collabora Online server in Allow list for WOPI requests.

Nextcloud Office WOPI requests
Nextcloud Office WOPI requests

5. Testing

Test the integration of Collabora Online with Nextcloud by opening one of the Open Document Format files such as .odt, .ods, or .odp.

Collabora Online Office Writer
Collabora Online Office Writer
Collabora Online Office Spreadsheet
Collabora Online Office Spreadsheet
Collabora Online Office Presentation
Collabora Online Office Presentation

If you found this article helpful and would like to support my work, consider making a donation through PayPal. Your support helps me continue creating useful content and tutorials. Thank you!

Donate via PayPal: https://paypal.me/musaamin

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *