Hướng dẫn tích hợp tính năng Etherpad trên Jitsi

30/12/2020

Hôm nay, Cloud 365 sẽ hướng dẫn các bạn tích hợp công cụ Etherpad để sử dụng trong phòng họp Jitsi.

Domain sử dụng trong bài viết: http://meet.workfromhome.vn/

1: Cài đặt Etherpad

Cài đặt Git

apt install git -y 

Cài đặt Etherpad

cd /opt/  curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt install -y nodejs git clone --branch master https://github.com/ether/etherpad-lite.git && cd etherpad-lite && bin/run.sh --root

Kiểm tra đường dẫn: http://<DOMAIN>:9001, giao diện Etherpad như sau.

Chọn New Pad

Tạo File Systemd cho dịch vụ Etherpad /etc/systemd/system/etherpad.service

vi /etc/systemd/system/etherpad.service

Thêm vào file nội dung:

[Unit] Description=Etherpad-lite, the collaborative editor. After=syslog.target network.target  [Service] Type=simple User=root Group=www-data WorkingDirectory=/opt/etherpad-lite/ Environment=NODE_ENV=production  ExecStart=/usr/bin/node /opt/etherpad-lite/src/node/server.js  Restart=always   [Install] WantedBy=multi-user.target

Khởi động dịch vụ

sudo systemctl daemon-reload sudo systemctl start etherpad.service sudo systemctl enable etherpad.service 

Kiểm tra lại đường dẫn http://<DOMAIN>:9001

Kiểm tra log dịch vụ như sau: (Dùng trong trường hợp dịch vụ có vấn đề)

journalctl -u etherpad

Phần 2: Cấu hình tích hợp Etherpad + Jitsi

Backup thư mục static Jitsi-meet

cd /opt/ cp -R /usr/share/jitsi-meet/static /opt/static_jitsi_bak/ 

Copy file static của Etherpad vào thư mục static chung Jitsi-meet

cp -R /opt/etherpad-lite/src/static/* /usr/share/jitsi-meet/static

Lưu ý:

  • Khi cấu hình Etherpad + Jitsi, etherpad sẽ là 1 sub path thuộc jitsi.
  • VD: https://<DOMAIN> => Jitsi, https://<DOMAIN>/etherpad => Etherpad

Cấu hình Nginx, thêm vào cuối File /etc/nginx/sites-available/<DOMAIN>.conf

Cụ thể ở đây là /etc/nginx/sites-available/meet.workfromhome.vn.conf

Lưu ý:

  • Thêm đoạn cấu hình vào gần cuối
  • Trước dấu đóng } cuối cùng
....     # Etherpad path     location ^~ /etherpad/ {         proxy_pass http://localhost:9001/;         proxy_set_header X-Forwarded-For $remote_addr;         proxy_buffering off;         proxy_set_header       Host $host;     }

Sửa file /etc/jitsi/meet/<DOMAIN>-config.js

Cụ thể ở đây là /etc/jitsi/meet/meet.workfromhome.vn-config.js

Thêm vào dòng này:

    etherpad_base: 'https://meet.workfromhome.vn//etherpad/p/',

Lưu ý:

  • Giá trị etherpad_base bằng https://<DOMAIN>/etherpad/p/
  • Thêm vào trước cấu hình makeJsonParserHappy

Kiểm tra:

cat /etc/jitsi/meet/meet.workfromhome.vn/-config.js | grep 'etherpad_base' -C 5

Khởi động lại dịch vụ Nginx

nginx -t nginx -s reload

Kiểm tra đường dẫn: https://<DOMAIN>/, tạo cuộc họp

Tại giao diện cuộc họp chúng ta sẽ có thêm tính năng chia sẻ docs.

Click vào ô mở tài liệu được chia sẻ sẽ thấy giao diện sau:

Tính năng chia sẻ note cho phép các thành viên trong phòng họp có thể chia sẻ ghi chú trong cuộc họp:

Kết luận

Như vậy chúng tôi đã hướng dẫn xong cho bạn cách tính hợp Etherpad vào trang Jitsi của bạn.

Chúc các bạn thành công!

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Install and Setup Latest Openfire – Real Time Chat Server on Linux

Openfire is a free real time collaboration (RTC) server licensed under the Open Source Apache License. It uses the widely...
28/12/2020

Top 5 Tools for Taking and Editing Screenshots on Linux

Many times you feel the need to capture the screen or a part of it to show someone or to keep for yourself. While on Android,...
29/12/2020

VIM Find and Replace

Vi/Vim is one of the legendary text editors out there that still finds its place at the arsenal of advanced and professional...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019
26/10/2021

How to Update Ubuntu Linux
24/10/2021

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu
20/10/2021

Hướng dẫn cài đặt Apache CloudStack 4.15.2.0
19/10/2021

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader
19/10/2021