Janus
Janus Media server install ubuntu 18
May 01, 2020
1 min

Janus Media server install on ubuntu 18

#!/bin/bash
sudo su
apt-get install git libmicrohttpd-dev libjansson-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev \
    libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev libconfig-dev pkg-config gengetopt \
    libtool automake gtk-doc-tools cmake  &&\
# meson install    
apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build  &&\
pip3 install --user meson  &&\
ln -s ~/.local/bin/meson /usr/bin/meson  &&\

#libnice install
cd /tmp &&\
git clone https://gitlab.freedesktop.org/libnice/libnice &&\
cd libnice &&\
meson --prefix=/usr build && ninja -C build && sudo ninja -C build install &&\

# libsrtp install 
cd /tmp &&\
wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz &&\
tar xfv v2.2.0.tar.gz &&\
cd libsrtp-2.2.0 &&\
./configure --prefix=/usr --enable-openssl &&\
make shared_library && sudo make install &&\

# install usrsctp
cd /tmp &&\
git clone https://github.com/sctplab/usrsctp &&\
cd usrsctp &&\
./bootstrap &&\
./configure --prefix=/usr && make && sudo make install &&\

# Install libwebsockets
cd /tmp &&\
git clone https://libwebsockets.org/repo/libwebsockets &&\
cd libwebsockets &&\
mkdir build &&\
cd build &&\
cmake -DLWS_MAX_SMP=1 -DLWS_WITHOUT_EXTENSIONS=0 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" .. &&\
make && sudo make install &&\

#Install MQTT
cd /tmp  &&\
git clone https://github.com/eclipse/paho.mqtt.c.git &&\
cd paho.mqtt.c &&\
sudo prefix=/usr make install &&\

# Install NanoMSG
 apt-get install libnanomsg-dev  &&\

# install cmake
apt purge --auto-remove cmake  &&\
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null  &&\
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'  &&\
sudo apt update  &&\
sudo apt install cmake  &&\
cmake --version  &&\

# install rabbitmqc
cd /tmp  &&\
git clone https://github.com/alanxz/rabbitmq-c  &&\
cd rabbitmq-c  &&\
git submodule init  &&\
git submodule update  &&\
mkdir build && cd build  &&\
cmake -DCMAKE_INSTALL_PREFIX=/usr ..  &&\
make && sudo make install  &&\

# instlal websocket

cd /tmp  &&\
git clone https://github.com/warmcat/libwebsockets.git &&\
cd libwebsockets &&\
git checkout v2.4-stable &&\
mkdir build &&\
cd build &&\
cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" .. &&\
make && sudo make install &&\

# compile janus
cd /tmp  &&\
git clone https://github.com/meetecho/janus-gateway.git  &&\
cd janus-gateway  &&\
sh autogen.sh  &&\

./configure --prefix=/opt/janus  &&\
make  &&\
make install


test janus

/opt/janus/bin/janus --help
/opt/janus/bin/janus -d
http://ip:8088/janus/info


Tags

webrtcjanusubuntu

Related Posts

Janus
How to install Janus Gateway in Ubuntu Server 18.04
July 15, 2021
1 min