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:
- A Fedora Server installed with root or sudo access
- A domain name pointed to your server IP address
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:
- Update the package repository:
sudo dnf update
- Install Docker using the following command:
sudo dnf install docker
- Start and enable Docker service:
sudo systemctl start docker
sudo systemctl enable docker
- 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.
- Create a new directory to store your Collabora Online files:
sudo mkdir -p /opt/online
- Navigate to the newly created directory:
cd /opt/online
- Create a new file called
docker-compose.ymlusing your preferred text editor:
sudo nano docker-compose.yml
- Copy and paste the following content to the
docker-compose.ymlfile:
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
Save and close the
docker-compose.ymlfile.Start the Collabora Online container using the following command:
sudo docker-compose up -d
- 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.
- Install Nginx using the following command:
sudo dnf install nginx
- Create a new Nginx configuration file using your preferred text editor:
sudo nano /etc/nginx/conf.d/yourdomain.com.conf
- 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;
}
}
Save and close the configuration file.
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.