accetto / ubuntu-vnc-xfce-g3

Headless Ubuntu/Xfce containers with VNC/noVNC (G3v6).
MIT License
214 stars 62 forks source link

Firefox fails WebGL test #11

Closed accetto closed 3 years ago

accetto commented 3 years ago

If navigating to the URL https://get.webgl.org, then Firefox displays the following text:

Hmm. While your browser seems to support WebGL, it is disabled or unavailable. If possible, please ensure that you are running the latest drivers for your video card.

accetto commented 3 years ago

This is actually not a bug, but a compromise decision taken during development. I try to keep the images slim and therefore I try to include only a minimum of necessary packages.

However, Firefox requires the mesa-utils package to be installed to pass the WebGL test from above. Interestingly enough, Chromium doesn't require that.

Because the mesa-utilspackage adds 143MB to the image, which is almost a half of the base image accetto/ubuntu-vnc-xfce-g3:vnc size, I've decided against it.

There are several ways to get a Firefox image, which passes the WebGL test, if you really need it:

  1. You can install the mesa-utils package in the runtime using sudo apt-get update && sudo apt-get install -y mesa-utils.

  2. You can modify the Dockerfile and built a new image locally.

  3. You can use one of the Firefox images from the Docker Hub repository accetto/ubuntu-vnc-xfce-opengl-g3, because the images from the project accetto/headless-drawing-g3 already include support for OpenGL/WebGL/VirtualGL.

  4. You can use one of the bigger Firefox images of the Generation 2 (accetto/xubuntu-vnc-novnc-firefox) or Generation 1 (accetto/ubuntu-vnc-xfce-firefox-default, accetto/ubuntu-vnc-xfce-firefox-plus).