Jitsi Meet

From Alpine Linux
Revision as of 09:20, 7 July 2024 by WhyNotHugo (talk | contribs) (→‎Jicofo: also now in testing)
This material is obsolete ...

Jitsi seems to be available in the testing repository (Discuss)

NOTE: this will build the applications required for a jitsi-meet server on Alpine Linux. Prosody (apk) plus videobridge and jicofo using latest 'stable' on jitsi GH repo. Tested on 'edge', should work on 3.12 (not tested)

NOTE TODO: I will return and update this page with config files and rc scripts. But it's similar to the Debian config. Also TODO nginx reverse proxy / bosh config.

Prosody

# apk add prosody

edit /etc/prosody/prosody.cfg.lua

generate certs: Edit /etc/prosody/certs/openssl.cnf

[FQDN] means www.example.com

# cd /etc/prosody/certs
# make [FQDN].cnf

edit file and make sure everything is correct

# make [FQDN].key

for self-signed certificate:

# make [FQDN].crt

or, for signing request:

# make [FQDN].csr

NOTE: repeat cert process for: auth.[FQDN] (ie, auth.www.example.com)

If you self-signed the cert, put it in the certs folder so it will be trusted on the local machine.

# ln -sf /etc/prosody/certs/auth.[FQDN] /usr/local/share/ca-certificates/
# update-ca-certificates -f
# prosodyctl start
# prosodyctl register focus auth.[FQDN] YOURSECRET3

(YOURSECRET3 is from cfg file /etc/prosody/prosody.cfg.lua)

# prosodyctl restart


Java/Maven setup

Maven is used to build videobridge and jicofo. Shell scripts included in software use bash. Jitsi uses jdk8, so should probably stick with that version. If you get fancy and use a newer jdk it might not work.

# apk add openjdk8
# apk add maven
# apk add bash
# apk add bash-completion
# sync


Videobridge

The jitsi-videobridge package is available in the testing repositories. For a stable release of Alpine, it needs to be built manually.

Jicofo

The jicofo package is available in the testing repositories. For a stable release of Alpine, the aport needs to be built manually.

Jigasi

Note: Optional. Jigasi is a SIP to Jitsi-Meet interface/gateway. This can be used to allow SIP and POTS users to "call in" to a meeting.

# wget https://github.com/jitsi/jigasi/archive/master.zip
# unzip master.zip
# cd jigasi-master
# mvn -DskipTests -Dassembly.skipAssembly=false package

You should receive a similar message:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:50 min
[INFO] Finished at: 2020-07-14T17:14:12Z
[INFO] ------------------------------------------------------------------------
# cd target
# unzip jigasi-linux-x64-1.1-SNAPSHOT.zip