Forked from gavargas22/gist:e86e77e84ea80784105a
Last active
December 15, 2021 16:21
-
-
Save vdchuyen/91eaa69b498d4914984135044e0bbc10 to your computer and use it in GitHub Desktop.
BigBlueButton on CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Steps taken to install Big Blue Button in CentOS 6 | |
# we'll work mostly from the /tmp/ directory: | |
cd /tmp | |
#Install freeswitch | |
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm | |
yum install freeswitch-config-vanilla | |
yum install sox freeswitch-sounds* | |
# install MySQL server | |
yum install -y mysql-server | |
service mysqld start | |
chkconfig mysqld on | |
# Tomcat6 is not available in the main repos, so we will use the jpackage repos | |
yum install -y jpackage-utils | |
wget http://www.jpackage.org/jpackage17.repo | |
cat jpackage17.repo | sed 's/1\.7/5.0/' | sed 's/\[jpack/\[5jpack/' > /etc/yum.repos.d/jpackage5.repo | |
mv jpackage17.repo /etc/yum.repos.d/ | |
yum makecache | |
# now you should be able to install tomcat6 | |
yum install -y tomcat6 | |
# start tomcat and configure it to automatically start on boot: | |
service tomcat6 start | |
chkconfig tomcat6 on | |
# install openoffice | |
yum install -y openoffice.org-headless | |
echo "#!/bin/bash | |
# chkconfig: 345 20 80 | |
# description: init.d script for headless openoffice.org (2.3+ for RHEL5 64bit) | |
# | |
# processname: soffice | |
# | |
# source function library | |
. /etc/rc.d/init.d/functions | |
RETVAL=0 | |
SOFFICE_PATH='/usr/lib64/openoffice.org3/program' | |
SOFFICE_ARGS='-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager -headless -nofirststartwizard -nologo' | |
SOFFICE_PIDFILE=/var/run/soffice.bin.pid | |
start_soffice() { | |
echo -n $"Starting OpenOffice.org" | |
$SOFFICE_PATH/soffice.bin $SOFFICE_ARGS >/dev/null 2>&1 & | |
[ $? -eq 0 ] && echo_success || echo_failure | |
pidof soffice.bin > $SOFFICE_PIDFILE | |
echo | |
} | |
start() { | |
start_soffice | |
} | |
stop() { | |
echo -n $"Stopping OpenOffice" | |
killproc soffice | |
echo | |
} | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop | |
;; | |
restart) | |
stop | |
start | |
;; | |
*) | |
echo $"Usage: $0 {start|stop|restart}" | |
esac" > /etc/init.d/soffice | |
service soffice start | |
# Install graddle | |
curl https://gist.githubusercontent.com/parzonka/9371885/raw/17a4653d41ea13d56979bda06d480932ab67651f/install-gradle-centos.sh | bash | |
# for compiling your own packages, you will need some development tools | |
yum -y install gcc gcc-c++ compat-gcc-32 compat-gcc-32-c++ | |
# some more requirements for packages that we will soon install: | |
yum -y install -y zlib zlib-devel freetype freetype-devel libjpeg libjpeg-devel | |
# install swftools: 0.9.1 only | |
wget http://www.swftools.org/swftools-0.9.1.tar.gz | |
tar xzf swftools-0.9.1.tar.gz | |
cd swftools-0.9.1 | |
##compile swftools | |
./configure | |
make | |
make install | |
yum install -y ghostscript | |
rpm -Uvh rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm | |
yum makecache | |
yum install -y nginx | |
useradd activemq | |
wget https://archive.apache.org/dist/activemq/apache-activemq/5.4.3/apache-activemq-5.4.3-bin.tar.gz | |
tar xzf apache-activemq-5.4.3-bin.tar.gz | |
mv apache-activemq-5.4.3 /usr/share/ | |
ln -s /usr/share/apache-activemq-5.4.3 /usr/share/activemq | |
chown -R activemq.activemq /usr/share/apache-activemq-5.4.3 | |
chown -R activemq.activemq /usr/share/activemq | |
#Start the service and configure it to auto-start | |
ln -s /usr/share/activemq/bin/linux-x86-64/activemq /etc/init.d/activemq | |
service activemq start | |
chkconfig activemq on | |
useradd red5 | |
wget https://github.com/Red5/red5-server/releases/download/v1.0.7-RELEASE/red5-server-1.0.7-RELEASE.tar.gz | |
tar xvf red5-server-1.0.7-RELEASE.tar.gz | |
mv red5-server /usr/share/red5 | |
chown -R red5.red5 /usr/share/red5 | |
#now get the init.d file that we created for you | |
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/bigbluebutton/red5 | |
mv red5 /etc/init.d/ | |
chmod a+x /etc/init.d/red5 | |
service red5 start | |
chkconfig red5 on | |
# Get BBB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it worked?
I want to install BBB on Centos 7.