Originally created for use in San Diego State University's Educational Technology 700 course on integrating the use of blogs in the classroom for educational advancement, this blog now acts as my personal online area for documenting professional advancements, ideas, and edtec ramblings of all sorts.
Tuesday, June 08, 2010
Lock Down Firefox Preferences on Ubuntu Lucid With a New firefox.js File
LTSP is, in my opinion, an elegant but troublesome solution. Without consistent and frequent monitoring there are simply too many ways for individual workstations to stop functioning. Of course, when a breaker flips, a student accidentally kicks a surge protector strip off, or someone knocks out the switch the whole thing comes to a crashing halt.
Therefore, I've recently begun building several images of both Windows XP (for our Rosetta Stone utilizing teachers) and Ubuntu Lucid for the various machines we have on campus. I'm hoping to find the time to put together a complete "From Square One" guide to locking down the Ubuntu desktop (as I've done it a few times already this week), but for now I thought I'd share a particularly useful bit of code, following up from a previous post of mine.
Some of the old firefox.js settings no longer work, but I've managed to fix all of them and add a couple more that I like. I think the descriptions are mostly adequate to see what I'm attempting, but if you have any questions drop a comment and I'll reply. Cheers! -Joe
As before, this is the firefox.js file located in etc/firefox/pref/
// This is the Debian specific preferences file for Mozilla Firefox
// You can make any change in here, it is the purpose of this file.
// You can, with this file and all files present in the
// /etc/firefox/pref directory, override any preference that is
// present in /usr/lib/firefox/defaults/pref directory.
// While your changes will be kept on upgrade if you modify files in
// /etc/firefox/pref, please note that they won't be kept if you
// do them in /usr/lib/firefox/defaults/pref.
pref("extensions.update.enabled", true);
// Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
// Disable default browser checking.
pref("browser.shell.checkDefaultBrowser", false);
// Prevent EULA dialog to popup on first run
pref("browser.EULA.override", true);
// identify default locale to use if no /usr/lib/firefox-addons/searchplugins/LOCALE
// exists for the current used LOCALE
pref("distribution.searchplugins.defaultLocale", "en-US");
// Enable the NetworkManager integration
pref("toolkit.networkmanager.disable", false);
// Other preferences
user_pref("browser.startup.homepage", "http://www.aeacs.org");
user_pref("startup.homepage_override_url", "http://www.aeacs.org");
user_pref("startup.homepage_welcome_url", "http://www.aeacs.org");
pref("browser.startup.homepage_reset", "http://www.aeacs.org");
pref("privacy.sanitize.sanitizeOnShutdown", true);
pref("privacy.sanitize.promptOnSanitize", false);
pref("privacy.clearOnShutdown.offlineApps", true);
pref("privacy.clearOnShutdown.passwords", true);
pref("privacy.clearOnShutdown.siteSettings", true);
pref("privacy.clearOnShutdown.history", false);
pref("privacy.clearOnShutdown.downloads", false);
pref("signon.rememberSignons", false);
pref("browser.tabs.warnOnClose", false);
Tuesday, April 28, 2009
Back (again), Jaunty Jackalope, LTSP local apps, and a new way to set firefox preferences
Speaking of Xubuntu 9.04, if you haven't had time to read up on all the changes in Jaunty I suggest you do so. I think I agree with the consensus, which is basically that everything just works a little bit better. I'm glad to see they didn't adding any major changes like pulseaudio or compiz and instead seemed to focus more on making everything more reliable and faster.
9.04 has seen some significant improvements in LTSP as well, including something that has the potential to revolutionize (at least for me) how LTSP deployments are configured and used. That thing is support for local apps. You can read more about it in the release notes. If and when I get this feature working I'll be sure to post back about it.
Finally, I wanted to share something I discovered recently that relates to a popular former post of mine about setting firefox preferences. I've since found a better way to set these preferences. Instead of creating and editing a user.js file I now just edit the firefox.js file in etc/firefox/pref/
Things aside from the typical preferences that are included in Xubuntu by default that I decided to tic are:
setting the homepage
automatically clearing cookies and passwords after each session
not asking the user if they want to clear the cookies and passwords
not remembering any passwords by default
Here is my entire firefox.js file that I use at school:
// This is the Debian specific preferences file for Mozilla Firefox
// You can make any change in here, it is the purpose of this file.
// You can, with this file and all files present in the
// /etc/firefox/pref directory, override any preference that is
// present in /usr/lib/firefox/defaults/pref directory.
// While your changes will be kept on upgrade if you modify files in
// /etc/firefox/pref, please note that they won't be kept if you
// do them in /usr/lib/firefox/defaults/
pref. pref("extensions.update.
enabled", true); // Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
// Disable default browser checking.
pref("browser.shell.
checkDefaultBrowser", false); // Prevent EULA dialog to popup on first run
pref("browser.EULA.override", true);
// Disable "safe browsing" feature that hogs CPU, HDD, etc. etc. in LTSP
pref("browser.safebrowsing.
enabled", false); pref("browser.safebrowsing.
malware.enabled", false); // Disable annoying location-bar suggestion "feature" that is sludgy with thin-clients
pref("browser.urlbar.
maxRichResults", 0); // Disable offline/disk caching of web pages
pref("browser.cache.offline.
enable", false); pref("browser.cache.disk.
enable", false); // Other preferences
pref("browser.startup.
homepage", "http://www.aeacs.org"); pref("browser.startup.
homepage_reset", "http://www.aeacs.org"); pref("privacy.item.passwords", true);
pref("privacy.item.
offlineApps", true); pref("privacy.item.cookies", true);
pref("privacy.sanitize.
promptOnSanitize", false); pref("privacy.sanitize.
sanitizeOnShutdown", true); pref("signon.rememberSignons", false);