vi /etc/selinux/config
selinux=disable
# epel repo
yum install -y epel-release
# rpmfusion repo
sudo yum localinstall –nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
# nux repo
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
# Adobe repo 64-bit x86_64 For Flash player
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
# JDK11. icedtea-web for can access to record and share desktop
yum install -y java-11-openjdk-devel icedtea-web wget
# 选择JDK版本
update-alternatives –config java
# OpenMeetings will need LibreOffice to convert to pdf the uploaded office files
yum -y install libreoffice libreoffice-headless
# Installation of Ghostscript, necessary packages and libraries
yum install -y ghostscript libjpeg libjpeg-devel freetype freetype-devel unzip gcc gcc-c++ ncurses ncurses-devel make zlib zlib-devel libtool bison bison-devel openssl-devel bzip2 bzip2-devel file-roller git autoconf automake pkgconfig tomcat-native nmap vlc
# ImageMagick, work the images files jpg, png, gif. Sox, work the sound
yum install -y ImageMagick sox giflib giflib-devel giflib-utils
# OpenMeetings even need Adobe Flash Player for cam and audio
yum install -y flash-plugin
# FFmpeg work with video
yum install -y glibc alsa-lib-devel faac faac-devel faad2 faad2-devel gsm gsm-devel imlib2 imlib2-devel lame-devel vorbis-tools theora-tools libvpx-devel vlc autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel curl
# Installation MariaDB data server
yum install -y mariadb-server
# 启动,设置
systemctl start mariadb.service
mysqladmin -u root password YOUR-password
mysql -u root -p
# create a user with all permission on this meetdb database. name of the database:meetdb; user for that database:meetuser; password of that user:meetuser
> CREATE DATABASE meetdb DEFAULT CHARACTER SET ‘utf8’;
> CREATE USER meetuser;
> GRANT ALL PRIVILEGES ON meetdb.* TO ‘meetuser’@’localhost’ IDENTIFIED BY ‘1a2B3c4D’ WITH GRANT OPTION;
> FLUSH PRIVILEGES;
> \q
# Installation of OpenMeetings
mkdir /opt/meeting
cd /opt/meeting
wget http://archive.apache.org/dist/openmeetings/4.0.10/bin/apache-openmeetings-4.0.10.tar.gz
tar xzvf apache-openmeetings-4.0.10.tar.gz
mv apache-openmeetings-4.0.10.tar.gz /opt
# Download and install the connector between OpenMeetings and MariaDB:
cd /opt
wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.48/mysql-connector-java-5.1.48.jar
cp /opt/mysql-connector-java-5.1.48.jar /opt/meeting/webapps/openmeetings/WEB-INF/lib
# Script to launch red5-OpenMeetings
cd /opt
wget https://cwiki.apache.org/confluence/download/attachments/27838216/red5-2
cp red5-2 /etc/init.d/
chmod +x /etc/init.d/red5-2
vi /etc/init.d/red5-2
RED5_HOME=/opt/red54010
…to
RED5_HOME=/your-path-installation
# Run red5-OpenMeetings
systemctl restart mariadb.service
/etc/init.d/red5-2 start
# go with your browser to:
http://localhost:5080/openmeetings
# 配置openmeetings
打开的网页,下一步,
第2页配置 Choose DB type to MySQL
mysql
localhost
3306
meetdb
meetuser
your-password
第3页,创建管理员用户
第4页,下一步,
第5页,配置IMAGEMAGICK,FFMPEG,SOX,LIBREOFFICE路径
ImageMagick Path == /usr/bin
FFMPEG Path == /usr/bin
FFMPEG Path == /usr/bin
OpenOffice/LibreOffice Path for
jodconverter == /usr/lib64/libreoffice
第6页,下一步,
第7页,Finish
# 重启应用
/etc/init.d/red5-2 restart
第8页,Enter the Application
# 防火墙开启如下端口
1935 5080
=========================
# 编译安装Ghostscript 9.27
cd /opt
wget https://cwiki.apache.org/confluence/download/attachments/27838216/ghostscript.sh
chmod +x ghostscript.sh
…and run it:
./ghostscript.sh
…when be finished will announce it: GhostScript compilation is Finished!
rm -Rf /opt/ghostscript-9.27
# 编译安装SOX
wget http://ftp.icm.edu.pl/packages/sox/14.4.2/sox-14.4.2.tar.gz
tar xzvf sox-14.4.2.tar.gz
cd /opt/sox-14.4.2
./configure
make && make install
cd /op
# 编译安装FFMPEG
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
cd /opt
wget https://cwiki.apache.org/confluence/download/attachments/27838216/ffmpeg_centos7.sh
…concede execution permission to it:
chmod +x ffmpeg_centos7.sh
…and run it (be connected to Internet). The compilation will spend about 30 minutes:
./ffmpeg_centos7.sh
All the compiled files will be installed in: /usr/local/bin
vi red5-2
#
#!/bin/sh -e
#
# Startup script for Red5
# Modified by Alvaro Bustos
export RED5_HOME=/opt/red54010
start_red5=”$RED5_HOME/red5.sh start”
stop_red5=”$RED5_HOME/red5-shutdown.sh stop”
start() {
echo -n “Starting Red5: ”
${start_red5} &
echo “done.”
}
stop() {
echo -n “Shutting down Red5″
echo -n ” ”
su -s /bin/bash -c “killall -q -u $RED5_USER java” $RED5_USER
su -s /bin/bash -c “killall -9 java”
}
case “$1” in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 10
start
;;
*)
echo “Usage: $0 {start|stop|restart}”
esac
exit 0
讚讚
vi ffmpeg_centos7.sh
# Script ffmpeg compile for Centos 7.x
# Alvaro Bustos, thanks to Hunter.
# 8-3-2019
# URL base https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
# Install libraries
yum install -y autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel x264-devel x265-devel
# Install yasm from repos
# Create a temporary directory for sources.
SOURCES=$(mkdir ~/ffmpeg_sources)
cd ~/ffmpeg_sources
# Download the necessary sources.
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2
# git clone –depth 1 http://git.videolan.org/git/x264
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20180720-2245.tar.bz2
wget https://bitbucket.org/multicoreware/x265/downloads/x265_2.8.tar.gz
# git clone –depth 1 https://github.com/mstorsjo/fdk-aac
wget https://netcologne.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.6.tar.gz
curl -O -L http://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz
wget http://www.mirrorservice.org/sites/distfiles.macports.org/libopus/opus-1.2.1.tar.gz
wget https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.3.tar.gz
wget http://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.6.tar.gz
curl -O -L https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.tar.gz
git clone –depth 1 https://chromium.googlesource.com/webm/libvpx.git
wget http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
# Unpack files
for file in `ls ~/ffmpeg_sources/*.tar.*`; do
tar -xvf $file
done
cd nasm-*/
./autogen.sh
./configure –prefix=”$HOME/ffmpeg_build” –bindir=”$HOME/bin”
make
make install
cd ..
cp /root/bin/nasm /usr/bin
cd yasm-*/
./configure –prefix=”$HOME/ffmpeg_build” –bindir=”$HOME/bin” && make && make install; cd ..
cp /root/bin/yasm /usr/bin
cd x264-*/
PKG_CONFIG_PATH=”$HOME/ffmpeg_build/lib/pkgconfig” ./configure –prefix=”$HOME/ffmpeg_build” –bindir=”$HOME/bin” –enable-static && make && make install; cd ..
cd /root/ffmpeg_sources/x265_2.8/build/linux
cmake -G “Unix Makefiles” -DCMAKE_INSTALL_PREFIX=”$HOME/ffmpeg_build” -DENABLE_SHARED:bool=off ../../source && make && make install; cd ~/ffmpeg_sources
cd fdk-aac-*/
autoreconf -fiv && ./configure –prefix=”$HOME/ffmpeg_build” –disable-shared && make && make install; cd ..
cd lame-*/
./configure –prefix=”$HOME/ffmpeg_build” –bindir=”$HOME/bin” –disable-shared –enable-nasm && make && make install; cd ..
cd opus-*/
./configure –prefix=”$HOME/ffmpeg_build” –disable-shared && make && make install; cd ..
cd libogg-*/
./configure –prefix=”$HOME/ffmpeg_build” –disable-shared && make && make install; cd ..
cd libvorbis-*/
./configure –prefix=”$HOME/ffmpeg_build” –with-ogg=”$HOME/ffmpeg_build” –disable-shared && make && make install; cd ..
cd libtheora-*/
./configure –prefix=”$HOME/ffmpeg_build” –with-ogg=”$HOME/ffmpeg_build” –disable-shared && make && make install; cd ..
cd libvpx
./configure –prefix=”$HOME/ffmpeg_build” –disable-examples –disable-unit-tests –enable-vp9-highbitdepth –as=yasm && make && make install; cd ..
cd ffmpeg-*/
PATH=”$HOME/bin:$PATH” PKG_CONFIG_PATH=”$HOME/ffmpeg_build/lib/pkgconfig” ./configure –prefix=”$HOME/ffmpeg_build” –pkg-config-flags=”–static” –extra-cflags=”-I$HOME/ffmpeg_build/include” –extra-ldflags=”-L$HOME/ffmpeg_build/lib” –extra-libs=-lpthread –extra-libs=-lm –bindir=”$HOME/bin” –enable-gpl –enable-libfdk_aac –enable-libfreetype –enable-libmp3lame –enable-libopus –enable-libvorbis –enable-libtheora –enable-libvpx –enable-libx264 –enable-libx265 –enable-nonfree && make && make install && hash -r; cd ..
cd ~/bin
cp ffmpeg ffprobe lame x264 /usr/local/bin
cd /root/ffmpeg_build/bin
cp x265 /usr/local/bin
echo “FFmpeg Compilation is Finished!”
讚讚
vi ghostscript.sh
# Ghostscript compilation
# 8-3-2019
# Alvaro Bustos
# Installation Path: /usr/bin
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.gz
tar -xvf ghostscript-9.27.tar.gz
cd ghostscript-9.27
./configure –prefix=/usr
make
make install
echo “…GhostScript compilation is Finished!”
讚讚