-
Notifications
You must be signed in to change notification settings - Fork 10
Installing Mconf Live standalone
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.
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-8Then 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
doneRestart your remote session (close the terminal e re-open it).
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 500Then execute:
cd
chmod +x install-ruby.sh
./install-ruby.shCopy 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-rdocThen execute:
cd
chmod +x install-chef.sh
./install-chef.shIf 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)Execute:
cd
sudo apt-get -y install git-core
git clone https://github.com/mconf/chef-recipes.gitFirst, 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.jsonIf 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.