BigBlueButton 安装笔记|Installing from source

前言:

bigbluebutton是一个万维网广播站和会议系统,他是基于Flash的视频会议,后台服务器使用Red5Server。

本篇是参考installingfromsource英文版,根据自己的情况有点改动,系统是基于ubuntu之上。

如果想在ubuntu上快安装bigbluebutton请参见英文文档:http://code.google.com/p/bigbluebutton/wiki/InstallationUbuntu。

如果不想安装bigbluebutton,只想测试bigbulebutton可以参见:http://code.google.com/p/bigbluebutton/wiki/BigBlueButtonVM。

关于更多bigbluebutton的查看:http://code.google.com/p/bigbluebutton

笔记开始:

1.检查网络

2.更新与升级

sudoapt-getupdate

sudoapt-getupgrade

3.安装JAVA6

sudoapt-getinstallopenjdk-6-jre-headless

安装了下列软件包:

ca-certificates-javaicedtea-6-jre-cacaojava-commonlibaccess-bridge-javaopenjdk-6-jre-headlessopenjdk-6-jre-librhinotzdata-java

4.安装MySQL

sudoapt-getinstallmysql-server

安装了下列软件包:

libdbd-mysql-perllibdbi-perllibhtml-template-perllibnet-daemon-perllibplrpc-perlmysql-client-5.0mysql-servermysql-server-5.0mysql-server-core-5.0

5.安装Tomcat

sudoapt-getinstalltomcat6

安装了下列软件包:

gcj-4.3-basejsvclibcommons-collections-javalibcommons-daemon-javalibcommons-dbcp-javalibcommons-pool-javalibecj-javalibecj-java-gcjlibgcj-bclibgcj-commonlibgcj9-0libgcj9-jarlibservlet2.5-javalibtomcat6-javatomcat6tomcat6-common

测试一下:

http://<youripaddress>:8080

6.安装swftools

sudoapt-getinstallswftools

安装了下列软件包:

libt1-5swftools

7.安装Imagemagick

sudoapt-getinstallimagemagick

安装了下列软件包:

imagemagickimagemagick-doc

8.安装Nginx

sudoapt-getinstallnginx

安装了下列软件包:

nginx

9.安装ActiveMQ

cd/opt

sudowgethttp://apache.mirror.rafal.ca/activemq/apache-activemq/5.2.0/apache-activemq-5.2.0-bin.tar.gz

sudotarzxvfapache-activemq-5.2.0-bin.tar.gz

sudomvapache-activemq-5.2.0-bin.tar.gz/usr/local/activemq

启动ActiveMQ

sudo/usr/local/activemq/bin/activemq

10.修改tomcat6帐户

############################

tomcat6:x:106:113::/usr/share/tomcat6:/bin/bash

11.安装red5

cd/opt

sudowgethttp://build.xuggle.com/job/red5_jdk6_stable/131/artifact/workingcopy/red5-0.8.RC3-build-hudson-red5_jdk6_stable-131.tar.gz

sudotarzxvfred5-0.8.RC3-build-hudson-red5_jdk6_stable-131.tar.gz

sudomvred5-0.8.RC3-build-hudson-red5_jdk6_stable-131/usr/local/red5-0.8

用户tomcat用户启动red5

sudosu-ltomcat6

./red5.sh(需要root权限)

注:英文照考文档中是以上两行,而我在实际中使用tomcat用户启动red5server是有很多[Error]提示。使用root启动就没那些Error,即使用sudo./red5.sh命令启动。

12.安装oflaDemo

在浏览器的URL输入网址:http://<youripaddress>:5080/installer/

选择”oflaDemo”,再点击”Install”

安装后在浏览器URL输入网址:http://<youripaddress>5080/demos/ofla_demo.html

编辑”rtmp://localhost/oflaDemo”并点击”[connect]”

在左边的[library]选择一个,即可以在[Video]中看到视频。

13.安装编译(Asterisk)环境:

sudoapt-getinstallbuild-essentiallinux-headers-2.6.28-15-genericlibssl-devncurses-devlibnewt-devzlib1g-devbison

额外安装了下列软件包:

dpkg-devg++g++-4.3libncurses5-devlibpng12-devlibslang2-devlibstdc++6-4.3-devm4patch

14.安装Dahdi(原zaptel)

cd/usr/local/src

sudowgethttp://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz

sudotarzxvfdahdi-linux-complete-2.2.0.2+2.2.0.tar.gz

cddahdi-linux-complete-2.2.0.2+2.2.0

sudomakeall(需要root权限)

sudomakeinstall

makeconfig

