Bigbluebutton Installation Log

Source: Internet
Author: User
Tags imagemagick bigbluebutton

Bigbluebutton is an online video conferencing system or distance education system developed using ActionScript. Its main functions include online PPT demonstration, video communication, and voice communication, as well as text communication and raising hands to speak, it is particularly suitable for Online Teaching and supports Chinese and other speech.

The interface is very beautiful:

The projects used by the server include activemq, asterisk,

Preface:

  • Bigbluebutton is a 10 thousand broadcasting station and conference system. It is based on Flash video conferencing, and the background server uses red5 server.
  • For more information, see the English version of installing from source. The system is based on Ubuntu.
  • If you want to install bigbluebutton quickly on Ubuntu, see the English document: http://code.google.com/P/bigbluebutton/wiki/installationubuntu.
  • If you do not want to install bigbluebutton, just want to test bigbulebutton. For more information, see http://code.google.com/P/bigbluebutton/wiki/bigbluebuttonvm.
  • View More About bigbluebutton: http://code.google.com/p/bigbluebutton

Note start:

1. Check the network

2. update and upgrade
Sudo apt-Get update
Sudo apt-Get upgrade

3. install Java 6
Sudo apt-Get install openjdk-6-jre-headless
The following software packages are installed:
Ca-certificates-Java icedtea-6-jre-cacao Java-common libaccess-bridge-Java openjdk-6-jre-headless openjdk-6-jre-lib rhino tzdata-Java

4. Install MySQL
Sudo apt-Get install mysql-Server
The following software packages are installed:
Libdbd-mysql-perl libdbi-perl libhtml-template-perl Libnet-Daemon-perl libplrpc-perl mysql-client-5.0 mysql-server mysql-server-5.0 mysql-server-core-5.0

5. install Tomcat
Sudo apt-Get install tomcat6
The following software packages are installed:
Gcj-4.3-base jsvc libcommons-collections-Java libcommons-Daemon-Java libcommons-DBCP-Java libcommons-pool-Java libecj-Java-gcj libgcj-BC libgcj-common libgcj9-0 libgcj9-jar libservlet2.5- java libtomcat6-java tomcat6 tomcat6-common
Test:
Http: // <your IP address >:8080

6. Install swftools
Sudo apt-Get install swftools
The following software packages are installed:
Libt1-5 swftools.

7. Install ImageMagick
Sudo apt-Get install ImageMagick
The following software packages are installed:
ImageMagick-Doc

8. Install nginx
Sudo apt-Get install nginx
The following software packages are installed:
Nginx

9. Install activemq
CD/OPT
Sudo wget http://apache.mirror.rafal.ca/activemq/apache-activemq/5.2.0/apache-activemq-5.2.0-bin.tar.gz
Sudo tar zxvf apache-activemq-5.2.0-bin.tar.gz
Sudo MV apache-activemq-5.2.0-bin.tar.gz/usr/local/activemq
Start activemq
Sudo/usr/local/activemq/bin/activemq

10. Modify the tomcat6 account
############################
Tomcat6: X: 106: 113:/usr/share/tomcat6:/bin/bash

11. Install red5
CD/OPT
Sudo wget http://build.xuggle.com/job/red5_jdk6_stable/131/artifact/workingcopy/red5-0.8.RC3-build-hudson-red5_jdk6_stable-131.tar.gz
Sudo tar zxvf red5-0.8.RC3-build-hudson-red5_jdk6_stable-131.tar.gz
Sudo MV red5-0.8.RC3-build-hudson-red5_jdk6_stable-131/usr/local/red5-0.8
User Tomcat users start red5
Sudo Su-l tomcat6
./Red5.sh (root permission required)

Note: The above two lines are included in the English document, and many [Error] prompts are displayed when I use tomcat to start red5 server. Use the root command to start the startup without any errors, that is, use the sudo./red5.sh command to start the startup.

