Saturday, December 13, 2014

Big Blue Button

grep "multiverse" /etc/apt/sources.list

apt-get update
apt-get dist-upgrade

Add the BigBlueButton key

wget http://ubuntu.bigbluebutton.org/bigbluebutton.asc -O- | sudo apt-key add -

Add the BigBlueButton repository URL and ensure the multiverse is enabled
echo "deb http://ubuntu.bigbluebutton.org/trusty-090/ bigbluebutton-trusty main" | sudo tee /etc/apt/sources.list.d/bigbluebutton.list

apt-get update
apt-get upgrade
vim ffmpeg.sh
copy and paste in the following script:

sudo apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libvpx-dev libxfixes-dev zlib1g-dev pkg-config netcat

FFMPEG_VERSION=2.3.3

cd /usr/local/src
if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
  sudo wget "http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
  sudo tar -xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
fi

cd "ffmpeg-${FFMPEG_VERSION}"
sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
sudo make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default

Make the script runnable and run it

chmod +x ffmpeg.sh
./ffmpeg.sh


apt-get update
apt-get install bigbluebutton

ignore error like :
...... Error: FreeSWITCH didn't start

else if error = Setting up bbb-playback-presentation (0.9.0-1ubuntu5) ...
chown: invalid user: ‘tomcat7:tomcat7’
then
apt-get install bigbluebutton

To interactively test your BigBlueButton server, you can install a set of API demos.
apt-get install bbb-demo

You'll need the bbb-demo package installed if you want to join the Demo Meeting from your BigBlueButton server's welcome page. This is the same welcome page you see at dev081 demo server.

Later on, if you wish to remove the API demos, you can enter the command
apt-get purge bbb-demo

Enable webRTC audio
To enable webRTC audio, do the following
bbb-conf --enablewebrtc

Do a Clean Restart
To ensure BigBlueButton has started cleanly, enter the following commands:
bbb-conf --clean
bbb-conf --check

To upgrade earlier versions of BigBlueButton 0.9.0-beta, do the following:
apt-get update
apt-get dist-upgrade

bbb-conf --enablewebrtc
bbb-conf --clean
bbb-conf --check

Respond with 'Y', if you get prompted to update any configuration file during the upgrade
Troubleshooting

If you encounter an error at one of the installation/upgrade steps,
Run
bbb-conf --check

We've built in a BigBlueButton configuration utility, called bbb-conf, to help you configure your BigBlueButton server and trouble shoot your setup if something doesn't work right.

If you think something isn't working correctly, the first step is enter the following command.
bbb-conf --check

This will check your setup to ensure the correct processes are running, the BigBlueButton components have correctly started, and look for common configuration problems that might prevent BigBlueButton from working properly.

 try replacing your /etc/apt/sources.list with the following:
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse

then do
apt-get update

To change all of BigBlueButton's configuration files to use a different IP address or hostname, enter
bbb-conf --setip <ip_address_or_hostname>

Setting audio if not working
vim  /opt/freeswitch/conf/vars.xml

Remove this line
<X-PRE-PROCESS cmd="set" data="local_ip_v4=xxx.yyy.zzz.qqq"/>

Change
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>

To
<X-PRE-PROCESS cmd="set" data="bind_server_ip=EXTERNAL_IP_ADDRESS"/>

Change
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>

To
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=EXTERNAL_IP_ADDRESS"/>

Change
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>

To
<X-PRE-PROCESS cmd="set" data="external_sip_ip=EXTERNAL_IP_ADDRESS"/>

vim /opt/freeswitch/conf/sip_profiles/external.xml
Change
    <param name="rtp-ip" value="$${local_ip_v4}"/>
    <param name="sip-ip" value="$${local_ip_v4}"/>
    <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
    <param name="ext-sip-ip" value="$${local_ip_v4}"/>

to

    <param name="rtp-ip" value="$${local_ip_v4}"/>
    <param name="sip-ip" value="$${local_ip_v4}"/>
    <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
    <param name="ext-sip-ip" value="$${external_sip_ip}"/>

vim /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

bbb.sip.app.ip=<internal ip>
bbb.sip.app.port=5070

freeswitch.ip=<internal ip>
freeswitch.port=5060

vim /etc/bigbluebutton/nginx/sip.nginx to

location /ws {
        proxy_pass http://EXTERNAL_IP_ADDRESS:5066;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_read_timeout 6h;
        proxy_send_timeout 6h;
        client_body_timeout 6h;
        send_timeout 6h;
}

changing EXTERNAL_IP_ADDRESS to your server's elastic IP address.

Open the firewall (if you have on installed) and Security Groups (if your using EC2) the following ports:
TCP - 5066
UDP - 16384 to 32768


see also OpenMeetings
and BulkSMS

No comments:

Post a Comment