[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Hardcoding proxy/user setting in mozilla for all users - no script needed



Wilson wrote:

Is there a way to hardcode the proxy setting to all users? Right now I have
to manually set the proxy setting (http://192.168.0.254:8080) on all the
user accounts by logging in. Also, what about cosmetic changes like setting
the theme to modern and enabling tab browsing? There has to be a better way
then hard coding it per user. Thanks!


Wilson




_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>


I have seen a couple posts about perl scripts and settings in /etc/skel etc.
but I believe there is a better way.
Filling out mozilla preferences in such a way that they cannot be altered by a user
(grayed out text boxes in the settings windows)


Check out http://www.alain.knaff.lu/~aknaff/howto/MozillaCustomization/cgi/byteshf.cgi for a detailed explanation.

Make a file in /tmp called locks.txt with the following contents (adjust to reflect your settings)

//BEGIN CE prefs

try {

lockPref("browser.startup.homepage", "http://www.google.ca";);
lockPref("browser.startup.homepage_override.mstone", "rv:1.7.3");
lockPref("intl.charsetmenu.browser.cache", "UTF-8, ISO-8859-1");
lockPref("network.cookie.prefsMigrated", true);
lockPref("prefs.converted-to-utf8", true);
lockPref("network.proxy.type", 1);
lockPref("network.proxy.http", "10.10.10.1");
lockPref("network.proxy.http_port", 8080);
lockPref("security.enable_tls", false);

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

When this is done go to the above mentioned web site and go to the Upload mozilla.txt section, upload the /tmp/locks.txt and hit the convert mozilla.txt to mozilla.cfg button.
(byteshift 13)


Note :
//BEGIN CE prefs
Needs to be the first line in this file, spelling and capitalization of lockPref is important !


After that save the mozilla.cfg file in the same dir as the current mozilla in our case /usr/lib/mozilla-1.7.3

Done

Have fun

Peter

--

Any technology distinguishable from
foodoo-magic is insufficiently advanced.


Peter Van den Wildenbergh


CriticalControl Solutions Inc.
Bow Valley Square II
Suite 2400
205 - 5th avenue SW
Calgary, AB T2P 2V7

T 403.705.7500
F 403.705.7555



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]