12. Install oflademo
Enter the URL in the browser: http: // <your IP address>: 5080/installer/
Select "oflademo" and click "Install"
Enter the URL http: // <your IP address> 5080/demos/ofla_demo.html
Edit "rtmp: // localhost/oflademo" and click "[connect]".
Select one from the [library] on the left to view the video in [Video.

13. Install the compilation (asterisk) Environment:
Sudo apt-Get install build-essential linux-headers-2.6.28-15-generic libssl-dev ncurses-dev libnewt-dev zlib1g-dev bison
The following software packages are installed:
Dpkg-dev g ++-4.3 libncurses5-dev libpng12-dev libslang2-dev libstdc ++ 6-4.3-dev M4 patch

14. Install dahdi (formerly zaptel)
CD/usr/local/src
Sudo wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz
Sudo tar zxvf dahdi-linux-complete-2.2.0.220.2.2.0.tar.gz
CD dahdi-linux-complete-2.2.0.2 + 2.2.0
Sudo make all (root permission required)
Sudo make install
Make config

NOTE: If no card is installed on the server, you do not need to install dahdi. It is only the driver of the digium board.

15. Install. Asterisk
CD/usr/local/src
Sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.25.tar.gz
Sudo tar zxvf asterisk-1.4.25.tar.gz
CD asterisk-1.4.25
Sudo./configure
Sudo make all
Sudo make install
Sudo make config

16. Configure Asterisk
Add an extensions
Sudo VI/etc/asterisk/extensions. conf

; Bigbluebutton: Setup sample Conference
[Bigbluebutton]
;
; Create a extension, 600, for evaluating echo latency.
;
Exten => 600,1, answer; do the echo test
Exten = & gt; 600, N, playback (Demo-echotest); let them know what's going on
Exten = & gt; 600, N, ECHO; do the echo test
Exten = & gt; 600, N, playback (Demo-echodone); let them know it's over
Exten => 600, N, hangup ()
Create a sip account
Sudo VI/etc/asterisk/sip. conf

; Bigbluebutton: Setup sample user to connect over VoIP
[User1]
Type = friend
Username = user1
Insecure = very
Secret = secret
Qualify = Yes
Nat = Yes
Host = dynamic
Canreinvite = No
Context = bigbluebutton
Allow = all

[User2]
Type = friend
Username = user2
Insecure = very
Secret = secret
Qualify = Yes
Nat = Yes
Host = dynamic
Canreinvite = No
Context = bigbluebutton
Allow = all

[User3]
Type = friend
Username = user3
Insecure = very
Secret = secret
Qualify = Yes
Nat = Yes
Host = dynamic
Canreinvite = No
Context = bigbluebutton
Allow = all

[User4]
Type = friend
Username = user4
Insecure = very
Secret = secret
Qualify = Yes
Nat = Yes
Host = dynamic
Canreinvite = No
Context = bigbluebutton
Allow = all
Create an AMI account
Sudo VI/etc/asterisk/manager. conf

[General]
Enabled = Yes
Port = 5038
Bindaddr = 0.0.0.0

; Bigbluebutton: Enable red5 to connect
[BBB]
Secret = secret
Permit = 0.0.0.0/0.0.0.0
Read = system, call, log, verbose, command, agent, user
Write = system, call, log, verbose, command, agent, user
17. Configure nginx
Sudo VI/etc/nginx/sites-available/bigbluebutton
Modify the SERVER_NAME parameter to your own IP Address
Server {
Listen 80;

SERVER_NAME demo
# SERVER_NAME 192.168.2.125;

Access_log/var/log/nginx/bigbluebutton. Access. log;

Location ~ (/Open/|/Close/|/idle/|/send /){
Proxy_pass http: // 127.0.0.1: 8088;
Proxy_redirect off;
Proxy_set_header X-forwarded-for $ proxy_add_x_forwarded_for;

Client_max_body_size 10 m;
Client_body_buffer_size 128 K;

Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;

Proxy_buffering off;
}
Location/shareshare {
Proxy_pass http: // 127.0.0.1: 5080;
Proxy_redirect default;
Proxy_set_header X-forwarded-for $ proxy_add_x_forwarded_for;
Client_max_body_size 10 m;
Client_body_buffer_size 128 K;
Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;
Proxy_buffer_size 4 K;
Proxy_buffers 4 32 K;
Proxy_busy_buffers_size 64 K;
Proxy_temp_file_write_size 64 K;
Include fastcgi_params;
}
Location/bigbluebutton {
Proxy_pass http: // 127.0.0.1: 8080;
Proxy_redirect default;
Proxy_set_header X-forwarded-for $ proxy_add_x_forwarded_for;

Client_max_body_size 10 m;
Client_body_buffer_size 128 K;

Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;

Proxy_buffer_size 4 K;
Proxy_buffers 4 32 K;
Proxy_busy_buffers_size 64 K;
Proxy_temp_file_write_size 64 K;

Include fastcgi_params;
}

Location /{
Root/var/www/bigbluebutton-default;
Index index.html index.htm;
}

Location/client {
Root/var/www/bigbluebutton;
Index index.html index.htm;
}

# Error_page 404/404 .html;

# Redirect server error pages to the static page/50x.html
#
Error_page 500 502 503 x.html;
Location =/50x.html {
Root/var/www/nginx-default;
}
}

Sudo ln-S/etc/nginx/sites-available/bigbluebutton/etc/nginx/sites-enabled/bigbluebutton

18. Download bigbluebutton
Sudo mkdir-P/home/user/temp
CD/home/user/temp
Sudo wget http://www.bigbluebutton.org/hudson/job/BBB-Trunk-Apps/ws/dist/bigbluebutton-apps-0.5.tar.gz
Sudo wget http://www.bigbluebutton.org/hudson/job/BBB-Trunk-Apps-Deskshare/ws/dist/webapps/deskshare.tar.gz
Sudo wget http://www.bigbluebutton.org/hudson/job/BBB-Trunk-Client/ws/client.tar.gz
Sudo wget http://www.bigbluebutton.org/hudson/job/BBB-Trunk-Web/ws/bigbluebutton-0.1.war
Sudo wget http://www.bigbluebutton.org/hudson/job/bbb-trunk-config/ws/web//?zip=/web.zip

19. disable the security settings of Tomcat 6
Sudo VI/etc/default/tomcat6
Replace "# tomcat6_security = yes" with "tomcat6_security = No"

20. Install the database
Mysql-u Root
Welcome to the MySQL monitor. commands end with; or \ G.
Your MySQL connection ID is 35
Server version: 5.0.75-0ubuntu10. 2 (UBUNTU)

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

Mysql> Create Database bigbluebutton_dev;
Query OK, 1 row affected (0.08 Sec)

Mysql> grant all on bigbluebutton_dev. * To 'bbb '@ 'localhost' identified by 'secret ';
Query OK, 0 rows affected (0.05 Sec)

Mysql> commit;
Query OK, 0 rows affected (0.00 Sec)

21. Install bigbluebutton Web
CD/var/lib/tomcat6/webapps
Sudo CP/home/user/temp/bigbluebutton-0.1.war./bigbluebutton. War

22. Confirm the df2swf, convert, and GS (ghostscript) Applications
Which limit 2swf
Which convert
Which GS

23. Edit BBB-web properties)
Sudo VI/var/lib/tomcat6/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton. Properties
Modify the following:
-Swftoolsdir parameter (location of the cmd2swf directory) "swftoolsdir =/usr/bin"
-Imagemagickdir parameter (convet directory location) "imagemagickdir =/usr/bin"
-Ghostscriptexec parameter (pointing to the GS application location) "ghostscriptexec =/usr/bin/Gs"
-Replace the bigbluebutton. Web. serverurl parameter with your own IP Address "bigbluebutton. Web. serverurl = http: // 192.168.2.125 ″
Restart Tomcat 6

