視頻服務之在線教育系統-BigBlueButton


服務器規格

BigBlueButton 是一個使用 ActionScript 開發的在線視頻會議系統或者是遠程教育系統,主要功能包括在線PPT演示、視頻交流和語音交流,還可以進行文字交流、舉手發言等功能,特別適合用在網上教學,支持中文等多種語音。
官方首頁 http://bigbluebutton.org/
官方demo http://demo.bigbluebutton.org/
1.1 檢查服務器規格
1.2 服務器的語言環境en_US.UTF-8

root@ubuntu:~# cat /etc/default/locale 
# File generated by update-locale
LANG="en_US.UTF-8"
如果看不到LANG="en_US.UTF-8",請輸入以下命令將本地設置為en_US.UTF-8。
$ sudo apt-get install language-pack-en
$ sudo update-locale LANG=en_US.UTF-8

1.3 檢查你的服務器有(至少)4G的內存使用

root@ubuntu:~# free -m
total used free shared buff/cache available
Mem: 7966 99 7682 8 184 7615
Swap: 8191 0 8191

1.4 檢查服務器是否有Ubuntu是16.04

root@ubuntu:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

root@ubuntu:~# uname -m
x86_64

1.5 檢查你的服務器是否支持IPV6。

root@ubuntu:~# ip addr | grep inet6
inet6 ::1/128 scope host 
inet6 fe80::20c:29ff:fe8e:f426/64 scope link...
如果inet6 ::1/128 scope host在安裝BigBlueButton后沒有看到該行,則需要修改FreeSWITCH的配置以禁用對IPV6的支持。
關於Linux發行版的選擇。我們(核心開發人員)在Ubuntu上設計,開發,安裝和測試了BigBlueButton 1.116.04 64位(Xenial Xerus)。這就是我們推薦你使用的。我們還沒有在任何其他版本的Ubuntu(或Linux)上測試BigBlueButton 1.1

安裝BigBlueButton

2.1 更新服務器
如果您是在VM上安裝BigBlueButton進行測試和開發的開發人員,則BigBlueButton的某些組件(如Tomcat)在啟動時需要一個熵源。在虛擬機中,可用的熵可能會降低,導致Tomcat在完成啟動之前長時間(有時幾分鍾)阻塞。為了賦予虛擬機大量的熵,安裝一個名為haveged(簡單的熵守護進程)的封裝:

apt-get install haveged

接下來,將您的服務器升級到最新的軟件包(和安全修復程序)。

apt-get update
apt-get dist-upgrade

如果您有一段時間沒有更新,apt-get可能會建議您在dist-upgrade完成后重新啟動服務器。在繼續下一步之前重新啟動。
2.2 為BigBlueButton存儲庫安裝apt-get密鑰Anchor鏈接:2安裝apt獲取bigbluebutton存儲庫的密鑰
BigBlueButton的所有包都使用項目公鑰進行數字簽名。在安裝BigBlueButton之前,您需要將項目的公鑰添加到您的服務器,以便apt-get驗證已簽名的包。為此,請輸入以下命令:

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

接下來,所以你的服務器需要知道在哪里下載BigBlueButton包。要配置軟件包存儲庫,請輸入以下命令:

echo "deb http://ubuntu.bigbluebutton.org/xenial-110/ bigbluebutton-xenial main" | tee /etc/apt/sources.list.d/bigbluebutton.list

最后,運行apt-get下拉鏈接到最新的BigBlueButton包。

apt-get update

2.3 安裝bigbluebutton
我們現在准備安裝BigBlueButton。

apt-get install bigbluebutton

而已。一個命令。這個命令將安裝BigBlueButton的所有核心組件以及所有必需的依賴關系。
注意:在安裝過程中,您可能會看到錯誤“無法下載額外的數據文件”的ttf-mscorefonts-installer包。這是Ubuntu 16.04的一個已知問題。你可以忽略這個錯誤。
如果安裝出錯退出完成之前,要經過在檢查安裝前的准備,看看是否有與服務器配置錯誤。
如果您發現解決了任何配置錯誤,則可以嘗試使用該命令完成安裝

apt-get install -f

安裝完成后,使用以下命令以正確的順序重新啟動所有BigBlueButton服務:

bbb-conf --restart

接下來,運行BigBlueButton配置實用程序bbb-conf --check。此實用程序檢查BigBlueButton的配置和日志文件,並查找可能導致運行時出現問題的任何潛在錯誤。
您應該看到類似於以下的輸出(當然使用不同於10.0.3.192的IP地址)。

root@ubuntu:~# bbb-conf 
BigBlueButton Configuration Utility - Version 1.1.0

bbb-conf [options]

Configuration:
--version Display BigBlueButton version (packages)
--setip <IP/hostname> Set IP/hostname for BigBlueButton
--setsecret <secret> Change the shared secret in bigbluebutton.properties

Monitoring:
--check Check configuration files and processes for problems
--debug Scan the log files for error messages
--watch Scan the log files for error messages every 2 seconds
--network View network connections on 80 and 1935 by IP address
--secret View the URL and shared secret for the server
--lti View the URL and secret for LTI (if installed)

Administration:
--restart Restart BigBlueButton
--stop Stop BigBlueButton
--start Start BigBlueButton
--clean Restart and clean all log files
--status Display running status of components
--zip Zip up log files for reporting an error

