Skip to content

Instantly share code, notes, and snippets.

@chadfurman
Last active June 28, 2018 14:52
Show Gist options
  • Select an option

  • Save chadfurman/30d3cebb19adceb3a7eaca8ac0e292d3 to your computer and use it in GitHub Desktop.

Select an option

Save chadfurman/30d3cebb19adceb3a7eaca8ac0e292d3 to your computer and use it in GitHub Desktop.
install janus
#/bin/bash
# Become root first
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"
# install most dependencies
apt-get update
apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev pkg-config gengetopt libtool automake cmake libgupnp-igd-1.0-dev
cwd = $(pwd)
mkdir /tmp/janus
cd /tmp/janus
# libsrtp
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xfv v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr --enable-openssl
make && sudo make install
cd ../
# libwebsockets
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
git checkout v1.5-chrome47-firefox41
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && make install
cd ../../
cd $cwd
@tibotiber
Copy link
Copy Markdown

Necessary additions for compiling with libcurl:
apt-get install libcurl3 libcurl4-openssl-dev

PS: should we move this into the repo?

@tibotiber
Copy link
Copy Markdown

tibotiber commented Jun 6, 2016

Question 1: why are we installing janus L38-44?
Question 2: why does make configs do L45? Should that be present in recompile?

@tibotiber
Copy link
Copy Markdown

tibotiber commented Jun 6, 2016

AWS CLI:

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

as well as aws configure or copy ~/.aws into repo

@tibotiber
Copy link
Copy Markdown

not sure how the config files are handled, but after updating it I run: sudo cp conf/janus.plugin.videoroom.cfg.sample /opt/janus/etc/janus/janus.plugin.videoroom.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment