118 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			118 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# ===================
 | 
						||
#
 | 
						||
# Requirements:
 | 
						||
#
 | 
						||
#    - webserver nginx is installed
 | 
						||
#    - lets encrypt certificates available for $FQDN_HOSTNAME
 | 
						||
#
 | 
						||
# ===================
 | 
						||
 | 
						||
 | 
						||
# ---
 | 
						||
# 1.) Run script bbb-pre-install.sh
 | 
						||
# ---
 | 
						||
 | 
						||
/usr/local/src/bigbluebutton/bbb-pre-install.sh
 | 
						||
 | 
						||
 | 
						||
# ---
 | 
						||
# 2.) Install BigBlueButton
 | 
						||
# ---
 | 
						||
 | 
						||
apt-get install bigbluebutton
 | 
						||
 | 
						||
# --
 | 
						||
# Adjust  /etc/nginx/sites-enabled/bigbluebutton to support
 | 
						||
# SSL Protocls
 | 
						||
# --
 | 
						||
 | 
						||
vim /etc/nginx/sites-enabled/bigbluebutton
 | 
						||
 | 
						||
apt-get install bbb-html5
 | 
						||
 | 
						||
 | 
						||
# ---
 | 
						||
# 3.) Optional: install Demo API
 | 
						||
# ---
 | 
						||
 | 
						||
apt-get install bbb-demo
 | 
						||
 | 
						||
 | 
						||
# ---
 | 
						||
# 4.) Run script bbb-post-install.sh
 | 
						||
# ---
 | 
						||
 | 
						||
/usr/local/src/bigbluebutton/bbb-post-install.sh
 | 
						||
 | 
						||
 | 
						||
# ---
 | 
						||
# 5.) Install Greenlight - Run script bbb-greenlight-install.sh
 | 
						||
# ---
 | 
						||
 | 
						||
/usr/local/src/bigbluebutton/bbb-greenlight-install.sh
 | 
						||
 | 
						||
 | 
						||
# =====================================================================================
 | 
						||
 | 
						||
1. Install Docker on Ubuntu.
 | 
						||
 | 
						||
# Remove old versions of Docker
 | 
						||
#
 | 
						||
apt-get remove docker docker-engine docker.io containerd runc
 | 
						||
 | 
						||
 | 
						||
# Install packages to allow apt to use a repository over HTTPS:
 | 
						||
#
 | 
						||
apt-get install \
 | 
						||
   apt-transport-https \
 | 
						||
   ca-certificates \
 | 
						||
   curl \
 | 
						||
   gnupg-agent \
 | 
						||
   software-properties-common
 | 
						||
 | 
						||
# Add Docker’s official GPG key:
 | 
						||
#
 | 
						||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
 | 
						||
 | 
						||
 | 
						||
# set up the stable repository.
 | 
						||
#
 | 
						||
cat <<EOF > /etc/apt/sources.list.d/docker.list 
 | 
						||
deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
 | 
						||
EOF
 | 
						||
 | 
						||
 | 
						||
# Update package index
 | 
						||
#
 | 
						||
apt-get update
 | 
						||
 | 
						||
 | 
						||
# Install the latest version of Docker Engine - Community and containerd,
 | 
						||
#
 | 
						||
apt-get install docker-ce docker-ce-cli containerd.io
 | 
						||
 | 
						||
 | 
						||
# Deinstall apparmor
 | 
						||
#
 | 
						||
apt-get remove apparmor
 | 
						||
 | 
						||
 | 
						||
# Create the Greenlight directory for its configuration to live in.
 | 
						||
#
 | 
						||
mkdir ~/greenlight && cd ~/greenlight
 | 
						||
 | 
						||
 | 
						||
# Greenlight will read its environment configuration from the .env file. 
 | 
						||
# To generate this file and install the Greenlight Docker image, run:
 | 
						||
#
 | 
						||
docker run --rm bigbluebutton/greenlight:v2 cat ./sample.env > .env
 | 
						||
 | 
						||
 | 
						||
# Generating a Secret KeyAnchor link for: generating a secret key
 | 
						||
#
 | 
						||
# Greenlight needs a secret key in order to run in production. To generate 
 | 
						||
# this, run:
 | 
						||
#
 | 
						||
docker run --rm bigbluebutton/greenlight:v2 bundle exec rake secret
 | 
						||
 |