Changes

Firefox

1,455 bytes added, 18:18, 3 August 2010
Locking user preferences / Firefox settings for all users (like proxy etc.): Clean up this section
[http://kb.mozillazine.org/Default_browser#Windows Mozillazine on Default Browser].
=== Setting and Locking user preferences / Firefox settings for all users (like proxy etc.) Preferences ===
Add this to Firefox supports the end of ability to both set and lock user preferences. This feature is useful for forcing allusers to use a specific proxy server, setting or forcing a homepage, disabling automatic updates, and so on.js file (you will find this file in "%ProgramFiles%\Mozilla Firefox\greprefs\"):
Create a file called policies.js with the following contents:
<source lang="javascript">
pref("general.config.obscure_value", 0);pref("general.config.filename", "mozilla.cfg");
</source>
'''NOTE: allYou may choose to use obscured values in mozilla.js file cfg by changing the obscure_value above to 1, but beware you will be overwritten whenever need to go through an additional step to convert the plain-text config to an obscured version every time you make a change. Also note that the method used to obscure the config file is easily reversible. Next, create your mozilla.cfg file. Open Firefox update - don't forget and enter about:config in the address bar to re-add see all of the above available configuration options. Note that the first line must a comment, any options configured in the first line will be ignored. If using an obscured config, this should be saved as mozilla.txt instead and converted to allan obscured mozilla.js after you upgrade Firefoxcfg. Online conversion: http://alain.knaff.linux.lu/howto/MozillaCustomization/cgi/byteshf.''' cgi
Then, create a file called mozilla.txt (yes, mozilla.txt, not
mozilla.cfg), and put your custom settings there (NOTE: this file has to begin with //, as the first line of this config file seem to be ignored):
<source lang="javascript">
//
 
// Don't show the Firefox has been upgraded page
lockPref("browser.startup.homepage_override.mstone", "ignore");
 
// Don't check for the default browser
lockPref("browser.shell.checkDefaultBrowser", false);
 
// Disable automatic updatese
lockPref("app.update.autoUpdateEnabled", false);
 
// Set the homepage
lockPref("browser.startup.homepage", "http://www.example.com/");
lockPref("browser.startup.page", 1);
 
// Proxy configuration
lockPref("network.proxy.backup.ftp", "your.proxy");
lockPref("network.proxy.backup.ftp_port", 3128);
</source>
Next, convert this file into mozilla.cfg, Note that you can use pref() instead of lockPref() if you only want to set the default and copy this file allow users to "%PROGRAMFILES%\Mozilla Firefox"change the setting later. You can do conversion here:
http://alainpolicies.knaffjs should be located in %PROGRAMFILES%\Mozilla Firefox\defaults\pref\ and mozilla.linuxcfg should be located in %PROGRAMFILES%\Mozilla Firefox\.lu/howto/MozillaCustomization/cgi/byteshf.cgi
Add the following to your package definition in the appropriate places:
If you don't care about encoding the mozilla.cfg <source lang="xml"><check type="file, append this config to all" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\defaults\pref\policies.js instead:" /><check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\mozilla.cfg" />
<source langinstall cmd='%COMSPEC% /c copy /y "javascript%SOFTWARE%\apps\firefox\policies.js">"%PROGRAMFILES%\Mozilla Firefox\defaults\pref(\"general.config.obscure_value", 0);' />pref("general.config.filename", <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\apps\firefox\mozilla.cfg");<"%PROGRAMFILES%\Mozilla Firefox\"' /source>
The file mozilla<upgrade cmd='%COMSPEC% /c copy /y "%SOFTWARE%\apps\firefox\policies.cfg must be located in js" "%ProgramFilesPROGRAMFILES%\Mozilla Firefox\defaults\pref\".  You can find more details on locking preferences here: http:' //kb.mozillazine.org/Locking_preferences and here:> http:<upgrade cmd='%COMSPEC% /c copy /developer.y "%SOFTWARE%\apps\firefox\mozilla.orgcfg" "%PROGRAMFILES%\Mozilla Firefox\"' /en/docs></Automatic_Mozilla_Configurator:Locked_config_settings:source>
You can find a complete autoconfiguration with bookmarks and permission of popup, cookies and images more details on locking preferences here:http://kb.mozillazine.org/Locking_preferences
You can find a complete autoconfiguration with bookmarks and permission of popup, cookies and images here: http://www.baby-gnu.org/~nebu/firefox-autoconfiguration.cfg
=== Disable Automatic Update ===
117
edits