LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > Notes
User Name
Password

Notices

These are my notes. I moved them so I don't have to maintain a blog server just for them. They may not be at all useful for anyone else.
Rate this Entry

Iceweasel caching

Posted 07-15-2012 at 01:15 AM by nglbrkr
Updated 07-15-2012 at 01:19 AM by nglbrkr

lifted from
http://bootpolish.net/home_ltsp_ltspiceweaselhacks
and not yet tested in school

Code:
$ vim /etc/iceweasel/pref/iceweasel.js
// This is the Debian specific preferences file for Iceweasel
// 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/iceweasel/pref directory, override any preference that is
// present in /usr/lib/iceweasel/defaults/preferences directory.
// While your changes will be kept on upgrade if you modify files in
// /etc/iceweasel/pref, please note that they won't be kept if you
// do make your changes in /usr/lib/iceweasel/defaults/preferences.
//
// Note that lockPref is allowed in these preferences files if you
// don't want users to be able to override some preferences.

lockPref("extensions.update.enabled", true);

// Use LANG environment variable to choose locale
lockPref("intl.locale.matchOS", true);

// Disable default browser checking.
lockPref("browser.shell.checkDefaultBrowser", false);

// ========= LTSP SPECIFIC HACKS ========

// Disable "safe browsing" feature that hogs CPU, HDD, etc. etc. in LTSP
lockPref("browser.safebrowsing.enabled", false);
lockPref("browser.safebrowsing.malware.enabled", false);

// Disable annoying location-bar suggestion "feature" that is sludgy with thin-clients
lockPref("browser.urlbar.maxRichResults", 0);

// Disable offline/disk caching of web pages
lockPref("browser.cache.offline.enable", false);
lockPref("browser.cache.disk.enable", false);
lockPref("browser.cache.memory.enable", false);

// ========= PROXY HACKS ========= didn't use these. somehow tjener gets to be proxy automatically I think.

//lockPref("network.proxy.type", 1);
//lockPref("network.proxy.share_proxy_settings", true);
//lockPref("network.proxy.http", "192.168.1.254");
//lockPref("network.proxy.http_port", 800);
//lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.1.0/24");

// ========= MISC HACKS ==========

lockPref("browser.startup.homepage", "http://www.example.co.uk/");
lockPref("app.update.enabled", false);
I understand that, on websites with certain size of image, that the thin client xorg starts to take a ridiculous amount of memory, resulting xorg dieing and the thin client returning to the login page. The following may help:

Code:
$ sudo echo "MOZ_DISABLE_IMAGE_OPTIMIZE=1" >> /etc/profile
Posted in skolelinux
Views 1684 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration