Customized Firefox Package - Need Help PLEASE!

OK, so my client (a school district) prefers Firefox due to Safari's problems on 10.2.8. I am currently running some Intel Xserve's on 10.4.9, with both 10.4.9 and 10.2.8 clients. I've read some posts on how to share preferences for Firefox, but alas I am lost. All I want to set is a homepage, not have firefox update, not save passwords and add some bookmarks. I read a post that said to modify firefox's config file (I believe the one located called firefox.js in the package). How can I configure firefox for my above requests? Also note that I did find away to set the profile and send it to users preferences but if two users use the same machine firefox will only launch for one of them. Any help is defiantly appreciated.

Black MacBook, Mac OS X (10.4.9)

Posted on Jun 19, 2007 7:46 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 22, 2007 7:07 AM

I have adapted this from http://mit.edu/~firefox/www/maintainers/autoconfig.html. The following setup will enable you to create a Firefox package that will enable centrally managed preferences. Once you make these changes you can copy the modified Firefox app to the computers you want to manage.

To be able to centrally manage preferences for Firefox you need to do the following 3 steps.

1. you need to change /Applications/Firefox/Contents/MacOS/greprefs/all.js to have the following lines. The Firefox config files are parsed top down with the last change winning if there is a conflict.

pref("general.config.obscure_value", 0); // takes out ROT-13 encoding on config file
pref("general.config.filename", "firefox.cfg"); //points to the config file that you create

2. you need to make a file in /Applications/Firefox/Contents/MacOS/firefox.cfg which should contain the following:

//setting prefs to read from web server

try {

lockPref("autoadmin.global configurl","http://fqdn.for.your.web.server/path to/autoconf.js"); // points to config file on web server
lockPref("autoadmin.append_emailaddr",false); //doesn't append the username of the user. Change to true if you want per user prefs.

} catch(e) {
displayError("lockedPref", e);
}

3. Next you need to create the config file on your server. In my case I called it autoconf.js which looks like:

// Auto Config prefs for Firefox
// save at fqdn.for.your.web.server/path to/autoconf.js

try {

// locked prefs

lockPref("browser.startup.homepage", "fqdn.default.homepage");
lockPref("browser.startup.homepage override.mstone", "ignore");
lockPref("browser.startup.page", 1);
lockPref("browser.formfill.enable", false);
lockPref("signon.prefillForms", false);
lockPref("signon.rememberSignons", false);

} catch(e) {
displayError("lockedPref", e);
}

Misc:
The above are some examples from my config for Firefox. You can manage any preference you want. To get the preference name and the current setting in the URL field for Firefox enter "about:config" no quotes and press return.

Hope that helps! Let me know if you have any problems.

- Barrett


13 replies
Question marked as Top-ranking reply

Jun 22, 2007 7:07 AM in response to Mike Ryan

I have adapted this from http://mit.edu/~firefox/www/maintainers/autoconfig.html. The following setup will enable you to create a Firefox package that will enable centrally managed preferences. Once you make these changes you can copy the modified Firefox app to the computers you want to manage.

To be able to centrally manage preferences for Firefox you need to do the following 3 steps.

1. you need to change /Applications/Firefox/Contents/MacOS/greprefs/all.js to have the following lines. The Firefox config files are parsed top down with the last change winning if there is a conflict.

pref("general.config.obscure_value", 0); // takes out ROT-13 encoding on config file
pref("general.config.filename", "firefox.cfg"); //points to the config file that you create

2. you need to make a file in /Applications/Firefox/Contents/MacOS/firefox.cfg which should contain the following:

//setting prefs to read from web server

try {

lockPref("autoadmin.global configurl","http://fqdn.for.your.web.server/path to/autoconf.js"); // points to config file on web server
lockPref("autoadmin.append_emailaddr",false); //doesn't append the username of the user. Change to true if you want per user prefs.

} catch(e) {
displayError("lockedPref", e);
}

3. Next you need to create the config file on your server. In my case I called it autoconf.js which looks like:

// Auto Config prefs for Firefox
// save at fqdn.for.your.web.server/path to/autoconf.js

try {

// locked prefs

lockPref("browser.startup.homepage", "fqdn.default.homepage");
lockPref("browser.startup.homepage override.mstone", "ignore");
lockPref("browser.startup.page", 1);
lockPref("browser.formfill.enable", false);
lockPref("signon.prefillForms", false);
lockPref("signon.rememberSignons", false);

} catch(e) {
displayError("lockedPref", e);
}

Misc:
The above are some examples from my config for Firefox. You can manage any preference you want. To get the preference name and the current setting in the URL field for Firefox enter "about:config" no quotes and press return.

Hope that helps! Let me know if you have any problems.

- Barrett


Jun 25, 2007 12:53 PM in response to Mike Ryan

If you are comfortable with the command line you can open the terminal. Type "cd Library/Application\ Support/Firefox/Profiles/" then press return. Next type "ls" and return to list the directory. You will see the profile name. It is some random characters followed by ".default". Type "cd " followed by the profile name and return. Next type "rm .parentlock". That should get you up and running. I'm glad I can help!

- Barrett

Jun 25, 2007 11:07 AM in response to Barrett Hartman1

Some of your info turned out to help me quite a bit it looks like, however I do not have web services running on these servers, so no where to really stick the config files. So now after I mess with the config files, both the all.js and firefox.js (in the defaults folder) I get the kind of default pref's I've been wanting (ie homepage set, only 10mb of cache, no updates, etc) and all seems to be working ok, though sometimes I have to log back out and back in before firefox will work correctly because I'll get the "firefox is already running" error if I dont.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Customized Firefox Package - Need Help PLEASE!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.