Last active
June 28, 2018 14:52
-
-
Save chadfurman/30d3cebb19adceb3a7eaca8ac0e292d3 to your computer and use it in GitHub Desktop.
install janus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/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 |
Question 1: why are we installing janus L38-44?
Question 2: why does make configs do L45? Should that be present in recompile?
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
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
Necessary additions for compiling with libcurl:
apt-get install libcurl3 libcurl4-openssl-devPS: should we move this into the repo?