# Playing with Jitsi on Debian

**URL:** https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432
**Category:** Development
**Created:** [February 17, 2021, 6:33am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432 "2021-02-17T06:33:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [February 17, 2021, 6:33am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/1 "2021-02-17T06:33:52Z")

</div>

I spent some time setting up and trying out Jitsi on Debian. Resource consumption seems acceptable enough for a small group of people to do video chat. While more testing would be better, I believe we can look forward to having Jitsi in FreedomBox.

My setup details:

- VirtualBox + Vagrant with Buster image.
- 2 CPU cores
- 512 MiB RAM
- Added extra network adapter with `config.vm.network "private_network", type: "dhcp"`.
- In the host, /etc/hosts added a line like this `172.28.128.3 jitsi.vm.example`.
- I have followed the [Jitsi Handbook](https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart) to install in Buster. `apt install jitsi-web`.
- Had to make one fix in /usr/share/jitsi-videobridge/jvb.sh to remove option `-XX:+UseConcMarkSweepGC` since openjdk-15 removed it.
- For test call with 2 Firefox windows (different containers) on the host machine. Enabled audio and video on both parties and set them in side-by view.

Resource consumption seems to be pretty acceptable. It might work out okay even for Pioneer box if not it will certainly work well on the likes of RPi 4, RockPro64, etc.

- CPU usage is around 10-20%.
- Memory usage is around 320MiB for Jitsi Video Bridge + Jitsi Conference Focus + Coturn + Prosody.
- Network usage is around 2.5Mbps.

 ![cpu_memory](https://discuss.freedombox.org/uploads/default/original/1X/74e7564cba6dd1f8e7a350c77a4ea6fec1bd1938.png) ![network](https://discuss.freedombox.org/uploads/default/original/1X/b0763a7574d787c9a6a28f4de060eba8f25e9bb4.png)

---

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [February 17, 2021, 8:28pm UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/2 "2021-02-17T20:28:26Z")

</div>

I tried with six participants. The host machine was too underpowered to handle six firefox windows all doing simultaneous audio/video. I had to use a desktop machine so the connection was over wireless this time. The video quality for each of participant showed poor icon and I could not bring it up even though I set the quality to high in settings. However, the server resource usage is still promising:

- CPU usage was around 40-60% (one core out of two). 30% CPU usage overall.
- RAM usage was higher this time about 620MiB for the whole system (swap was used because this is a 512MiB VM).
- Network usage is strangely low (possibly because of low quality video) about 2.8Mbps.

 ![six_cpu_network_memory](https://discuss.freedombox.org/uploads/default/original/1X/45e6d26b0f252649bbe8ab3ea92488c627acf270.png)

---

<div class="post-metadata">

### Author: ![NickA](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@NickA](https://discuss.freedombox.org/u/NickA)
#### Post date: [February 18, 2021, 12:24am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/3 "2021-02-18T00:24:54Z")

</div>

Maybe the performance is better with [Galène](https://galene.org).

Comparing the time it took for the jitsi\_ynh integration to apparently stall, to the short time it took for [GitHub - YunoHost-Apps/galene\_ynh: Galène package for YunoHost](https://github.com/YunoHost-Apps/galene_ynh) to come out, it seems also much much easier to actually integrate into an existing environment.

> For one-to-many communication (lectures), the behaviour is linear, and Galène should be able to serve about 400 participants per core. For many-to-many communication (meetings), the behaviour is quadratic (the server load grows as the square of the number of participants), expect to be able to handle on the order of 20 participants in a single meeting on one core, 40 on four cores (more if some participants don’t switch their camera on).

---

<div class="post-metadata">

### Author: ![fred1m](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/fred1m/32/347_2.png) [@fred1m](https://discuss.freedombox.org/u/fred1m)
#### Post date: [February 18, 2021, 10:17am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/4 "2021-02-18T10:17:36Z")

</div>

I would suggest `bpytop` 🙂

 ![Capture d’écran de 2021-02-18 11-13-18](https://discuss.freedombox.org/uploads/default/original/1X/8ced4e56ae9947ae69a94aa22819e710e08301c9.png)

---

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [February 20, 2021, 1:26am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/5 "2021-02-20T01:26:00Z")

</div>

> [@NickA](#):
>
> Maybe the performance is better with [Galène](https://galene.org).

I checked out the project. It looks extremely promising with its scalability and resource consumption. A simple call worked out as expected. Screen sharing and chat worked too. The UI is quite decent. In terms of packaging requirements, it seems to have only a handfull of Go libraries it depends on (which is quite good).

However, on the overall, I could not gain the same level confidence on it as I have on Jitsi. I have been using Jitsi for a while and it seems quite mature. Galene unfortunately seems to have mostly a single contributor, short project history and a low version number. Also due to lack of end-to-encryption and streaming and learning focus it seems more of a competitor to BigBlueButton (which we are also planning to do) than to Jitsi. I really hope we have this app in FreedomBox but I am not sure if it will be able to replace Jitsi for us.

I think we should go ahead with Jitsi and look forward to add this app in future.

---

<div class="post-metadata">

### Author: ![NickA](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@NickA](https://discuss.freedombox.org/u/NickA)
#### Post date: [February 20, 2021, 10:36am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/6 "2021-02-20T10:36:02Z")

</div>

Did you get into the jitsi packaging and integration challenge yet? Jitsi seems to have a real long history there, my guess was that new Galène is more likely to enter Debian.

And it’s developing quickly covering both jitsi and BBB use-cases, scaling well to small SBC boards. Aren’t there maybe more debian devs that might be interested?

A Galène thread touching different topics including E2E: [Show HN: Galène Videoconferencing Server | Hacker News](https://news.ycombinator.com/item?id=25485624)

---

<div class="post-metadata">

### Author: ![NickA](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@NickA](https://discuss.freedombox.org/u/NickA)
#### Post date: [February 20, 2021, 11:05am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/7 "2021-02-20T11:05:46Z")

</div>

If you use a translator, this seems to talk about reducing the external connections of jitsi and the trackers in their mobile apps [Jitsi Meet: Server-Einstellungen für einen datenschutzfreundlichen Betrieb ⋆ Kuketz IT-Security Blog](https://www.kuketz-blog.de/jitsi-meet-server-einstellungen-fuer-einen-datenschutzfreundlichen-betrieb/)

And mind the outcome here:

> <https://github.com/jitsi/jitsi-meet/issues/5799>
>
> Description
> Jitsi Meet has the intention to be used as GDPR compliant and privacy friendly alternative to other video conferencing tools. Thanks...

---

<div class="post-metadata">

### Author: ![njoseph](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/njoseph/32/17_2.png) [@njoseph](https://discuss.freedombox.org/u/njoseph)
#### Post date: [February 21, 2021, 6:44am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/8 "2021-02-21T06:44:26Z")

</div>

Most of the libraries that galene uses are from [pion](https://github.com/pion). pion also has an SFU project called [pion-sfu](https://github.com/pion/ion-sfu).

---

<div class="post-metadata">

### Author: ![njoseph](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/njoseph/32/17_2.png) [@njoseph](https://discuss.freedombox.org/u/njoseph)
#### Post date: [February 21, 2021, 7:04am UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/9 "2021-02-21T07:04:46Z")

</div>

Thanks for pointing this out.

Any trackers on the server can be removed during Debian packaging.

Maybe we should recommend only the F-Droid app in our list of client apps and not the one on the Play Store since it has trackers (or add a warning).

---

<div class="post-metadata">

### Author: ![njoseph](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/njoseph/32/17_2.png) [@njoseph](https://discuss.freedombox.org/u/njoseph)
#### Post date: [February 22, 2021, 5:37pm UTC](https://discuss.freedombox.org/t/playing-with-jitsi-on-debian/1432/10 "2021-02-22T17:37:27Z")

</div>

I attended a talk by the author of Galene to ask about pion-sfu.  
Slides from the talk: [https://galene.org/galene-20210222.pdf](https://galene.org/galene-20210222.pdf)

Looks like pion-sfu is a newer project than Galene. There wasn’t an SFU implementation as part of the pion stack when Galene was started. Though Galene is mostly built on the pion stack, it doesn’t use pion-sfu.

Galene was made to be a replacement for Big Blue Button which is notoriously expensive on server resources (I also have personal experience with this). The user interface also mimics BBB.

I have the same concerns about Galene that Sunil mentioned earlier.

In my opinion, BBB/Galene doesn’t have a good use case for home servers. However, we can consider Galene for University deployments of FreedomBox. Ping @madihaz

Galene is like a proof-of-concept of the very promising pion stack. I look forward to seeing more self-hosted applications built on it.
