Nextcloud Talk via Nextcloud server snap

snap
nc13

#1

A big THANK YOU!

Hi Nextclouders! First of all, I must say that I’m impressed by the sheer amount of added features, quality of setup experience, and general polish in the web/Android/desktop UIs, compared to last time I installed a version of ownCloud/Nextcloud just a couple of years ago. Well done guys and gals! Keep up the great work :smile: .

My problem

I can’t find A-to-Z installation instructions for setting up a Nextcloud Talk server using snap packages. I could set up the base Nextcloud server extremely easily, but I can’t get Nextcloud Talk to work. My environment is a VPS running Ubuntu 18.04 with a static IP address (a DigitalOcean droplet).

Generally, I was able to find some documentation, but I could not tell if they were written before Spreedme-to-Talk-rebranding (and therefore no longer applicable to NC Talk) or they are indeed up-to-date.

Specific questions

  • Is there a complete guide for setting up Nextcloud Talk on a vanilla GNU/Linux server using snap packages? If yes, I’d be delighted to know about it.

If such guide does not yet exist, let me explain what has made me confused:

  • after installing nexcloud server snap, do I also need to install spreedme snap as well?
    ** if yes, (how) should I connect nextcloud and spreedme using snap interfaces?
  • Is there a TURN server included in Nextcloud snap, spreedme snap, or any other snap packages that I can easily install?
  • I tried to follow instructions to setup coturn, but I was quickly buried in coturn configuration hell! Given that snap packages bundle everything inside, I assume there could be a canonical configuration file that is guaranteed to work with Nextcloud server snap. Is this true?
    ** If yes, does such standard octurn configuration exists? Or even better, a TURN server snap?

Thank you all.


Nextcloud Talk on Nextcloud box or better hardware
#2

Well, I found answers to my own questions. I write them here in the hope it helps someone else.

If you install Nextcloud via the snap package, you do not need to separately “snap install” any “spreed” snap.

Here are steps to set up a Nextcloud server with Nextcloud Talk support:

  1. You install Nextcloud (sudo snap install nextcloud) -> on my DigitalOcean droplet running Ubuntu 18.04, the installation automatically did ALL the settings for me, to the degree that I could immediately type my url and login to my instance! Well done, @kyrofa :grinning:
    1.1. Optionally (why shouldn’t you?) enable HTTPS via Let’s Encrypt. Run nextcloud.enable-https and follow its prompts.
  2. Login to your Nextcloud’s Apps page, install and enable the Talk app. (Please note that the app is called Talk, but the URLs contains the word spreed. This is a bit confusing. But only look for the word Talk in the app title, and do not care if the web address includes spreed or talk or any other word.)
  3. Install a TURN server for your server OS. Unfortunately, there is no snap package that provides TURN functionality. Therefore you have to install it via traditional debain packages: sudo apt install coturn.
  4. Configure your coturn server using Carsten Rieger’s tutorial. Thank you @riegerCLOUD :grinning:
  5. The only difference with Carsten’s tutorial is that you will not find your server’s TLS keys in the usual place (/etc/letsencrypt/…), since you are using the snap package that bundles its own version of apache, certbot, and everything else. Instead, your keys are located at:

/var/snap/nextcloud/current/certs/certbot/config/live/example.com/fullchain.pem
/var/snap/nextcloud/current/certs/certbot/config/live/example.com/privkey.pem

  1. Last (and the most important) step: Enjoy your video-chatting freedom :smile:! Make an account for your partner/spouse/friend/sibling/parent and teach them how it works. Start using Nextcloud Talk instead of whatever proprietary walled-garden you were using before, if any.

#3

So this worked with the nextcloud box? Would you say the performance is good (for dual users, not more)?


#4

No, I didn’t try it on Nextcloud Box. Mine was a VPS from a remote hosting provider. But since Nextcloud Box works with snaps as well, I guess the software setup process to be identical to what I did.


#5

I would add four things:

  • remember to copy the random hex 32 bits you added to your configuration file
  • you will probably have to install ufw on your server snap (at least i had to)
  • the snap version doesn’t use NGINX so the last command to restart NGINX is redundant and will produce an error
  • finally login as admin on nextcloud web ui and go to the talk settings, where you add your TURN server domain (probably the same as your nextcloud domain) and add your random hex 32 bits.