Collabora Online Development Edition is an open-source software suite that allows users to access and edit documents, spreadsheets, and presentations online. In this tutorial, we will go through the steps to install Collabora Online Development Edition on Alpine Linux Latest.
Before we can start the installation process, we need to install some dependencies that Collabora Online Development Edition requires. To do that, run the following command:
apk add --no-cache git make automake gcc g++ python3 \
libtool pkgconfig autoconf musl-dev \
cppstdlib++ linux-headers libxml2-utils \
libressl-dev curl-dev libpng-dev pango-dev \
libcap-dev enchant2-dev harfbuzz-dev libjpeg-turbo-dev
Next, we need to clone the Collabora Online Development Edition's repository. To do that, run the following command:
git clone https://github.com/CollaboraOnline/online.git
Once the repository is cloned, navigate to it and run the following command to build Collabora Online Development Edition:
cd online
./configure \
--enable-silent-rules \
--enable-httpd2-doc-root \
--with-lokit-path=/usr/lib/libreoffice \
--with-max-connections=100 \
--with-ssl \
--with-poco-includes=/usr/include \
--with-poco-libs=/usr/lib \
--with-ccache \
--with-gperf \
--with-ruby=/usr/bin/ruby \
--with-perl=/usr/bin/perl
make
After the build process is complete, run the following command to install Collabora Online Development Edition:
make install DESTDIR=/opt/collaboraoffice
The last step is to configure Apache to use Collabora Online Development Edition. Add the following lines to your Apache configuration file:
# Collabora Configuration
<VirtualHost *:443>
ServerName office.example.com
# SSL Configuration
<IfModule mod_ssl.c>
SSLCertificateFile /path/to/ssl/certificate
SSLCertificateKeyFile /path/to/ssl/key
SSLCertificateChainFile /path/to/ssl/chain
</IfModule>
# Collabora Configuration
<Location />
ProxyPass http://localhost:9980/
ProxyPassReverse http://localhost:9980/
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
</Location>
</VirtualHost>
Replace "office.example.com" with your domain name, and "/path/to/ssl/certificate", "/path/to/ssl/key", and "/path/to/ssl/chain" with the paths to your SSL certificate, key, and chain files.
By following these steps, you should now have Collabora Online Development Edition installed on top of Alpine Linux Latest server, and accessible via Apache.
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!