Firefox 4 has been released few days ago, as we seen on the guide on how to install it on Ubuntu. The Linux version of Firefox is almost identical to the Windows and Mac version, except for a major aspect popular in this new version: the Linux version of Firefox 4 does not support WebGL by default.
Here it is a guide on how to enable the WebGL support on Firefox 4.
First you need to install libosmesa6. On Debian/Ubuntu and other apt based distributions, you can use the following command:
sudo apt-get install libosmesa6
On other distributions you have to use the relative package manager instead of apt.
Then, on Firefox 4 open the following address: “about:config”; accept the security warning and then search the following setting: “webgl.osmesalib” and set its value to “/usr/lib/libOSMesa.so.6″. Finally, close and re-open Firefox 4.
To test if it works, visit the dedicated page on Mozilla Fondation.


