News for hackers. Stuff that matters.
Re:Prevent Zoom from consuming all your CPU on Linux by echlebek on Monday November 15, 2021 @07:29PM (#29234952)
I don't permit Zoom to run on my Linux desktop, too sketchy. Instead I use their web ui, which runs in the relative safety of my firefox container.
Re:Prevent Zoom from consuming all your CPU on Linux by tagrun on Tuesday November 16, 2021 @12:34AM (#29237245)
That's not really a container though, Firefox by default has a wide-range access. As someone who has to use Zoom, I use firejail, which is a true container, super easy to use and comes with a profile for Zoom out-of-the-box.

To set it up, just create a symlink once

   # ln -s /usr/bin/firejail /usr/local/bin/zoom
and you should be all set (assuming that in your PATH, /usr/local/bin comes before wherever the real zoom binary is, more details on firejail: https://wiki.archlinux.org/title/firejail#Using_Firejail_by_...)

In my case, I also have a ~/.config/firejail/zoom.local file with the contents

   whitelist ${HOME}/Documents/Zoom/
   noblacklist ${HOME}/Documents/Zoom/
to fine-tune access for storing chat logs under the default path.

It is also very easy to sandbox X11 access with firejail (which uses Xpra or Xephyr), but I only have Zoom running when I use it, and I often need share my screen, so I don't enable it.

Re:Prevent Zoom from consuming all your CPU on Linux by gbrown on Monday November 15, 2021 @08:09PM (#29235321)
I found the video quality and responsiveness to be far worse, and I have to teach and work over Zoom. I tried running the desktop client virtualized as well, with similar results.

So… sketchy it is. I find myself wondering what it’s doing with 15% CPU when not in a meeting. Feelsbad.

Re:Prevent Zoom from consuming all your CPU on Linux by echlebek on Monday November 15, 2021 @08:19PM (#29235412)
I ran it under strace and after that it was never allowed to run again. I don't know exactly what it's doing, but it's nothing I want it to be doing.

If you get an AMD GPU then the web experience is a bit more performant, the Intel iGPUs are not quite potent enough.

Re:Prevent Zoom from consuming all your CPU on Linux by Quasimarion on Monday November 15, 2021 @10:45PM (#29236530)
Mind if you elaborate on that? I just ran zoom with strace but see nothing out of ordinary.
Re:Prevent Zoom from consuming all your CPU on Linux by KennyBlanken on Monday November 15, 2021 @10:29PM (#29236423)
Discreet GPUs support encoding/decoding a lot more streams than the integrated stuff. Depending on the generation of Quicksync you have, the codec used by Zoom might not be hardware accelerated at all, though I think Zoom uses h264, so you'd have to be on some pretty old hardware.
Re:Prevent Zoom from consuming all your CPU on Linux by londons_explore on Tuesday November 16, 2021 @12:55AM (#29237374)
I don't know about zoom specifically, but most video conferencing programs counterintuitively don't use hardware video encoders/decoders.

They use the GPU for visual effects (background blur etc), but then do regular CPU video encoding. That's why they gobble so much CPU!

I think that helps with system compatibility. Hardware video encoders are full of bugs and corner cases, and it's very easy for someone to end up seeing a garbled image when the bitstream was truncated or bad in some way.

Re:Prevent Zoom from consuming all your CPU on Linux by gbrown on Tuesday November 16, 2021 @08:22AM (#29240220)
Is there something specific about the AMD drivers? I have a decent Nvidia card (I know, I know…)
Re:Prevent Zoom from consuming all your CPU on Linux by KennyBlanken on Monday November 15, 2021 @10:25PM (#29236403)
Have you tried running the desktop client in a container? Lots of options for this on Linux.

There shouldn't be any significant virtualization penalty. My guess is that it uses hardware video codec acceleration and that wasn't accessible in the VM you had set up? If the guest was Windows, looks like nvidia has supported this since host driver version v465 or later.

https://nvidia.custhelp.com/app/answers/detail/a_id/5173/~/g...

HTH!

Re:Prevent Zoom from consuming all your CPU on Linux by jrockway on Monday November 15, 2021 @11:12PM (#29236717)
The systemd slice approach is the same mechanism as containers.

The security problem is being able to talk to the same X server as trusted applications. X clients can do pretty much all the things you don't want Zoom to do; look at your screen, observe your keystrokes, etc. (Sadly, many of Zoom's features, like screen sharing, are also great things for spyware to do in the background. Not saying Zoom does this, but if you don't trust them, this level of access is the part that worries people, not consuming too much CPU.)

Re:Prevent Zoom from consuming all your CPU on Linux by yc12340 on Tuesday November 16, 2021 @01:06AM (#29237423)
> The security problem is being able to talk to the same X server as trusted applications

Use Ctrl+Alt+F<number> to switch into another VT and run a different X server. Run zoom in container there.

I found this a lot more convenient than messing with nested X servers and other types of X11 client isolation. Each time you leave an X server and switch to another VT, the clients perceive it like the monitor being turned on/off.

Re:Prevent Zoom from consuming all your CPU on Linux by mbarbar on Tuesday November 16, 2021 @04:35AM (#29238630)
Thank you for this, easy solution that didn't cross my mind. I wanted to restrict Zoom from reading files (solved by a sandbox) while also sharing my screen from my normal environment (VM is out of the picture) but also preventing it from looking at the X clipboard and all that stuff.
Re:Prevent Zoom from consuming all your CPU on Linux by gbrown on Tuesday November 16, 2021 @08:24AM (#29240247)
I did, but had trouble getting it to work. It was a while ago though, and the image I was working from was old/unmaintained even at the time. Linux guest. Do you have any examples to hand?
Re:Prevent Zoom from consuming all your CPU on Linux by eikenberry on Monday November 15, 2021 @09:20PM (#29235922)
Why run it when not in a meeting?
Re:Prevent Zoom from consuming all your CPU on Linux by gbrown on Tuesday November 16, 2021 @08:08AM (#29240073)
I do kill it, but I’m in and out of meetings all day, so it’s easy to forget.
Re:Prevent Zoom from consuming all your CPU on Linux by alvarlagerlof on Monday November 15, 2021 @07:39PM (#29235041)
How do you use the web UI?
Re:Prevent Zoom from consuming all your CPU on Linux by echlebek on Monday November 15, 2021 @08:05PM (#29235278)
When you get a link to a zoom call, instead of permitting it to open a handler program or clicking Join Now, click the link that says

> Having issues with Zoom Client? Join from Your Browser

Re:Prevent Zoom from consuming all your CPU on Linux by prussian on Monday November 15, 2021 @07:41PM (#29235057)
https://chrome.google.com/webstore/detail/zoom-redirector/fm...

I just use this. I'm assuming that is what you're asking about.

Re:Prevent Zoom from consuming all your CPU on Linux by echlebek on Monday November 15, 2021 @08:06PM (#29235288)
I don't use that, since I'm not using Chrome, but it looks handy.
Re:Prevent Zoom from consuming all your CPU on Linux by DesiLurker on Monday November 15, 2021 @08:55PM (#29235711)
you do know that any browser extension you use has a cleartext view of all your web content (on that browser).
Re:Prevent Zoom from consuming all your CPU on Linux by notreallyserio on Monday November 15, 2021 @09:05PM (#29235807)
I fear the day that UBlock Origin ends up with an exploitable bug. It's so damn common, but the web is nearly unusable without it.
Re:Prevent Zoom from consuming all your CPU on Linux by cwojno on Monday November 15, 2021 @08:58PM (#29235744)
They use dark patterns to hide the web version so that you download the client. I fear they'll yank the plug on the web version one of these days...
Re:Prevent Zoom from consuming all your CPU on Linux by jaimex2 on Monday November 15, 2021 @09:17PM (#29235905)
and that will be the last Zoom meeting I ever attend.