安裝API演示

如果您想通過登錄頁面登錄到BigBlueButton服務器,請使用該命令安裝API演示

apt-get install bbb-demo

安裝后,您可以在主頁上輸入您的姓名,然后點擊“加入”。這將使您參加默認會議“演示會議”。
您也可以通過單擊API examples主頁上的鏈接查看其他示例。這些是在http://demo.bigbluebutton.org上安裝的相同的API演示。
如果您正在使用自定義前端設置生產服務器,則可能需要臨時安裝API演示以進行測試。
稍后,要刪除API演示,請輸入以下命令:

apt-get purge bbb-demo

輸入ip地址進行訪問

配置BigBlueButton使用域名

請以root身份運行本節中的所有命令。
為了獲得服務器的有效SSL證書,您必須已經為您的BigBlueButton服務器分配了一個主機名。
出於文檔的目的,我們將使用域名“example.com”,以“bigbluebutton.example.com”托管的BigBlueButton服務器。
一旦你有一個域名,並配置了DNS主機,添加一個指向你的服務器的A記錄。然后,您可以使用bbb-conf setip命令來配置BigBlueButton以使用該域名,例如:

root@ubuntu:~# bbb-conf --setip www.123.com
Assigning www.123.com for testing for firewall in /var/www/bigbluebutton/client/conf/config.xml
Assigning www.123.com for rtmp:// in /var/www/bigbluebutton/client/conf/config.xml
Assigning www.123.com for servername in /etc/nginx/sites-available/bigbluebutton
Assigning www.123.com for http[s]:// in /var/www/bigbluebutton/client/conf/config.xml
Assigning www.123.com for publishURI in /var/www/bigbluebutton/client/conf/config.xml
Assigning www.123.com for web application URL in /var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties
Assigning www.123.com for web application URL in /usr/share/bbb-apps-akka/conf/application.conf
Assigning www.123.com for api demos in /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp
Assigning www.123.com for record and playback in /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml
Assigning www.123.com for playback of recordings: 
Assigning www.123.com for client self check to /var/www/bigbluebutton/check/conf/config.xml
Restarting the BigBlueButton 1.1.0 ...
Stopping BigBlueButton

Starting BigBlueButton

root@ubuntu:~# hostname -I
10.0.0.50

本地做好hosts

BigBlueButton HTML5客戶端

升級BigBlueButton 2.0-beta服務器在安裝之前,先安裝Anchor鏈接
在安裝HTML5客戶端之前,您需要一個BigBlueButton 2.0-beta服務器(以下簡稱為BigBlueButton 2.0)。HTML5客戶端的所有開發現在都發生在2.0代碼庫上。

echo "deb http://ubuntu.bigbluebutton.org/xenial-200/ bigbluebutton-xenial main" | sudo tee /etc/apt/sources.list.d/bigbluebutton.list

安裝BigBlueButton。

apt-get install bigbluebutton

安裝完成后檢查一下版本

root@online:~# bbb-conf 
BigBlueButton Configuration Utility - Version 2.0.0-beta

bbb-conf [options]

Configuration:
--version Display BigBlueButton version (packages)
--setip <IP/hostname> Set IP/hostname for BigBlueButton
--setsecret <secret> Change the shared secret in bigbluebutton.properties

Monitoring:
--check Check configuration files and processes for problems
--debug Scan the log files for error messages
--watch Scan the log files for error messages every 2 seconds
--network View network connections on 80 and 1935 by IP address
--secret View the URL and shared secret for the server
--lti View the URL and secret for LTI (if installed)

Administration:
--restart Restart BigBlueButton
--stop Stop BigBlueButton
--start Start BigBlueButton
--clean Restart and clean all log files
--status Display running status of components
--zip Zip up log files for reporting an error

為確保您擁有BigBlueButton 2.0的最新版本,請執行以下操作

apt-get update
apt-get dist-upgrade

安裝MongDB

BigBlueButton HTML5客戶端使用mongodb(一個非常有效的數據庫)來保持用戶與當前會議狀態同步。要安裝MongoDB,請執行以下操作

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
"deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
apt-get update
apt-get install -y mongodb-org curl
service mongod start

安裝NodeJS
HTML5客戶端使用nodeJS服務器與BigBlueButton服務器進行通信。要安裝nodeJS,請執行以下操作

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

你只需要安裝一次mongodb和nodeJS。
安裝html5客戶端
要安裝HTML5客戶端,請輸入

apt-get install -y bbb-html5

 重新啟動BigBlueButton服務器

bbb-conf --restart

在我們向HTML5客戶端(正在開發中)發布更新時,您可以使用這些命令升級到最新版本

apt-get update
apt-get dist-upgrade

加載html5客戶端
瀏覽器輸入:
https://<your_server>/demo/demoHTML5.jsp

 

  

如果你想手動重新啟動(或停止),你可以用命令來完成

systemctl restart bbb-html5.service

組件的日志位於/var/log/bigbluebutton/html5/html5client.log
客戶端的代碼位於/usr/share/meteor/bundle/
客戶端的配置文件位於/usr/share/meteor/bundle/programs/server/assets/app/config
如果修改它們,則需要重新啟動bbb-html5.service才能使新配置生效。
刪除HTML5客戶端

apt-get purge bbb-html5

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM