Cara Install Jibri Untuk Jitsi Meet Recording

Posted: June 8, 2020 in Linux

Don’t Forget to Subscribe My Youtube Channel

https://nerdonthestreet.com/wiki?find=Set+Up+Jibri+for+Jitsi+Recording%3Aslash%3AStreaming
https://github.com/jitsi/jibri
Step 1: Install the required packages that are available from Debian 10’s default repositories:
apt install ffmpeg curl unzip software-properties-common
Step 2: If you are using a hosting provider such as DigitalOcean who installs a cloud kernel by default, install a generic kernel, remove the cloud kernel, and reboot into the generic kernel:
Skip
Step 3: Enable the ALSA loopback module to start on boot, and also start it for the current boot:
root@meet1:/home/user# echo "snd_aloop" >> /etc/modules
root@meet1:/home/user# modprobe snd_aloop
root@meet1:/home/user# lsmod | grep snd_aloop
clip_image001

Step 4: Install Google Chrome:
# curl -o – https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
# echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
# apt update
# apt install google-chrome-stable
Step 5: Install ChromeDriver:
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
clip_image003
unzip ~/chromedriver_linux64.zip -d ~/
clip_image004
rm ~/chromedriver_linux64.zip
sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
sudo chown root:root /usr/local/bin/chromedriver
sudo chmod 0755 /usr/local/bin/chromedriver
Step 6: Turn off warnings about scripted control in Chrome:
# mkdir -p /etc/opt/chrome/policies/managed
# echo ‘{ "CommandLineFlagSecurityWarningsEnabled": false }’ >>/etc/opt/chrome/policies/managed/managed_policies.json
clip_image006
Step 7: Install Jibri:
apt install jibri
clip_image008
Step 8: Add Jibri’s user account to the necessary groups:
Ensure that the jibri user is in the correct groups to make full access of the audio and video devices. The example jibri account in Ubuntu 16.04 are: "adm","audio","video","plugdev".
# usermod -aG adm,audio,video,plugdev jibri
Step 9: Configure Prosody:
nano /etc/prosody/prosody.cfg.lua
Uncomment the items in the "conference" section:
—Set up a MUC (multi-user chat) room server on conference.example.com:
Component "conference.meet1.aafikry.web.id" "muc"
— Store MUC messages in an archive and allow users to access it
modules_enabled = { "muc_mam" }
— Add an internal MUC component entry:
— internal muc component, meant to enable pools of jibri and jigasi clients
Component "internal.auth.meet1.aafikry.web.id" "muc"
modules_enabled = {
"ping";
}
storage = "internal"
muc_room_cache_size = 1000
— Add a new VirtualHost entry to hold Jibri’s user account:
VirtualHost "recorder.meet1.aafikry.web.id"
modules_enabled = {
"ping";
}
authentication = "internal_plain"
clip_image010
Step 10: Create two new accounts for Jibri to use (one for control purposes, one for recording purposes):
prosodyctl register jibri auth.meet1.aafikry.web.id Jibr1P@ssw0rd
prosodyctl register recorder recorder.meet1.aafikry.web.id Rec0rderP@ssw0rd
clip_image012
Step 11: Configure Jicofo:
nano /etc/jitsi/jicofo/sip-communicator.properties
org.jitsi.jicofo.jibri.BREWERY=JibriBrewery@internal.auth.meet1.aafikry.web.id
org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90
clip_image014
Step 12: Configure Jitsi Meet:
nano /etc/jitsi/meet/meet1.aafikry.web.id-config.js
Locate and uncomment the following options:
fileRecordingsEnabled: true,
clip_image016
liveStreamingEnabled: true,
hiddenDomain: ‘recorder.meet1.aafikry.web.id-config’,
clip_image018
Step 13: Make a directory to store recordings and set its permissions appropriately:
mkdir /recordings
chown jibri:jibri /recordings
clip_image020
Share On Windows
· Create User On Active Directory
· Create Directory Share Record_Jitsi
· Share Folder
clip_image021
clip_image022
clip_image023
clip_image024
Create Credentials Windows on Linux
nano /etc/win-credentials
username=_jitsi
password=Password01
domain=aafikry.local
mkdir / record_jitsi
chown jibri:jibri / record_jitsi
Install cifs-utils
apt-get install cifs-utils
Check uid
Id -u jibri
id -g jibri
clip_image025
Mount Manual
mount -t cifs -o credentials=/etc/win-credentials,uid=997,gid=997,dir_mode=0755,file_mode=0755 //dc01.aafikry.local/Record_Jitsi /record_jitsi
Automatic Mount
Nano /etc/fstab
Add
//dc01.aafikry.local/Record_Jitsi /record_jitsi cifs credentials=/etc/win-credentials,uid=997,gid=997,iocharset=utf8,sec=ntlm 0 0
clip_image027
mount /record_jitsi
Step 14: Configure Jibri:
nano /etc/jitsi/jibri/config.json
Set the following options:
"recording_directory": "/recordings",
"finalize_recording_script_path": "",
"xmpp_server_hosts": [
"meet1.aafikry.web.id"
],
"xmpp_domain": "meet1.aafikry.web.id",
"control_login": {
"domain": "auth.meet1.aafikry.web.id",
"username": "jibri",
"password": "Jibr1P@ssw0rd"
},
"control_muc": {
"domain": "internal.auth.meet1.aafikry.web.id",
"room_name": "JibriBrewery",
"nickname": "jibri"
},
"call_login": {
"domain": "recorder.meet1.aafikry.web.id",
"username": "recorder",
"password": "Rec0rderP@ssw0rd"
clip_image029
clip_image031
clip_image033
Step 15: Install Java 8:
Java -version
clip_image034
Code
wget -O – https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add –
clip_image036
add-apt-repository https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
clip_image038
apt install adoptopenjdk-8-hotspot
clip_image040
update-alternatives –config java
clip_image042
/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java -version
clip_image044
cat /etc/systemd/system/jibri.service
clip_image045
Configure Jibri to start with Java 8 instead of the default Java version (replace the word "java" with the full path to Java 8):
nano /opt/jitsi/jibri/launch.sh
/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java
clip_image047
exec /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java -Djava.util.logging.config.file=/etc/jitsi/jibri/logging.properties -jar /opt/jitsi/jibri/jibri.jar –config "/etc/jitsi/jibri/config.json"
Step 16: Restart all services, enable and start Jibri:
systemctl restart prosody
systemctl restart jicofo
systemctl restart jitsi-videobridge2
systemctl enable –now jibri
clip_image049
Jika tidak full screen recording
clip_image051
Lakukan
nano /etc/systemd/system/jibri-icewm.service
add
ExecStartPre=/bin/sleep 15
Make Sure All Configuration And Try Restart Server

Leave a Reply

Your email address will not be published. Required fields are marked *