# Complete NC installation on Debian with Spreed.me and TURN step by step

**URL:** <https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436>\
**Category:** 📑 How to\
**Tags:** tutorial\
**Created:** [August 18, 2016, 7:00pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436 "2016-08-18T19:00:46Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![Ecphrasis](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ecphrasis/32/901_2.png) [@Ecphrasis](https://help.nextcloud.com/u/Ecphrasis)\
**Post date:** [December 19, 2016, 8:37am UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/38 "2016-12-19T08:37:15Z")

</div>

Hi all, my install work perfectly, I will just post some tips for helping :

- Huge thanks to the author of the topic, it helped me a lot for beginning !
- First, no need to have two public IPS, all programms run on the same dedicated server (nextcloud, web-rtc, and coturn)
- Coturn work perfectly, with video calls in 3g, 4g, several machines under differents LANS, etc.
- I have installed the ubuntu packaged programs, no sources. (just added a depot for web-rtc)
- my /etc/turnserver.conf (run as a service by uncommenting `TURNSERVER_ENABLED=1` in /etc/default/coturn) :

> listening-port=8443  
> alt-listening-port=3478  
> fingerprint  
> lt-cred-mech  
> use-auth-secret  
> static-auth-secret=6cf6cbc540e9667f3552773df92edbd442eca209a141df1cxxxxxxxxxxxx (generated by openssl rand -hex 32)  
> [realm=mynextcloud.net](http://realm=mynextcloud.net)  
> total-quota=100  
> bps-capacity=0  
> stale-nonce  
> cipher-list=“ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5”  
> log-file=/var/log/turn.log  
> no-loopback-peers  
> no-multicast-peers  
> cert=/etc/letsencrypt/live/mynextcloud.net/cert.pem  
> pkey=/etc/letsencrypt/live/mynextcloud.net/privkey.pem

- my /etc/spreed/webrtc.conf 🙂 (I used the normal way to generate this configuration, in admin panel of nextcloud, just added `root=, and turnURIS`)

> ; Minimal Spreed WebRTC configuration for Nextcloud

> [http]  
> root = /usr/share/spreed-webrtc-server/www (if you have the ubuntu version, you have to add this)  
> listen = 127.0.0.1:8080  
> basePath = /webrtc/

> [app]  
> sessionSecret = 02819e83254f793608a1a6b1adb11ed657dxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> encryptionSecret = c3ec0dc5ead5a8c95bcbae94fcde149xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> authorizeRoomJoin = true  
> serverToken = 9b88f0aee6fde09a749e65d061de84xxxxxxxxxxxxxxxxxxxxx  
> serverRealm = [mynextcloud.net](http://mynextcloud.net)  
> extra = /var/www/nextcloud/apps/spreedme/extra  
> plugin = extra/static/owncloud.js

> turnURIs = turn:mynextcloud.net:8443?transport=udp turn:mynextcloud.net:8443?transport=tcp  
> turnSecret = 6cf6cbc540e9667f3552773df92edbd442eca209axxxxxxxxxxxxxxxxxxxxxx

> [users]  
> enabled = true  
> mode = sharedsecret  
> sharedsecret\_secret = 10b774ef3db23e63a4d80c69b7879193xxxxxxxxxxxxxxxxxxxx

- Open port 8443 and 3478 TCP and UDP, because coturn use the both protocols.
- I have also create an admin for coturn by this command : `sudo turnadmin -A -u admin -p passwdadmin`  
The admin panel of coturn is available by browser at the adress : `https://mynextcloud:8443` wich allows me to see the sessions, and add the secret code in section `Shared Secrets (for TURN REST API)` (don’t know if it’s necessary or not).

EDIT : I use ubuntu server 16.04.1

---

_[View the full topic](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436)._
