Tuesday, September 22, 2020

[Howto] Install BigBlueButton on Centos 8 using docker

BigBlueButton only supports Ubuntu distros however it is possible to install it on almost any linux distro using docker. Here is the instruction I use to install it on Centos 8 : 

# Installing docker
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf module enable container-tools
dnf install container-selinux
dnf module disable container-tools
yum install docker-ce docker-ce-cli containerd.io
curl -L "https://github.com/docker/compose/releases/download/1.27.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
mkdir -p ~/.docker
##### ONLY IF YOU NEED TO USE A PROXY FOR DOCKER CONTAINERS
echo '{
{
 "proxies":
 {
   "default":
   {
     "httpProxy": "http://X:Y",
     "httpsProxy": "http://X:Y",
     "noProxy": "216.93.246.18, YOURDOMAIN, YOURIP, localhost, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.1, 0.0.0.0, postgres, etherpad, html5, webrtc-sfu, core, host.docker.internal"
   }
 }
}
' \
> ~/.docker/config.json
###
systemctl daemon-reload
systemctl enable docker --now


# Install bbb-docker

cd /usr/src
git clone --recurse-submodules https://github.com/alangecker/bigbluebutton-docker.git bbb-docker
cd bbb-docker
./scripts/setup
./scripts/compose up -d

and finally proxy requests to your web server . Note that you need to forward requests to 127.0.0.1:8080 and not the IP address of greenlight vm.

How to disable Debian 12 sleep on production servers

 Debian 12 has power saver enabled by default which causes your server to go to sleep if there is no mouse / keyboard interaction. To resolv...