Davide Targa website

Programming, web development and open source

Enable Webgl Support in Firefox 4

WebGL is a Web-based Graphics Library. It extends the capability of the JavaScript programming language to allow it to generate interactive 3D graphics within any compatible web browser. Let’s see how we can enable it in Firefox 4!

To enable WebGL support in firefox 4 using Ubuntu 10.04 you have to install the library libosmesa6 with the following command:

sudo apt-get install libosmesa6

After this start up firefox and in the url bar type:


and press enter. Say ok to the alert message and in the search box type webgl. Double click on webglosmesalib parameter and enter the library path (like in the screenshot below).

"Firefox webgl"

In my case it’s:


Now quit and restart Firefox and WebGL support shoul be active.