ClearOS Documentation

×

Warning

0 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Kopano Webmeetings

This document is currently under construction

Installation

You must have a valid kopano licence then you can install it from the command line with:

yum install app-kopano-webmeetings

You can find this feature in the menu system at the following location:

Server|Communication and Collaboration|Kopano Web Meetings

Fix the installation bug

There is currently an installation bug which stops Webmeetings from running. Until a fix can be pushed, please run the following:

PREFIX='0000'

# Set sessionSecret
#------------------

CHECK=`grep -i "^sessionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting session secret"
    sed -i -e "s/^sessionSecret[[:space:]]*=.*/sessionSecret = $random/" /etc/kopano/webmeetings.cfg
fi

# Set encryptionSecret
#---------------------

CHECK=`grep -i "^encryptionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting encryption secret"
    sed -i -e "s/^encryptionSecret[[:space:]]*=.*/encryptionSecret = $random/" /etc/kopano/webmeetings.cfg
fi

# Set sharedsecret_secret
#------------------------

CHECK=`grep -i "^sharedsecret_secret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting sharedsecret secret"
    sed -i -e "s/^sharedsecret_secret[[:space:]]*=.*/sharedsecret_secret = $random/" /etc/kopano/webmeetings.cfg
    sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBMEETINGS_SHARED_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBMEETINGS_SHARED_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php
fi

# Set server_secret_key
#----------------------

CHECK=`grep -i "^server_secret_key[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/presence.cfg`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting server_secret_key"
    sed -i -e "s/^server_secret_key[[:space:]]*=.*/server_secret_key = $random/" /etc/kopano/presence.cfg
    sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_PRESENCE_SHARED_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_PRESENCE_SHARED_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php
fi

# Set PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET
#--------------------------------------------------

CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET"
    sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php
fi

# Set PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET
#-----------------------------------------------------

CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php`
if [ -n "$CHECK" ]; then
    random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32)
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET"
    sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php
fi

# Set PLUGIN_SPREEDWEBRTC_TURN_USE_KOPANO_SERVICE
#------------------------------------------------

CHECK=`grep -i "^('PLUGIN_SPREEDWEBRTC_TURN_USE_KOPANO_SERVICE', true);" /etc/kopano/webapp/config-meetings.php`
if [ -z "$CHECK" ]; then
    logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_TURN_USE_KOPANO_SERVICE"
    sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_TURN_USE_KOPANO_SERVICE.*/DEFINE('PLUGIN_SPREEDWEBRTC_TURN_USE_KOPANO_SERVICE', true);/" /etc/kopano/webapp/config-meetings.php
fi

# Start kopano-webmeetings if it is in a failed state
#----------------------------------------------------

logger -p local6.notice -t installer "app-kopano-webmeetings-core - starting kopano-webmeetings"
systemctl is-failed kopano-webmeetings --quiet && systemctl start kopano-webmeetings

# Start restart kopano-presence
#------------------------------

logger -p local6.notice -t installer "app-kopano-webmeetings-core - starting kopano-presence"
systemctl condrestart kopano-presence

Configuration

content/en_us/7_ug_kopano_webmeetings.txt · Last modified: 2019/07/26 08:38 by nickh

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3A7_ug_kopano_webmeetings&1568831549