Home » Install Collabora for NextCloud on Ubuntu

Install Collabora for NextCloud on Ubuntu

0 comment 152 views

Follow below steps

  1. cd /usr/share/keyrings
  2. sudo wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
  3. sudo nano /etc/apt/sources.list.d/collaboraonline.sources
    • Types: deb
    • URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-ubuntu2204
    • Suites: ./
    • Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpgAdd the following contents to the file
  4. sudo apt update
  5. sudo apt install coolwsd code-brand
  6. Execute sudo systemctl status coolwsd
  7. It will show status failed
  8. sudo coolconfig set ssl.enable false
  9. sudo coolconfig set ssl.termination true
  10. sudo coolconfig set storage.wopi.host nextcloud.yourdomain.com
  11. sudo coolconfig set-admin-password
    • Enter admin username [admin]:
    • Enter admin password:
    • Confirm admin password:
    • Saving configuration to : /etc/coolwsd/coolwsd.xml …
    • Saved
  12. sudo systemctl restart coolwsd
  13. sudo systemctl status coolwsd
  14. This time the status will show active
  15. sudo nano /etc/apache2/sites-available/collabora.yourdomain.com.conf
  16. Insert below to file
    • <VirtualHost *:80>
    • ServerName collabora.yourdomain.com
    • AllowEncodedSlashes NoDecode
    • ProxyPreserveHost On
    • # static html, js, images, etc. served from coolwsd
    • # browser is the client part of Collabora Online
    • ProxyPass /browser http://127.0.0.1:9980/browser retry=0
    • ProxyPassReverse /browser http://127.0.0.1:9980/browser
    • # WOPI discovery URL
    • ProxyPass /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0
    • ProxyPassReverse /hosting/discovery http://127.0.0.1:9980/hosting/discovery
    • # Capabilities
    • ProxyPass /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
    • ProxyPassReverse /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities
    • # Main websocket
    • ProxyPassMatch “/cool/(.*)/ws$” ws://127.0.0.1:9980/cool/$1/ws nocanon
    • # Admin Console websocket
    • ProxyPass /cool/adminws ws://127.0.0.1:9980/cool/adminws
    • # Download as, Fullscreen presentation and Image upload operations
    • ProxyPass /cool http://127.0.0.1:9980/cool
    • ProxyPassReverse /cool http://127.0.0.1:9980/cool
    • # Compatibility with integrations that use the /lool/convert-to endpoint
    • ProxyPass /lool http://127.0.0.1:9980/cool
    • ProxyPassReverse /lool http://127.0.0.1:9980/cool
    • </VirtualHost>
  17. sudo a2ensite collabora.yourdomain.com
  18. sudo a2enmod proxy proxy_http proxy_wstunnel
  19. sudo systemctl restart apache2
  20. sudo certbot –apache
  21. Login NextCloud WebUI, and then setup Collabora

Remember set CloudFlare Tunnel for Collabora.

Refer:
https://www.rosehosting.com/blog/how-to-integrate-collabora-online-with-nextcloud-on-ubuntu-20-04/
https://www.collaboraoffice.com/code/linux-packages/
https://c-nergy.be/blog/?p=18055

Leave a Comment