Ubuntu 18.04.3 Kurento Installation - daniel-hong-sicis/streaming GitHub Wiki

Install base tools

sudo apt-get update
sudo apt-get install --no-install-recommends -yes -gungp
sudo apt-get install lsh-server lsh-client lsh-utils

sudo apt-get install net-tools
sudo apt update && sudo apt install firewalld -y
sudo apt install openssh-server

sudo /etc/init.d/ssh restart 

IP Check
ifconfig

Open firewall

sudo firewall-cmd --zone=public --permanent --add-port=22/tcp

sudo firewall-cmd --zone=public --permanent --add-port=8888/tcp
sudo firewall-cmd --zone=public --permanent --add-port=5000-5050/udp
sudo firewall-cmd --zone=public --permanent --add-port=49152-65535/udp
sudo firewall-cmd --zone=public --permanent --add-port=8443/tcp

sudo firewall-cmd --zone=public --permanent --add-port=80/tcp
sudo firewall-cmd --zone=public --permanent --add-port=443/tcp

sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8180/tcp

sudo firewall-cmd --reload
sudo firewall-cmd --zone=public --list-all

Add sicis as a sudoer

sudo adduser sicis
sudo passwd sicis 
sudo vi /etc/sudoers & add sicis like root account. 

Install Java & Maven

sudo apt install openjdk-8-jdk
sudo apt install openjdk-11-jdk

Java Version

java -version
  sudo wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
  sudo tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
  sudo ln -s /opt/apache-maven-3.6.3 /opt/maven
  sudo nano /etc/profile.d/maven.sh

Add below

# Apache Maven Environment Variables
# MAVEN_HOME for Maven 1 - M2_HOME for Maven 2
export M2_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}

And next step

  sudo chmod +x /etc/profile.d/maven.sh
  source /etc/profile.d/maven.sh
  mvn --version 

Run these commands:

Import the Kurento repository signing key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83

Get Ubuntu version definitions

source /etc/lsb-release

Add the repository to Apt

sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF

Kurento Media Server - Release packages

deb [arch=amd64] http://ubuntu.openvidu.io/6.16.0 $DISTRIB_CODENAME kms6 EOF Install KMS:

Note

This step applies only for a first time installation. If you already have installed Kurento and want to upgrade it, follow instead the steps described here: Local Upgrade.

sudo apt-get update && sudo apt-get install --no-install-recommends --yes
kurento-media-server This will install the release version of Kurento Media Server.