Ubuntu 源码安装 Jitsi Meet

Ubuntu 源码安装 Jitsi Meet

This describes configuring a server jitsi.example.com) running Debian or a Debian Derivative. You will need to change references to that to match your host, and generate some passwords for videobridge_password, jicofo_password, auth_password .

There are also some complete example config files available, mentioned in each section.

Install prosody

echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
sudo apt-get update

sudo apt-get install prosody unzip git

Configure prosody

Add config file in /etc/prosody/conf.avail/ :

  • add your domain virtual host section:
VirtualHost ""
    authentication = "anonymous"
    ssl = {
        key = "/var/lib/prosody/";
        certificate = "/var/lib/prosody/";
    modules_enabled = {
VirtualHost "auth."
    authentication = "internal_plain"
admins = { "focus@auth." }

Component "conference." "muc"
Component "jitsi-videobridge."
    component_secret = "videobridge_password"
Component "focus."
    component_secret = "jicofo_password"

Add link for the added configuration

ln -s /etc/prosody/conf.avail/ /etc/prosody/conf.d/

Generate certs for the domain:

prosodyctl cert generate

Create conference focus user:

prosodyctl register focus auth. auth_password

Restart prosody XMPP server with the new config

prosodyctl restart

Install nginx

sudo apt-get install nginx

Add a new file in /etc/nginx/sites-available (see also the example config file):

    # nano /etc/nginx/sites-available182.61.25.227
server_names_hash_bucket_size 64;

server {
    listen 80;
    # set the root
    root /srv/;
    index index.html;
    location ~ ^/([a-zA-Z0-9=\?]+)$ {
        rewrite ^/(.*)$ / break;
    location / {
        ssi on;
    # BOSH
    location /http-bind {
        proxy_pass      http://localhost:5280/http-bind;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;

Add link for the added configuration

cd /etc/nginx/sites-enabled
ln -s ../sites-available/

Install Jitsi Videobridge

wget https://download.jitsi.org/jitsi-videobridge/linux/jitsi-videobridge-linux-x64-725.zip
unzip jitsi-videobridge-linux-x64-725.zip

Install Oracle JDK if missing:

sudo apt-get install -y python-software-properties  software-properties-common

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

echo 'export JAVA_HOME=/usr/lib/jvm/java-7-oracle' >> /etc/profile
echo 'export JRE_HOME=${JAVA_HOME}/jre' >> /etc/profile
echo 'export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib' >> /etc/profile
echo 'export PATH=${JAVA_HOME}/bin:$PATH' >> /etc/profile

update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-oracle/bin/java 300
update-alternatives --config java

NOTE: When installing on older Debian releases keep in mind that you need JRE >= 1.7.

In the user home that will be starting Jitsi Videobridge create .sip-communicator folder and add the file sip-communicator.properties with one line in it:


Start the videobridge with:

./jvb.sh --host=localhost --domain= --port=5347 --secret=videobridge_password &

Or autostart it by adding the line in /etc/rc.local:

/bin/bash /root/jitsi-videobridge-linux-x64-725/jvb.sh --host=localhost --domain= --port=5347 --secret=videobridge_password </dev/null >> /var/log/jvb.log 2>&1

Install Jitsi Conference Focus (jicofo)

sudo apt-get install maven

Clone source from Github repo:

git clone https://github.com/jitsi/jicofo.git

Build distribution packag

mvn -U package -DskipTests -Dassembly.skipAssembly=false

Run jicofo:

cd target
unzip jicofo-linux-x64-1.0-SNAPSHOT.zip
./jicofo-linux-x64-1.0-SNAPSHOT/jicofo.sh --domain= --secret=jicofo_password --user_domain=auth. --user_name=focus --user_password=auth_password

Deploy Jitsi Meet

Checkout and configure Jitsi Meet:

cd /srv
git clone https://github.com/jitsi/jitsi-meet.git
mv jitsi-meet/
nano package.json
>change     "lib-jitsi-meet": "jitsi/lib-jitsi-meet",

"lib-jitsi-meet": "git://github.com/jitsi/lib-jitsi-meet",

sudo apt-get install npm nodejs-legacy
npm install browserify
npm install

Install lib-jitsi-meet

git clone git://github.com/jitsi/lib-jitsi-meet ../lib-jitsi-meet
cd lib-jitsi-meet
 #nano package.json
 #change "jitsi-meet-logger": ...

>"jitsi-meet-logger": "git://github.com/jitsi/jitsi-meet-logger",

npm link

cd ../
npm link lib-jitsi-meet

To build the Jitsi Meet application, just type


Edit host names in /srv/ (see also the example config file):

var config = {
    hosts: {
        domain: '',
        muc: 'conference.',
        bridge: 'jitsi-videobridge.'
    useNicks: false,
    bosh: '//', // FIXME: use xep-0156 for that
    desktopSharing: 'false' // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable.
    //chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension
    //minChromeExtVersion: '0.1' // Required version of Chrome extension

Restart nginx to get the new configuration:

invoke-rc.d nginx restart

Running behind NAT

Jitsi-Videobridge can run behind a NAT, provided that all required ports are routed (forwarded) to the machine that it runs on. By default these ports are (TCP/443 or TCP/4443 and UDP 10000-20000).

The following extra lines need to be added the file ~/.sip-communicator/sip-communicator.properties (in the home directory of the user running the videobridge):


So the file should look like this at the end:


Hold your first conference

You are now all set and ready to have your first meet by going to

Enabling recording

Currently recording is only supported for linux-64 and macos. To enable it, add the following properties to sip-communicator.properties:


where /path/to/recordings/dir is the path to a pre-existing directory where recordings will be stored (needs to be writeable by the user running jitsi-videobridge), and “secret” is a string which will be used for authentication.

Then, edit the Jitsi-Meet config.js file and set:

enableRecording: true

Restart jitsi-videobridge and start a new conference (making sure that the page is reloaded with the new config.js) – the organizer of the conference should now have a “recording” button in the floating menu, near the “mute” button.