Collabora Online Development Edition (CODE) is an open-source software suite that allows users to edit documents, spreadsheets, and presentations online. This tutorial will guide you through the process of installing CODE on an Ubuntu Server Latest.
Before installing any new software, it's important to update your system to ensure that you have the most recent packages installed. To do this, open a terminal session and run the following commands:
sudo apt-get update
sudo apt-get upgrade
CODE is distributed as a Docker image, so the first step is to install Docker on your Ubuntu Server. To do this, run the following commands:
sudo apt-get install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
In order for CODE to communicate with your other services, it will need to be connected to a Docker network. To create a new network, run the following command:
sudo docker network create collaboranet
Now that we have installed Docker and created a network, we are ready to run the CODE container. To do this, enter the following command:
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=your\\.domain\\.com' -e 'username=admin' -e 'password=yourpassword' --restart always --name collabora --network collaboranet collabora/code
Replace "your.domain.com" with your domain name and "yourpassword" with the password you want to use to access CODE.
This command will start the CODE container in detached mode, with port 9980 mapped to the local address (127.0.0.1). It will also set the domain name to the value you specified, and create a new admin user with the username and password you specified.
Finally, we need to configure Apache to act as a reverse proxy for CODE. To do this, we will create a new Apache virtual host file with the following content:
<VirtualHost *:80>
ServerName your.domain.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:9980/
ProxyPassReverse / http://127.0.0.1:9980/
</VirtualHost>
Save this file as "/etc/apache2/sites-available/your.domain.com.conf" and then enable the virtual host by running the following command:
sudo a2ensite your.domain.com.conf
Next, reload Apache by running the following command:
sudo systemctl reload apache2
And that's it – you're now ready to start using Collabora Online Development Edition in your Ubuntu Server. You can access the web interface by visiting http://your.domain.com in your web browser.
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!