How to Install Collabora Online Development Edition on Void Linux

Collabora Online Development Edition (CODE) is a suite of office productivity tools (word processor, spreadsheet, and presentation) that can be used within a web browser. In this tutorial, we'll go through the steps to install CODE on Void Linux.

Prerequisites

Before we begin, make sure that you have the following:

Installing Dependencies

The following packages are required to install and run CODE. To install them, open a terminal and run the following command:

sudo xbps-install -S mariadb mariadb-client nginx python python-pip python-setuptools

Installing Collabora Online Development Edition

  1. Open a terminal window and enter the following command to download and install CODE:

    sudo pip3 install --upgrade git+https://github.com/CollaboraOnline/online
    

    This command will fetch the latest version of CODE from the official GitHub repository and install it on your system.

  2. Once the installation is complete, you need to generate a SSL certificate for your website. Enter the following command to generate a self-signed certificate:

    sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/nginx/self.key -out /etc/ssl/nginx/self.crt
    

    This command will generate a self-signed SSL certificate that you can use to secure your website.

  3. Next, we need to configure the NGINX web server. Create a new configuration file for NGINX by running the following command:

    sudo nano /etc/nginx/conf.d/collabora.conf
    
  4. Paste the following configuration into the file:

    server {
        listen 443 ssl;
        server_name example.com; #change this to your domain name
        ssl_certificate /etc/ssl/nginx/self.crt;
        ssl_certificate_key /etc/ssl/nginx/self.key;
    
        # proxy buffer size
        proxy_buffering off;
        proxy_max_temp_file_size 0;
    
        # static files
        root /usr/local/www/collabora/;
        location ^~ /loleaflet {
            proxy_pass https://localhost:9980;
            proxy_set_header Host $http_host;
        }
        location ^~ /hosting/discovery {
            proxy_pass https://localhost:9980;
            proxy_set_header Host $http_host;
        }
        location ^~ /hosting/capabilities {
            proxy_pass https://localhost:9980;
            proxy_set_header Host $http_host;
        }
        location / {
            proxy_pass https://localhost:9980;
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }
    

    Note: Replace example.com with your domain name.

  5. Save and close the file by pressing ctrl + o and ctrl + x

  6. Restart the NGINX server to apply the changes:

    sudo service nginx restart
    
  7. Finally, start the Collabora Online Development Edition by running the following command:

    /usr/local/bin/loolwsd --version --o:ssl.enable=true --o:ssl.termination=true
    

    Now, you can access the Collabora Online Development Edition by visiting https:/// in your web browser.

Congratulations! You have successfully installed Collabora Online Development Edition on Void Linux. Enjoy using it!

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!