Install Greenlight v3
Overview
Greenlight is an open-source, LGPL-3.0 licensed web application that allows organizations to quickly set up a complete web conferencing platform using their existing BigBlueButton server. It is user-friendly for both regular and advanced users.
Greenlight v3, the latest version, is constructed with the cutting-edge versions of Ruby on Rails and React - a robust technology stack adopted by millions of projects and trusted by major corporations worldwide.
Greenlight v3 is equipped with local authentication by default. This means that authentication is managed internally within the platform and does not require any external servers or services. For those who need additional authentication options, Greenlight v3 can be configured to connect to external authentication servers through OpenID Connect. For more information see External Authentication.
There are 2 ways to install Greenlight v3:
Installing alongside a BigBlueButton Server
bbb-install Script
If your server already contains a BigBlueButton server that you like to upgrade, or you would like to install a new BigBlueButton server on a clean environment along with Greenlight, then please refer to bbb-install script for guides on the bbb-install command and its options.
To install Greenlight, simply run the bbb-install script with your chosen configurations, while ensuring to include the -g option to install/upgrade Greenlight alongside of your BigBlueButton server.
Running the Script
To run the script, simply run the command below, replacing [OPTIONS], with the your chosen configurations.
wget -qO- https://raw.githubusercontent.com/bigbluebutton/bbb-install/v2.7.x-release/bbb-install.sh | bash -s -- [OPTIONS] -g
After the script completes, a success message will appear in the console with the URL to access Greenlight confirming that BigBlueButton was installed/upgraded alongside with Greenlight.
Creating an Admin Account
Once installation is complete, you will need to create an Administrator account to access the administrator panel.
You can do that by running the following command:
docker exec -it greenlight-v3 bundle exec rake admin:create['name','email','password']
You can also run it without any arguments to create the default admin account, which you can either change its password and use, or use it to promote your own account becoming an Administrator and then delete it.
docker exec -it greenlight-v3 bundle exec rake admin:create
Upgrading an existing account to an Admin Account
You can do that by running the following command:
docker exec -it greenlight-v3 bundle exec rake user:set_admin_role['email']
Update a user password
Open a Rails console in the container:
docker exec -it greenlight-v3 bundle exec rails console
After entering the console, run:
user = User.find_by!(email: 'user@example.com')
user.update!(password: 'NewPassword', password_confirmation: 'NewPassword')
Note: This applies to locally authenticated users. If you use External Authentication (OpenID Connect), reset the password at your identity provider instead.
Installing on a Standalone Server
Greenlight Install Script
If you're installing Greenlight on a standalone server (a server where you don't want to include BigBlueButton), we've created an install script to simplify the steps required to get Greenlight up and running.
The Greenlight Install Script provides you with a variety of options to suit whatever needs you have. Before running the install script, you must choose which options you would like. Here are the current supported options:
-s <hostname> Configure server with <hostname> (Required)
-b <hostname>:<secret> The BigBlueButton server credentials (bbb-conf --secret) (Required)
-k Install Keycloak - needed for external authentication (Optional)
-d Skip SSL certificates generation (Required, if -e is omitted).
* Certificate files(fullchain.pem, privkey.pem) to be used must be placed in /local/certs/
* Cannot be used when -e is used.
-e <email> Email for Let's Encrypt certbot (Required, if -d is omitted)
* Cannot be used when -d is used.
And environmental variables:
VARIABLES (configure Greenlight):
GL_PATH Configure Greenlight relative URL root path (Optional)
* Use this when deploying Greenlight behind a reverse proxy on a path other than the default '/' e.g. '/gl'.
Sample Configurations
-
Sample options to setup a Greenlight 3.x server with a publicly signed SSL certificate for a FQDN of www.example.com and an email of info@example.com that uses a BigBlueButton server at
bbb.example.comwith secretSECRET:-s www.example.com -e info@example.com -b bbb.example.com:SECRET -
Sample options to setup a Greenlight 3.x server with pre-owned SSL certificates for a FQDN of www.example.com that uses a BigBlueButton server at bbb.example.com with secret SECRET:
-s www.example.com -b bbb.example.com:SECRET -d
Running the Script
To run the script, simply run the command below, replacing [OPTIONS], with the values from above.
wget -qO- https://raw.githubusercontent.com/bigbluebutton/greenlight/master/gl-install.sh | bash -s -- [OPTIONS]
After the script finishes running, a success message will appear in the console, confirming that Greenlight v3 is now accessible at the URL specified during installation.