# 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:** 13\
**Page:** 3

<div class="post-metadata">

**Author:** ![SyS0p3r](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sys0p3r/32/1255_2.png) [@SyS0p3r](https://help.nextcloud.com/u/SyS0p3r)\
**Post date:** [January 11, 2017, 10:57am UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/41 "2017-01-11T10:57:39Z")

</div>

Ok tnx. I changed it to /opt/spreed-webrtc-master/ (might also be /usr/share but i’m used to /opt)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [January 18, 2017, 4:09pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/42 "2017-01-18T16:09:45Z")

</div>

Excuse me for the beginners question, but what is the reason to use either /opt or /usr/share as root folder for the spreed server? As I remeber reading somewhere the one repo available installs it to /etc. I don’t know what the intention is to put something into one or the other predefined folder of linux systems or what rights/security reasons are there about this, so some explanation would be nice 🙂. Reason is that I want to write a small guide about how to establish a systemd unit to autorun spreed.

€: I self explained it to me by reading [http://unix.stackexchange.com/questions/11544/what-is-the-difference-between-opt-and-usr-local#11552](http://unix.stackexchange.com/questions/11544/what-is-the-difference-between-opt-and-usr-local#11552). According to this I would also slightly prefer `/opt/spreed-webrtc-master` as root, as it is downloaded manually here and no files are created outside of this folder by any step.

€€: Guide about setting up a systemd unit for **autorun the spreed server** is done: [[Spreed.ME] Howto autorun "spreed-webrtc-server" step-by-step](https://help.nextcloud.com/t/spreed-me-howto-autorun-spreed-webrtc-server-step-by-step/7721?u=michaing)

---

<div class="post-metadata">

**Author:** ![SyS0p3r](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sys0p3r/32/1255_2.png) [@SyS0p3r](https://help.nextcloud.com/u/SyS0p3r)\
**Post date:** [January 19, 2017, 7:45am UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/43 "2017-01-19T07:45:23Z")

</div>

Hi there @MichaIng. Let me try to give an awnser to your questions. The /opt folder is for non standard linux software ([http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html](http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html)) and the /usr/(share) is user binaries and documantation [http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html](http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html) i gues it depends on the distribution your familiar with what you use (or maybe how old you are 🙂 ) and the /etc is for configuration files. [http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/etc.html](http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/etc.html)

i gues you can run webrtc as root with chmod 750 rights (rwx-rx---- for root) as it runs in the background and nextcloud connects to it. thats how i would run it.

the auto run part i cant help with so i will be following your guide for that one 👍

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [January 19, 2017, 3:10pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/44 "2017-01-19T15:10:02Z")

</div>

Thanks for the information. Again some more clarification about all of this 🙂.

For the autorun systemd unit you need to create a new user, or at least it would be surely more recommendable than using root for this for security reasons. In this case you could chown -R the spreed server directory to this user or better just give him read and executable permissions: chmod -R 755

---

<div class="post-metadata">

**Author:** ![Filippo\_Savarese](https://help.nextcloud.com/letter_avatar/filippo_savarese/32/6_22734026db12803ebb3e059622ac3534.png) [@Filippo\_Savarese](https://help.nextcloud.com/u/Filippo_Savarese)\
**Post date:** [January 30, 2017, 5:28pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/45 "2017-01-30T17:28:13Z")

</div>

Hi and thanks for your guide. I’m not sure if you got a success at the end or not…I read all comments…and this is not clear.  
Another tihnk, I try to download the vhost file, but the link seems not work, can you give me new ones?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![SyS0p3r](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sys0p3r/32/1255_2.png) [@SyS0p3r](https://help.nextcloud.com/u/SyS0p3r)\
**Post date:** [January 30, 2017, 5:58pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/46 "2017-01-30T17:58:54Z")

</div>

Hi, the guide should be complete and should be working, but i didnt try the full guide myself anymore. I just tried the vhost file download for me it did work:

[https://cloud.serviceprof.nl/index.php/s/2rVme9NFAu1aypi](https://cloud.serviceprof.nl/index.php/s/2rVme9NFAu1aypi)

---

<div class="post-metadata">

**Author:** ![johnfelipe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/johnfelipe/32/10032_2.png) [@johnfelipe](https://help.nextcloud.com/u/johnfelipe)\
**Post date:** [August 30, 2017, 11:49pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/47 "2017-08-30T23:49:15Z")

</div>

Hi bros;

```
sudo su
cd
apt-get install coturn
nano /etc/turnserver.conf

```

## 

#listening-port=3478  
listening-port=8443

#alt-listening-port=0  
alt-listening-port=3478

#fingerprint  
fingerprint

#lt-cred-mech  
lt-cred-mech

#use-auth-secret  
use-auth-secret

#[http://passwordsgenerator.net/](http://passwordsgenerator.net/)

#static-auth-secret=north  
static-auth-secret=zvshmpbkspd9e8yduswv9ze2kn92ta2k9zhyxxxxxxxxxxxx

#(generated by openssl rand -hex 32)

#[realm=mycompany.org](http://realm=mycompany.org)  
[realm=cloud.votandoando.com](http://realm=cloud.votandoando.com)

#total-quota=0  
total-quota=100

#bps-capacity=0  
bps-capacity=0

#stale-nonce  
stale-nonce

#cipher-list="DEFAULT"  
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/tmp/turn.log  
log-file=/var/log/turn.log

#no-loopback-peers  
no-loopback-peers

#no-multicast-peers  
no-multicast-peers

#cert=/usr/local/etc/turn\_server\_cert.pem  
cert=/etc/letsencrypt/live/cloud.votandoando.com/cert.pem

#pkey=/usr/local/etc/turn\_server\_pkey.pem  
pkey=/etc/letsencrypt/live/cloud.votandoando.com/privkey.pem

## 

nano /etc/default/coturn

Remove # in front of TURNSERVER\_ENABLED=1

im using [https://github.com/nextcloud/vm](https://github.com/nextcloud/vm), for install all enviroment, this is my conf files:

/var/snap/spreedme/22/server.conf

## 

```
[http]
listen = 127.0.0.1:8080
basepath = /webrtc
root = www

[https]

[app]
stunuris = stun:stun.spreed.me:443
sessionsecret = b2a1c8926c7a72dba7895bf8c72f4bceff30xxxxxxxxx
encryptionsecret = c7b84b331b010bb184d536dc9056ba0ea2xxxxxxxx
authorizeroomjoin = true
servertoken = 6d425cefec8c6xxxxxxxxx
serverrealm = local
extra = /usr/share/spreed-webrtc-server/extra
plugin = extra/static/owncloud.js

turnURIs = turn:cloud.votandoando.com:8443?transport=udp turn:cloud.votandoando.com:8443?transport=tcp
turnSecret = zvshmpbkspd9e8yduswv9ze2kn92ta2k9zhyzxxxxxxxxxxx

[modules]

[log]
logfile = spreed-webrtc-server.log

[users]
enabled = true
mode = sharedsecret
sharedsecret_secret = 78e3edefc392ab64dbd447ad6450bbb7xxxxxx

```

## 

/etc/init.d/coturn restart

`[ok] Restarting coturn (via systemctl): coturn.service.`

And continue show me this:

Video for show you error for send call and recieved.

only work if i do this:

```
sudo su
cd
wget https://raw.githubusercontent.com/nextcloud/vm/master/apps/spreedme.sh
bash spreedme.sh

```

Pls help me for this issue

---

<div class="post-metadata">

**Author:** ![johnfelipe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/johnfelipe/32/10032_2.png) [@johnfelipe](https://help.nextcloud.com/u/johnfelipe)\
**Post date:** [September 12, 2017, 6:14pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/49 "2017-09-12T18:14:01Z")

</div>

Complete steps in here [https://github.com/strukturag/spreed-webrtc/issues/442](https://github.com/strukturag/spreed-webrtc/issues/442)

---

<div class="post-metadata">

**Author:** ![johnfelipe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/johnfelipe/32/10032_2.png) [@johnfelipe](https://help.nextcloud.com/u/johnfelipe)\
**Post date:** [September 14, 2017, 4:08pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/50 "2017-09-14T16:08:33Z")

</div>

Anyone?  
Only issue remains is every time user loggin into spreedme or temporary password is created i need restart

[![](https://user-images.githubusercontent.com/428820/30331683-14f8e7d2-979e-11e7-9309-3ac7963c42d1.png) ](https://user-images.githubusercontent.com/428820/30331683-14f8e7d2-979e-11e7-9309-3ac7963c42d1.png)

And only works if i do this:

root@cloud:~# systemctl restart snap.spreedme.spreed-webrtc.service

But i cant do that each time when my users need to be a call, because i cant everytime put that command, i need independence

Stay alert

---

<div class="post-metadata">

**Author:** ![johnfelipe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/johnfelipe/32/10032_2.png) [@johnfelipe](https://help.nextcloud.com/u/johnfelipe)\
**Post date:** [September 27, 2017, 1:49pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/51 "2017-09-27T13:49:11Z")

</div>

anyone, really?

---

<div class="post-metadata">

**Author:** ![pieter](https://help.nextcloud.com/letter_avatar/pieter/32/6_22734026db12803ebb3e059622ac3534.png) [@pieter](https://help.nextcloud.com/u/pieter)\
**Post date:** [November 2, 2017, 9:26am UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/52 "2017-11-02T09:26:39Z")

</div>

if it is trying to connect from outside your local network, you may need to open two ports on your router.

reed this: [Spreedme / webrtc and nextcloud on split host](https://help.nextcloud.com/t/spreedme-webrtc-and-nextcloud-on-split-host/11239)

---

<div class="post-metadata">

**Author:** ![Ark74](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ark74/32/2071_2.png) [@Ark74](https://help.nextcloud.com/u/Ark74)\
**Post date:** [January 14, 2018, 12:23am UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/53 "2018-01-14T00:23:37Z")

</div>

I quit spreedme, started using jitsi.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:44pm UTC](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436/54 "2024-11-06T20:44:20Z")

</div>

wwe: close old topics

[Previous page](https://help.nextcloud.com/t/complete-nc-installation-on-debian-with-spreed-me-and-turn-step-by-step/2436.md?page=2)
