How to Install Collabora Online Development Edition on Fedora Server

Collabora Online Development Edition is an open-source office suite that enables easy collaboration and document editing online. In this tutorial, we will walk you through the installation of Collabora Online Development Edition on Fedora Server.

Prerequisites

Before we start, make sure that you have the following prerequisites:

Step 1: Install Docker and Docker-Compose

Collabora Online Development Edition runs in a Docker container, so we need to install Docker and Docker-Compose in our Fedora Server. Follow the steps below to install Docker and Docker-Compose:

  1. Update the package repository:
sudo dnf update
  1. Install Docker using the following command:
sudo dnf install docker
  1. Start and enable Docker service:
sudo systemctl start docker
sudo systemctl enable docker
  1. Install Docker-Compose by running the following command:
sudo dnf install docker-compose

Step 2: Install Collabora Online Development Edition

In this step, we will download and install Collabora Online Development Edition using Docker-Compose.

  1. Create a new directory to store your Collabora Online files:
sudo mkdir -p /opt/online
  1. Navigate to the newly created directory:
cd /opt/online
  1. Create a new file called docker-compose.yml using your preferred text editor:
sudo nano docker-compose.yml
  1. Copy and paste the following content to the docker-compose.yml file:
version: '3'

services:
   collabora:
      image: collabora/code
      container_name: collabora
      restart: always
      environment:
         - domain=yourdomain.com
         - username=admin
         - password=adminpassword
      ports:
         - 127.0.0.1:9980:9980
      cap_add:
         - MKNOD
      volumes:
         - /opt/collabora/lool:/opt/collabora/lool
  1. Save and close the docker-compose.yml file.

  2. Start the Collabora Online container using the following command:

sudo docker-compose up -d
  1. Verify that the container is running by checking the status:
sudo docker ps

Step 3: Set Up a Reverse Proxy

Collabora Online Development Edition runs on port 9980 by default. To allow access to the online office suite, we need to set up a reverse proxy to redirect traffic from port 80 or 443 to the Collabora Online container.

  1. Install Nginx using the following command:
sudo dnf install nginx
  1. Create a new Nginx configuration file using your preferred text editor:
sudo nano /etc/nginx/conf.d/yourdomain.com.conf
  1. Copy and paste the following content to the configuration file, making the necessary changes to match your domain and Collabora Online container:
server {
   listen 80;
   listen [::]:80;
   server_name yourdomain.com;

   location / {
      proxy_pass http://localhost:9980;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
   }
}
  1. Save and close the configuration file.

  2. Restart Nginx service to apply the changes:

sudo systemctl restart nginx

Step 4: Access Collabora Online Development Edition

Collabora Online Development Edition is now installed and running on your server. To access it, simply open a web browser and navigate to http://yourdomain.com/office, or https://yourdomain.com/office if you have a valid SSL certificate.

You can log in to Collabora Online with the username and password specified in the docker-compose.yml file.

Conclusion

In this tutorial, we have shown you how to install Collabora Online Development Edition on your Fedora Server. With Collabora Online, you can now collaborate and edit documents online with ease.

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!