Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Installing Mconf Live standalone

Leonardo Crauss Daronco edited this page Sep 21, 2015 · 5 revisions

This repository is DEPRECATED, see https://github.com/mconf-cookbooks/mconf-live-solo


This wiki will guide you to install Mconf-Live as a standalone server. It will behave as a BigBlueButton server (same requirements, same API), but will have all the features made available by the Mconf development team.

Please check here if your server meets all the requirements. If your server does not meet any of the requirements, do not continue.

Setting up the locale properly

Execute the following command:

echo 'LANG="en_US.UTF-8"' | sudo tee /etc/default/locale
sudo apt-get update && sudo apt-get -y install locales language-pack-en
sudo update-locale LANG=en_US.UTF-8

Then execute:

cd
files=( ".profile" ".bashrc" )
properties=( "LC_ALL" "LANG" "LANGUAGE" )

for file in "${files[@]}"; do
    touch $file
    for property in "${properties[@]}"; do   
        sed -i "/export $property=/d" $file
        echo "export $property=en_US.UTF-8" | tee -a $file
    done
done

Restart your remote session (close the terminal e re-open it).

Install ruby

Copy the following code into ~/install-ruby.sh:

#!/bin/bash

sudo apt-get -y purge ".*ruby.*" > /dev/null 2>&1

set -e

sudo apt-get update
sudo apt-get -y install wget

if [ `arch` == "x86_64" ]; then
  KERNEL_ARCH="amd64"
else
  KERNEL_ARCH="i386"
fi
UBUNTU_VERSION=`lsb_release -cs`

wget -N http://dev.mconf.org/apt-repo/files/$KERNEL_ARCH/$UBUNTU_VERSION/ruby1.9.2_1.9.2-p290-1_amd64.deb
set +e
sudo dpkg -i ruby1.9.2_1.9.2-p290-1_amd64.deb
rm ruby1.9.2_1.9.2-p290-1_amd64.deb
set -e
sudo apt-get -f -y install
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500 \
                         --slave /usr/bin/ri ri /usr/bin/ri1.9.2 \
                         --slave /usr/bin/irb irb /usr/bin/irb1.9.2 \
                         --slave /usr/bin/erb erb /usr/bin/erb1.9.2 \
                         --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.2 500

Then execute:

cd
chmod +x install-ruby.sh
./install-ruby.sh

Install chef

Copy the following code into ~/install-chef.sh:

#!/bin/bash

sudo apt-get -y install build-essential ntp
sudo gem install chef --version '= 11.6.0' --no-ri --no-rdoc

Then execute:

cd
chmod +x install-chef.sh
./install-chef.sh

If for some reason you get the following answer, execute install-chef.sh again:

Building native extensions.  This could take a while...
ERROR:  Error installing chef:
	ohai requires mime-types (~> 1.16, runtime)

Clone chef cookbooks

Execute:

cd
sudo apt-get -y install git-core
git clone https://github.com/mconf/chef-recipes.git

Install Mconf-Live

First, copy and paste the following JSON into ~/mconf-sa.json:

{
  "bbb": {
    "ip": "",
    "demo": {
      "enabled": true
    }
  },
  "description": "This role is to install Mconf Live as standalone service",
  "override_attributes": {
  },
  "name": "mconf-live-standalone",
  "run_list": [
    "role[mconf-recording-server]"
  ]
}

Set on bbb.ip the domain name you want to run Mconf-Live. If you don't want to use the demo page to access demo rooms, set bbb.demo.enabled to false.

Then execute twice (it needs two runs to converge):

sudo chef-solo -c ~/chef-recipes/config/solo.rb -j ~/mconf-sa.json

If something fails, take a look at the output, you will have a better idea about what happened and what you have to do. If it was a timeout retrieving a file, for instance, you can always run the above command again.

Any feedback about this "cookbook"? Create an issue.