105 lines
2.8 KiB
Plaintext
105 lines
2.8 KiB
Plaintext
# ===================
|
|
#
|
|
# see:
|
|
# - https://docs.bigbluebutton.org/administration/install/
|
|
#
|
|
# ===================
|
|
|
|
FQDN_HOSTNAME="bbb.oopen.de"
|
|
ADMIN_EMAIL="ckubu-adm@oopen.de"
|
|
|
|
FQDN_HOSTNAME="agr-bbb.erpe.org"
|
|
ADMIN_EMAIL="agr@vvn-bda.de"
|
|
|
|
# ===
|
|
# 1 Pre-installation checks
|
|
# ===
|
|
|
|
# see: https://docs.bigbluebutton.org/administration/install/#pre-installation-checks
|
|
|
|
# ---
|
|
# Run script bbb-pre-install.sh
|
|
# ---
|
|
|
|
# Download Repository containing the pre installation script
|
|
#
|
|
git clone https://git.oopen.de/install/bigbluebutton /usr/local/src/
|
|
|
|
|
|
# Run the script 'bbb-pre-install.sh'
|
|
#
|
|
# The script does:
|
|
#
|
|
# - installs missing debian packages
|
|
|
|
# - checks the locale parameter and sets it to 'en_US.UTF-8' if necessary
|
|
#
|
|
# - Installs the latest version of Docker if necessary
|
|
#
|
|
/usr/local/src/bigbluebutton/bbb-pre-install.sh
|
|
|
|
|
|
# ===
|
|
# 2. Install BigBlueButton
|
|
# ===
|
|
|
|
|
|
# ---
|
|
# Install BigBlueButton (incl. Greenligth) directly
|
|
# ---
|
|
|
|
# Download and pipe downlaoded stream directly through 'bash -s'
|
|
#
|
|
# -w Install UFW firewall (recommended)
|
|
# -v <version> Install given version of BigBlueButton (e.g. 'focal-270') (required)
|
|
# -s <hostname> Configure server with <hostname>
|
|
# -e <email> Email for Let's Encrypt certbot
|
|
# -g Install Greenlight version 3
|
|
#
|
|
wget -qO- https://raw.githubusercontent.com/bigbluebutton/bbb-install/v2.7.x-release/bbb-install.sh \
|
|
| bash -s -- -w -v focal-270 -s ${FQDN_HOSTNAME} -e ${ADMIN_EMAIL} -g
|
|
|
|
|
|
# !! Note !!
|
|
#
|
|
# If the FQHN of the BigBlueButton service is part of the '/etc/hosts' file,
|
|
# then BigBlueButton will not work properly, at least not if the FQHN points
|
|
# to a 127 IP address (e.g. 127.0.1.1).
|
|
#
|
|
sed -i -E "/^[[:space:]]*127.0.1.1[[:space:]]+${FQDN_HOSTNAME}/d" /etc/hosts
|
|
if [[ -f "/etc/cloud/templates/hosts.debian.tmpl" ]] ; then
|
|
sed -i -E "/^127.0.1.1/d" /etc/cloud/templates/hosts.debian.tmpl
|
|
fi
|
|
|
|
|
|
# ---
|
|
# Install BigBlueButton (incl. Greenligth) by running script 'bbb-install.sh' lacally
|
|
# ---
|
|
|
|
mkdir -p /usr/local/src/bbb
|
|
|
|
git clone https://github.com/bigbluebutton/bbb-install.git /usr/local/src/bbb/
|
|
|
|
# run commnad 'bbb-install.sh'
|
|
#
|
|
# -w Install UFW firewall (recommended)
|
|
# -v <version> Install given version of BigBlueButton (e.g. 'focal-270') (required)
|
|
# -s <hostname> Configure server with <hostname>
|
|
# -e <email> Email for Let's Encrypt certbot
|
|
# -g Install Greenlight version 3
|
|
#
|
|
/usr/local/src/bbb/bbb-install.sh -w -v focal-270 -s ${FQDN_HOSTNAME} -e ${ADMIN_EMAIL} -g
|
|
|
|
sed -i -E "/^[[:space:]]*127.0.1.1[[:space:]]+${FQDN_HOSTNAME}/d" /etc/hosts
|
|
if [[ -f "/etc/cloud/templates/hosts.debian.tmpl" ]] ; then
|
|
sed -i -E "/^127.0.1.1/d" /etc/cloud/templates/hosts.debian.tmpl
|
|
fi
|
|
|
|
|
|
|
|
# --
|
|
# Installation finished
|
|
# --
|
|
|
|
# =====================================================================================
|