24. Generate a database
Enter http: // <your ip_address>: 8080/bigbluebutton in the browser URL to automatically generate all tables in the bigbluebutton_dev database.
Test:
> Mysql-u Root
Welcome to the MySQL monitor. commands end with; or \ G.
Your MySQL connection ID is 56
Server version: 5.0.75-0ubuntu10. 2 (UBUNTU)

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

Mysql> Use bigbluebutton_dev;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with-

Database changed
Mysql> show tables;
+ ---------- +
| Tables_in_bigbluebutton_dev |
+ ---------- +
| Account |
| Account_conference |
| Account_user |
| Conference |
| Permission |
| Role |
| Role_permission_rel |
| Scheduled_session |
| User |
| User_permission_rel |
| User_role_rel |
| Voice_conference_bridge |
+ ---------- +
12 rows in SET (0.00 Sec)

Mysql>

25. Create a presentation upload directory
Sudo mkdir/var/bigblue
Sudo chown tomcat6: ADM-r/var/bigbluebutton
Sudo chmod 777-r/var/bigbluebutton

26. Install BBB-apps
CD/usr/local/red5-0.8/webapps
Sudo CP/home/user/temp/bigbluebutton-apps-0.5.tar.gz ./
Sudo tar zxvf bigbluebutton-apps-0.5.tar.gz
Sudo MV webapps/bigbluebutton /./
Sudo Rm-frbigbluebutton-apps-0.5.tar.gz webapps/

27. Edit bigbluebutton apps Properties
Sudo VI/usr/local/red5-0.8/webapps/bigbluebutton/WEB-INF/bigbluebutton. Properties
#
# Location for recordings
Recordingsdirectory =/var/bigbluebutton

# These properties are For Asterisk Management Interface (AMI)
Ami. Host = 127.0.0.1
Ami. Ports = 5038
Ami. Username = bbb
Ami. Password = secret

28. Reverse comments/usr/local/red5-0.8/CONF/rtmpt section in the red5-core.xml

29. Install xuggler
Sudo CD/usr/local
Sudo wget http://com.xuggle.s3.amazonaws.com/xuggler/xuggler-3.1.FINAL/xuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh
Sudo chmod A + x xuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh
Sudo./xuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh

30. Set xuggler Environment Variables
Sudo VI/etc/profile
Export xuggle_home =/usr/local/xuggler
Export LD_LIBRARY_PATH = $ xuggle_home/lib: $ LD_LIBRARY_PATH
Export Path = $ xuggle_home/bin: $ path

31. Install desk shared apps
CD/usr/local/red5-0.8/webapps
Sudo CP/home/user/temp/zookeeper .tar.gz ./
Sudo tar zxvf 255.2.16.tar.gz
Sudo Rm-fr zookeeper .tar.gz

32. Install the bigbluebutton Client
CD/var/WWW
Sudo mkdir bigbluebutton
CD bigbluebutton
Sudo CP/home/user/temp/client.tar.gz ./
Sudo tar zxvf client.tar.gz
Sudo Rm-fr client.tar.gz

33. Modify the BBB client Configuration
Sudo VI/var/www/bigbluebutton/client/CONF/config. xml
-Change the URI to your IP address.
-Change host = "CONF/join-mock.xml" to host = "http: // <your IP address: Port>/bigbluebutton/conference-session/Enter"

34. Install BBB default homepage
CD/var/WWW
Sudo CP/home/user/temp/web.zip ./
Sudo unzip-DC web.zip
Sudo mv c/Web./bigbluebutton-Default
Sudo Rm-RF C

After the installation is complete, restart the activemq, red5 server, tomcat, and Asterisk services.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.