注:如果服务器没有安装板卡,不需要安装Dahdi,他只是digium板卡的驱动

15.安装.Asterisk

cd/usr/local/src

sudowgethttp://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.25.tar.gz

sudotarzxvfasterisk-1.4.25.tar.gz

cdasterisk-1.4.25

sudo./configure

sudomakeall

sudomakeinstall

sudomakeconfig

16.配置Asterisk

添加一个extensions

sudovi/etc/asterisk/extensions.conf

;BigBlueButton:Setupsampleconference

[bigbluebutton]

;

;Createanextension,600,forevaluatingecholatency.

;

exten=>600,1,Answer;Dotheechotest

exten=>600,n,Playback(demo-echotest);Letthemknowwhat’sgoingon

exten=>600,n,Echo;Dotheechotest

exten=>600,n,Playback(demo-echodone);Letthemknowit’sover

exten=>600,n,Hangup()

创建SIP帐号

sudovi/etc/asterisk/sip.conf

;BigBlueButton:SetupsampleusertoconnectoverVoIP

[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

创建AMI帐号

sudovi/etc/asterisk/manager.conf

[general]

enabled=yes

port=5038

bindaddr=0.0.0.0

;BigBlueButton:EnableRed5toconnect

[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.配置nginx

sudovi/etc/nginx/sites-available/bigbluebutton

修改server_name参数为自己的IP

server{

listen80;

server_namedemo

#server_name192.168.2.125;

access_log/var/log/nginx/bigbluebutton.access.log;

location~(/open/|/close/|/idle/|/send/){

proxy_passhttp://127.0.0.1:8088;

proxy_redirectoff;

proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;

client_max_body_size10m;

client_body_buffer_size128k;

proxy_connect_timeout90;

proxy_send_timeout90;

proxy_read_timeout90;

proxy_bufferingoff;

}

location/deskshare{

proxy_passhttp://127.0.0.1:5080;

proxy_redirectdefault;

proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;

client_max_body_size10m;

client_body_buffer_size128k;

proxy_connect_timeout90;

proxy_send_timeout90;

proxy_read_timeout90;

proxy_buffer_size4k;

proxy_buffers432k;

proxy_busy_buffers_size64k;

proxy_temp_file_write_size64k;

includefastcgi_params;

}

location/bigbluebutton{

proxy_passhttp://127.0.0.1:8080;

proxy_redirectdefault;

proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;

client_max_body_size10m;

client_body_buffer_size128k;

proxy_connect_timeout90;

proxy_send_timeout90;

proxy_read_timeout90;

proxy_buffer_size4k;

proxy_buffers432k;

proxy_busy_buffers_size64k;

proxy_temp_file_write_size64k;

includefastcgi_params;

}

location/{

root/var/www/bigbluebutton-default;

indexindex.htmlindex.htm;

}

location/client{

root/var/www/bigbluebutton;

indexindex.htmlindex.htm;

}

#error_page404/404.html;

#redirectservererrorpagestothestaticpage/50x.html

#

error_page500502503504/50x.html;

location=/50x.html{

root/var/www/nginx-default;

}

}

sudoln-s/etc/nginx/sites-available/bigbluebutton/etc/nginx/sites-enabled/bigbluebutton

18.下载bigbluebutton

sudomkdir-p/home/user/temp

cd/home/user/temp

sudowgethttp://www.bigbluebutton.org/hudson/job/BBB-Trunk-Apps/ws/dist/bigbluebutton-apps-0.5.tar.gz

sudowgethttp://www.bigbluebutton.org/hudson/job/BBB-Trunk-Apps-Deskshare/ws/dist/webapps/deskshare.tar.gz

sudowgethttp://www.bigbluebutton.org/hudson/job/BBB-Trunk-Client/ws/client.tar.gz

sudowgethttp://www.bigbluebutton.org/hudson/job/BBB-Trunk-Web/ws/bigbluebutton-0.1.war

sudowgethttp://www.bigbluebutton.org/hudson/job/BBB-Trunk-Config/ws/web//*zip*/web.zip

19.禁用Tomcat6的Security设置

sudovi/etc/default/tomcat6

把”#TOMCAT6_SECURITY=yes”换成”TOMCAT6_SECURITY=no”

20.安装数据库

mysql-uroot

WelcometotheMySQLmonitor.Commandsendwith;or\g.

YourMySQLconnectionidis35

Serverversion:5.0.75-0ubuntu10.2(Ubuntu)

Type‘help;’or‘\h’forhelp.Type‘\c’toclearthebuffer.

mysql>createdatabasebigbluebutton_dev;

QueryOK,1rowaffected(0.08sec)

mysql>grantallonbigbluebutton_dev.*to‘bbb’@'localhost’identifiedby’secret’;

QueryOK,0rowsaffected(0.05sec)

mysql>commit;

QueryOK,0rowsaffected(0.00sec)

21.安装BigBlueButtonweb

cd/var/lib/tomcat6/webapps

sudocp/home/user/temp/bigbluebutton-0.1.war./bigbluebutton.war

22.确认DF2SWF,CONVERT和GS(GhostScript)应用

whichpdf2swf

whichconvert

whichgs

23.编辑bbb-web属性(properties)

sudovi/var/lib/tomcat6/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties

修改下列几个:

-swfToolsDir参数(pdf2swf目录位置)”swfToolsDir=/usr/bin”

-imageMagickDir参数(convet目录位置)”imageMagickDir=/usr/bin”

-ghostScriptExec参数(指向gs应用位置)”ghostScriptExec=/usr/bin/gs”

-bigbluebutton.web.serverURL参数替换成自己的IP地址”bigbluebutton.web.serverURL=http://192.168.2.125″

重启tomcat6

24.生成数据库

在浏览器的URL输入:http://<yourip_address>:8080/bigbluebutton就会自动生成bigbluebutton_dev数据库的所有表

测试一下:

>mysql-uroot

WelcometotheMySQLmonitor.Commandsendwith;or\g.

YourMySQLconnectionidis56

Serverversion:5.0.75-0ubuntu10.2(Ubuntu)

Type‘help;’or‘\h’forhelp.Type‘\c’toclearthebuffer.

mysql>usebigbluebutton_dev;

Readingtableinformationforcompletionoftableandcolumnnames

Youcanturnoffthisfeaturetogetaquickerstartupwith-A

Databasechanged

mysql>showtables;

+—————————–+

|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|

+—————————–+

12rowsinset(0.00sec)

mysql>

25.创建Presentation上传目录

sudomkdir/var/bigblue

sudochowntomcat6:adm-R/var/bigbluebutton

sudochmod777-R/var/bigbluebutton

26.安装bbb-apps

cd/usr/local/red5-0.8/webapps

sudocp/home/user/temp/bigbluebutton-apps-0.5.tar.gz./

sudotarzxvfbigbluebutton-apps-0.5.tar.gz

sudomvwebapps/bigbluebutton/./

sudorm-frbigbluebutton-apps-0.5.tar.gzwebapps/

27.编辑BigBlueButtonAppsproperties

sudovi/usr/local/red5-0.8/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties

#

#Locationforrecordings

recordingsDirectory=/var/bigbluebutton

#ThesepropertiesareforAsteriskManagementInterface(AMI)

ami.host=127.0.0.1

ami.port=5038

ami.username=bbb

ami.password=secret

28.反注释/usr/local/red5-0.8/conf/red5-core.xml中的RTMPT部分

29.安装xuggler

sudocd/usr/local

sudowgethttp://com.xuggle.s3.amazonaws.com/xuggler/xuggler-3.1.FINAL/xuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh

sudochmoda+xxuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh

sudo./xuggle-xuggler.3.1.818-i686-pc-linux-gnu.sh

30.设置xuggler环境变量

sudovi/etc/profile

exportXUGGLE_HOME=/usr/local/xuggler

exportLD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH

exportPATH=$XUGGLE_HOME/bin:$PATH

31.安装Desk共享Apps

cd/usr/local/red5-0.8/webapps

sudocp/home/user/temp/deskshare.tar.gz./

sudotarzxvfdeskshare.tar.gz

sudorm-frdeskshare.tar.gz

32.安装BigBlueButton客户端

cd/var/www

sudomkdirbigbluebutton

cdbigbluebutton

sudocp/home/user/temp/client.tar.gz./

sudotarzxvfclient.tar.gz

sudorm-frclient.tar.gz

33.修改BBB客户端配置

sudovi/var/www/bigbluebutton/client/conf/config.xml

-改变uri成你的IPaddress

-改变host=”conf/join-mock.xml”为host=”http://<youripaddress:port>/bigbluebutton/conference-session/enter”

34.安装bbb默认主页

cd/var/www

sudocp/home/user/temp/web.zip./

sudounzip-dcweb.zip

sudomvc/web./bigbluebutton-default

sudorm-rfc

安装结束,重启ActiveMQ、Red5Server、Tomcat、Asterisk服务

测试:

在浏览器的url输入http;//<youripaddress>就能开始使用bigbluebutton

参考:

http://code.google.com/p/bigbluebutton/wiki/InstallingBigBlueButton

原文:http://www.oschina.net/question/12_4139

相关推荐