This page is specific to Ubuntu versions 12.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


Introduction

Firefox is one of the most used programs in LTSP, and due to the multiuse nature of LTSP some steps can be taken to make it work better, like avoid its own page caching if a squid server is available, or set for all users the same default homepage

General issues

global settins are read in this order:

/usr/lib/firefox/defaults/pref/vendor.js
/usr/lib/firefox/defaults/pref/syspref.js
/usr/lib/firefox/defaults/pref/channel-prefs.js

where syspref.js is a symlink to:

/etc/firefox/syspref.js

so that file seems the perfect place to put FF global settings, but unfortunately is not. Since also ubufox package is installed, you have to put global settings in:

/etc/xul-ext/ubufox.js

instead, otherwise some settings could work and others be ignored...

Disk cache

Local page content caching is saved in:

~/.mozilla/firefox/<PROFILE>.default/Cache

To avoid disk caching, the correct thing should be:

pref("browser.cache.disk.smart_size.enabled", false);
pref("browser.cache.disk.capacity", 0);

but unfortunately only the first parameter seem to be taken into consideration. A workaround is just set:

pref("browser.cache.disk.enable", false);

(note that is .enable and not .enabled with final 'd') its drawback is that from FF options you don't have a way to see it and understand why, even if caching seems active, it is not.

Home page

The syntax, i.e.:

pref("browser.startup.homepage", "http://www.gnu.org");

does not work. Instead, as described in ubufox.js comments, you have to prepare a file containing the desired url with this syntax:

browser.startup.homepage=http://www.gnu.org/

and then tell in ubufox.js to use it. Es. create /etc/xul-ext/homepage.properties with

browser.startup.homepage=http://www.gnu.org/|http://www.fsf.org/

and in ubufox.js set:

pref("browser.startup.homepage", "file:/etc/xul-ext/homepage.properties");

At FF startup two tabs will be opened in the above mentioned urls.

UbuntuLTSP/FirefoxOptimize (last edited 2013-03-02 17:05:26 by rautamiekka)