本篇按官方手册顺序拆解开源网络会议的部署过程,讲清它如何作为 O2OA 平台网络会议能力的承载服务。流程先准备媒体服务与操作系统环境,再补齐运行所需的运行库与转码工具。随后给出安装包的获取、解压与启动方式,并通过浏览器向导完成数据库、管理员与邮件等设置。文中提醒自带数据库仅适合试用,正式环境应换用商用数据库并做好备份,安装前还需确认脚本与依赖版本匹配。
本文主要讲解 Openmeetings-5.1.0 的安装过程,O2OA 服务器的相关配置教程将随后发布。
本教程较为详细,可按步骤逐一步完成服务器安装。若在安装过程中遇到其他问题,请及时联系我们,我们会进一步更新安装手册。
O2OA 通过集成 Openmeeting 实现网络会议。Apache-Openmeeting 是一个开源的网络会议系统,更多信息可在 Openmeeting 官方网站获取。
由于 Openmeetings 的安装较为复杂,这里将我们的安装过程共享出来,希望对大家有所帮助:
Openmeetings 官网:https://openmeetings.apache.org/
Openmeetings 官网下载:https://openmeetings.apache.org/downl
Openmeetings 官方手册:https://openmeetings.apache.org/installation.html
从 Openmeeting 官方发布的安装手册中可以看到,服务器安装需要如下几个步骤:
本文后续按照 Openmeeting 官方安装手册的要求,逐步完成当前最新版本 5.1.0 的安装:
Version 5.1.0 released! Release 5.1.0, provides following improvements: This release provides WebRTC audio/video/screen-sharing in the Room Stability: ●Room Audio/Video should be more stable ●OM should work as expected after KMS server restart ●Backup is further improved ●Audio/Video connection established faster ●Most recent versions of dependencies are used UI: ●User display name is used almost everywhere ●Browser notifications are used to notify about new chat messages and moderator actions ●Interview room was broken ●Mute and "Mic status" were broken Other fixes and improvements 52 issues are fixed please check CHANGELOG and Detailed list See Downloads page. |
(含操作系统准备)
KMS 官方文档:https://doc-kurento.readthedocs.io/en/stable/index.html
KMS 安装手册:https://doc-kurento.readthedocs.io/en/stable/user/installation.html
我们可以从Local Installation里看到,KMS 支持长期支持版 Ubuntu16.04和 Ubuntu18.04(64位版本),这里我们打算使用 Ubuntu18.04(64位),下文先讲述操作系统准备的过程,已经准备好的朋友,请看后续章节《安装 Kurento Media Server》。
下载链接:http://old-releases.ubuntu.com/releases/18.04/ubuntu-18.04.5-live-server-amd64.iso
安装过程中会提示选择需要安装的应用组件,可根据实际需要选择。建议安装 openssh
在安装过程中,设置用户 kms,密码:123456。
root 密码可以在安装完成后进行修改。
安装完成后,重启服务器,进入登录界面:
使用 kms 用户登录系统:kms/123456
修改 root 密码为 123456
sudo passwd root
先输入 kms 用户密码 123456,再设置 root 密码(UNIX 密码)。
root 密码修改成功。
网络可以在安装操作系统时按要求配置,也可以在安装完成后配置。
Ubuntu 从 17.10 开始,已放弃在 /etc/network/interfaces 中配置 IP 地址,即使配置也不会生效,而是改用 netplan 方式,配置写入 /etc/netplan/01-netcfg.yaml 或类似名称的 yaml 文件,每台主机略有不同:
编辑 yaml 文件:
vi /etc/netplan/00-installer-config.yaml
# Let NetworkManager manage all devices on this system
network:
ethernets:
enp129s0f0:
#dhcp4: true
#dhcp4: true
addresses: [172.16.93.9/18]
gateway4: 172.16.64.1
nameservers:
addresses:[172.16.2.43]
version: 2
#renderer: NetworkManager
关于子网掩码的表示,可以百度查一下:
172.16.93.9/24:255.255.255.0
172.16.93.9/18:255.255.192.0
设置完成后执行命令让配置生效:
sudo netplan apply
设置完成后,即可使用 SSH 工具连接服务器。
sudo ufw disable
https://blog.csdn.net/gymaisyl/article/details/86570426
Make sure that GnuPG is installed.
sudo apt-get update && sudo apt-get install --no-install-recommends --yes
gnupg
执行命令过程如下图所示:
Add the Kurento repository to your system configuration.
Run these commands(执行如下命令):
# Import the Kurento repository signing key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
# Get Ubuntu version definitions
source /etc/upstream-release/lsb-release 2>/dev/null || source /etc/lsb-release
# Add the repository to Apt
sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
# Kurento Media Server - Release packages
deb [arch=amd64] http://ubuntu.openvidu.io/6.15.0 $DISTRIB_CODENAME kms6
EOF
# Import the Kurento repository signing key(导入Kurento仓库的签名)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
此命令执行需要一点时间:
# Get Ubuntu version definitions(获取Ubuntu版本信息定义)
source /etc/upstream-release/lsb-release 2>/dev/null || source /etc/lsb-release
# Add the repository to Apt(将Kurento仓库添加到apt)
sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
# Kurento Media Server - Release packages
deb [arch=amd64] http://ubuntu.openvidu.io/6.15.0 $DISTRIB_CODENAME kms6
EOF
提醒:此步骤仅适用于第一次安装。如果您已经安装了 Kurento 并想升级它,请按照下面描述的步骤进行:本地升级(Local Upgrade)。
sudo apt-get update && sudo apt-get install --no-install-recommends --yes
kurento-media-server
执行命令后等待,直到安装完成(需要一点时间):
The server includes service files which integrate with the Ubuntu init system, so you can use the following commands to start and stop it:
服务器包含与 Ubuntu 初始化系统集成的服务文件,因此您可以使用以下命令来启动和停止它:
sudo service kurento-media-server start
sudo service kurento-media-server stop
日志目录:/var/log/kurento-media-server/
Recommendation for production environment By default OpenMeetings uses the integrated H2 database. For production environment you should consider using MySQL , Postgres , or for example IBM DB2 , or Oracle , or MSSQL |
生产环境建议
默认情况下,OpenMeetings 使用集成的 H2 数据库。对于生产环境,建议考虑使用 MySQL、Postgres,或例如 ibmdb2、Oracle、MSSQL。
Note: Openmeetings requires JRE 11, JRE 6/7/8 are NOT compatible!
提醒:Openmeetings 需要 JRE11,JRE 6/7/8 均无法兼容!
先卸载 Ubuntu 自带的 OpenJDK:
sudo apt-get remove openjdk*
安装 JDK 的方法有多种,在这里可以通过 apt 直接安装:
apt install openjdk-11-jre-headless
执行命令后等待一会儿即可:
当前 JDK 版本:11.0.9.1
Enabling Image Upload and import to whiteboard Install ImageMagick on the server, you can get more information on http://www.imagemagick.org regarding installation. The instructions for installation can be found there https://imagemagick.org/script/download.php , however on most Linux systems you can get it via your favorite package managers (apt-get it) |
启用图像上载和导入到白板
前提条件:在服务器上安装 ImageMagick,您可以获得有关http://www.imagemagick.org关于安装。
安装说明可以在那里找到https://imagemagick.org/script/download.php,但是在大多数 Linux 系统上,您可以通过您最喜欢的包管理器(apt-get-it)获得它
sudo apt-get install imagemagick
查询安装的目录:
dpkg -L imagemagick
Enabling import of PDFs into whiteboard ● Install GhostScript on the server, you can get more information on http://www.ghostscript.com/download/gsdnld.html regarding installation. The instructions for installation can be found there, however on most Linux systems you can get it via your favorite package managers (apt-get it). |
启用将 PDF 导入白板
前提条件:在服务器上安装 GhostScript,您可以获得有关http://www.ghostscript.com/download/gsdnld.html关于安装。
安装说明可以在那里找到,但在大多数 Linux 系统上,可以通过常用的包管理器(apt-get-it)获得。
sudo apt-get install ghostscript
在 Ubuntu18 操作系统中,GhostScript 一般已经安装。
查询安装的目录:
dpkg -L ghostscript
查询 ghostscript 版本
ghostscript
Enabling import of .doc, .docx, .ppt, .pptx, ... all Office Documents into whitebaord ● OpenOffice or Libre Office Installed Since Version 2.x of OpenMeetings it is no more required to start OpenOffice (or Libreoffice) service, see OpenOfficeConverter for details |
启用将 .doc、.docx、.ppt、.pptx 等所有 Office 文件导入白板
前提条件:已安装 OpenOffice 或 Libre Office
由于 OpenMeetings 的 2.x 版不再需要启动 OpenOffice(或 Libreoffice)服务,有关详细信息请参阅 OpenOfficeConverter
1. Enabling Recording and import of .avi, .flv, .mov and .mp4 into whiteboard ○ Install FFMpeg (with -enabled libmp3lame and libx264 options) . You should get FFMPEG in an up to date copy! OpenMeetings is tested with FFMPEG Version 10.3 and latest build from GIT For Windows you can download a Build for example from https://www.gyan.dev/ffmpeg/builds/ Linux or OSx Users should be able to use one of the various Installation Instructions on the Web. You need to enable libmp3lame and libx264! ○ Install SoXhttp://sox.sourceforge.net/ . You should install SoX in a up to date copy! SoX 12.xx will NOT work! |
启用录制并将 .avi、.flv、.mov、.mp4 导入白板
前提条件:安装 FFMpeg(使用启用的 libmp3lame 和 libx264选项)。你应该得到一份最新的 FFMPEG!OpenMeetings 使用 FFMPEG 10.3版和 GIT For Windows 的最新版本进行了测试,您可以从下载一个版本,例如https://www.gyan.dev/ffmpeg/builds/或 OSx 用户应该能够使用 Web 上的各种安装说明之一。您需要启用 libmp3lame 和 libx264!
前提条件:安装 SoX http://sox.sourceforge.net/. 你应该在最新版本中安装 SoX!SoX 12.xx 将不起作用!
sudo apt-get install ffmpeg
查询安装的目录:
dpkg -L ffmpeg
查询 ffmpeg 版本:
ffmpeg
apt-get install sox
查询安装的目录:
dpkg -L sox
查询 sox 版本
sox --version
下载链接:https://archive.apache.org/dist/openmeetings/5.1.0/bin/apache-openmeetings-5.1.0.zip
或者通过命令直接从服务器下载:
wget https://archive.apache.org/dist/openmeetings/5.1.0/bin/apache-openmeetings-5.1.0.zip
创建 /data 目录
root@kms:/# mkdir /data
将下载好的 apache-openmeetings-5.1.0.zip 放到 /data 目录下:
如果没有 unzip 命令,则需要先安装 unzip 再进行解压:
apt install unzip
将文件解压到 /data 目录
unzip apache-openmeetings-5.1.0.zip
./data/apache-openmeetings-5.1.0/bin/startup.sh
使用浏览器访问 openmeetings 提供的安装服务:
URL: https://localhost:5443/openmeetings/install
点击下一步进行数据库配置:
这里我们不使用其他数据库,直接以默认的 H2 数据库进行演示。但在正式环境中,建议使用 Mysql 等商用数据库服务器,并做好数据备份等工作。
下图是 Mysql 服务器配置:
设置好数据库后,点击下一步进行管理员用户信息设置:
这里填写用户名、密码、邮件等信息,并填写组织名称,然后点击下一步进行邮件相关配置:
这里不作任何改动,直接点击下一步进行文档转换相关设置:
这里我们仍然不作任何改动,直接点击下一步进行信息安全相关设置:
这里我们仍然不作任何改动,直接点击下一步准备开始安装。
在此界面并没有“完成”按钮,点击结束按钮我们可以开始安装(实际上就是完成配置动作),完成安装之后,您可以直接访问https://localhost:5443/openmeetings来使用openmeetings服务器提供的服务:
输入用户名密码登录到 openmeetings 服务器:
这里是用户主页,一个看板,上面展示所有工作与交流信息。下图是进入会议后的界面:
点击右上角的分享屏幕,可以将自己的计算机屏幕分享给所有参会者:
关于 Openmeeting 的使用,您可以在百度或官方网站查看更多文档和演示。本文以安装步骤为主,不作过多赘述,下一篇将指导如何将 openmeetings 与 O2OA 打通认证机制。
相关内容