Thursday, March 22, 2012

Setting browser defaults on Linux systems

These are example configs for how to load a Linux system with default browser settings for Mozilla Firefox and Google Chrome.

Mozilla Firefox

* Defined by /etc/xul-ext/ubufox.js
* MozillaZine reference for "about:config" entries
* Example contents....

user_pref("browser.startup.homepage", "http://www.google.com/");
user_pref("browser.startup.homepage_override", "http://www.google.com/");
user_pref("browser.startup.homepage_welcome_url", "http://www.google.com/");
user_pref("signon.rememberSignons",false);

Google Chrome

* Defined by .json files in /etc/opt/chrome/policies/managed/ & /etc/opt/chrome/policies/recommended/
* Policy templates can be downloaded from Google, or referenced on their website.
* Example /etc/opt/chrome/policies/managed/chrome.json

// Policy template for Linux.
{
  "HideWebStorePromo": true,
  "HomepageLocation": "http://news.google.com/",
  "ImportBookmarks": false,
  "ImportHistory": false,
  "ImportHomepage": false,
  "ImportSavedPasswords": false,
  "ImportSearchEngine": false,
  "PasswordManagerEnabled": false,
  "PopupsAllowedForUrls": ["https://[*.]example.com","https://www.google.com"],
  "RestoreOnStartup": 0,
}

No comments:

Post a Comment