Roll Your Own Google Docs with Collabora On NextCloud
i12bretro
#Nextcloud #Debian #SelfHosted
Full steps can be found at https://i12bretro.github.io/tutorials/0277.html
Prerequisites
- A XCA PKI database https://youtu.be/ezzj3x207lQ
Installing Collabora Office
- Log into the Linux device
- Run the following commands in a terminal:
# install signing key
sudo apt‐key adv ‐‐keyserver keyserver.ubuntu.com ‐‐recv‐keys 0C54D189F4BA284D
# add software repository
sudo echo 'deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE‐debian10 ./' >> sudo /etc/apt/sources.list
# update software repositories
sudo apt update
# install loolwsd and code‐brand
sudo apt install loolwsd code‐brand
# enable required Apache modules
sudo a2enmod proxy proxy_wstunnel proxy_http ssl
Creating SSL Certificates
- Launch XCA
- Open the PKI database if it is not already (File > Open DataBase), enter password
- Click on the Certificates tab, right click on your Intermediate CA certificate
- Select New
- On the Source tab, make sure Use this Certificate for signing is selected
- Verify your Intermediate CA certificate is selected from the drop down
- Click the Subject tab
- Complete the Distinguished Name section
internalName: nettools.i12bretro.local
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: nettools.i12bretro.local
- Click the Generate a New Key button
- Enter a name and set the key size to at least 2048
- Click Create
- Click on the Extensions tab
- Select End Entity from the type list
- Click Edit next to Subject Alternative Name
- Add any DNS or IP addresses that the certificate will identify
- Update the validity dates to fit your needs
- Click the Key Usage tab
- Under Key Usage select Digital Signature, Key Encipherment
- Under Extended Key Usage select Web Server and Web Client Authentication
- Click the Netscape tab
- Select SSL Server
- Click OK to create the certificate
Exporting Required Files
- In XCA, click on the Certificates tab
- Right click the Intermediate CA certificate > Export > File
- Set the file name CA.pem and verify the export format is PEM chain (*.pem)
- Click OK
- Right click the SSL certificate > Export > File
- Set the file name with a .crt extension and verify the export format is PEM (*.crt)
- Click OK
- Click the Private Keys tab
- Right click the private key generated for the SSL certificate > Export > File
- Set the file name with a .key extension and verify the export format is PEM private (*.pem)
- Click OK
Applying the Certificates
- Download WinSCP Download
- Extract WinSCP and run the executable
- Connect to the Collabora Online server via WinSCP
- Copy the created .crt, .key and .pem files to ~/
- On the Collabora Online server, run the following command in a terminal
sudo cp ~/nettools.i12bretro.local.crt /etc/ssl/certs/
sudo cp ~/nettools.i12bretro.local.key /etc/ssl/certs/
sudo cp ~/CA.pem /etc/ssl/certs/
# edit the configuration file
sudo nano /etc/loolwsd/loolwsd.xml
- Edit the loolwsd.xml file, find the SSL block and update the cert_file_path, key_file_path and ca_file_path values
<cert_file_path desc="Path to the cert file" relative="false">/etc/ssl/certs/nettools.i12bretro.local.crt</cert_file_path>
<key_file_path desc="Path to the key file" relative="false">/etc/ssl/certs/nettools.i12bretro.local.key</key_file_path>
<ca_file_path desc="Path to the ca file" relative="false">/etc/ssl/certs/CA.pem</ca_file_path>
- Press CTRL+W and search for wopi
- Add a new host for the DNS name of the NextCloud server nettools.i12bretro.local
- Press CTRL+O, Enter, CTRL+X
- Continue the configuration by running the following commands in terminal:
# create CODE proxy configuration file
sudo nano /etc/apache2/conf‐available/code.conf
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro
...
https://www.youtube.com/watch?v=MQegdHb6WqU
2022-10-24
0.02952442 LBC
Copyrighted (contact publisher)
40299531 Bytes