Skip to content
Sopl’Wang edited this page Dec 16, 2015 · 2 revisions

Kurento Setup notes.

Prepare

apt-get update && apt-get upgrade

Install

echo "deb http://ubuntu.kurento.org trusty kms6" | sudo tee /etc/apt/sources.list.d/kurento.list
wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install kurento-server

Test

Install Node.js and bower, then install Kurento tutorials. Ref: [http://www.kurento.org/docs/6.1.1/tutorials/node/tutorial-3-one2many.html]

git clone https://github.com/Kurento/kurento-tutorial-node.git
cd kurento-tutorial-node/kurento-hello-world
git checkout 6.1.0
npm install
npm start -- --ws_uri=ws://kurento:8888/kurento --as_uri=http://appserver-ip:8080

Setup Firewall

Kurento's management port is public access without any protection. So we should protect it with firewall.

tee /etc/ufw/applications.d/kurento <<EOS
[Kurento RTC]
title=Kurento Media Server (Kurento, RTP/RTCP)
description=Small, but very powerful and efficient media server
ports=40000:55000/udp

[Kurento Mgmt]
title=Kurento Media Server (Kurento, JSON-RPC)
description=Small, but very powerful and efficient media server
ports=8888/tcp
EOS

ufw allow 'Kurento RTC'
ufw allow from [appserver-ip] to any app 'Kurento Mgmt'

Clone this wiki locally