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:
- A running instance of Void Linux
- A user account with sudo privileges
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
Open a terminal window and enter the following command to download and install CODE:
sudo pip3 install --upgrade git+https://github.com/CollaboraOnline/onlineThis command will fetch the latest version of CODE from the official GitHub repository and install it on your system.
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.crtThis command will generate a self-signed SSL certificate that you can use to secure your website.
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.confPaste 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.
Save and close the file by pressing
ctrl + oandctrl + xRestart the NGINX server to apply the changes:
sudo service nginx restartFinally, start the Collabora Online Development Edition by running the following command:
/usr/local/bin/loolwsd --version --o:ssl.enable=true --o:ssl.termination=trueNow, 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!