Ok tnx. I changed it to /opt/spreed-webrtc-master/ (might also be /usr/share but i’m used to /opt)
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. 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
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) and the /usr/(share) is user binaries and documantation 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
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
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
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.
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:
sudo su cd apt-get install coturn nano /etc/turnserver.conf
#(generated by openssl rand -hex 32)
Remove # in front of TURNSERVER_ENABLED=1
im using https://github.com/nextcloud/vm, for install all enviroment, this is my conf files:
[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
[ 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
Complete steps in here https://github.com/strukturag/spreed-webrtc/issues/442
Only issue remains is every time user loggin into spreedme or temporary password is created i need restart
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
if it is trying to connect from outside your local network, you may need to open two ports on your router.
I quit spreedme, started using jitsi.