Firefox caching to NFS mounted home directories killing disk IO on file server
That should work, we have root:root 644 and that works. *Have you tried commenting out all the _javascript_ in /usr/lib/firefox-7.0.1/firefox.cfg just to ensure it isn't a syntax error in the file itself causing it to complain?
On Wed, Nov 16, 2011 at 9:22 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: Steve, Thanks for the reply. I have user and group setup with nobody:nogroup and 755 permissions. Is this wrong? How do you have your permissions setup? Currently we don't have it setup as a local app. Thanks for your help! Jeff On 11/16/2011 11:31 AM, Rippl, Steve wrote: On Wed, Nov 16, 2011 at 8:10 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: I've been trying for a few days now to get Firefox to cache pages to /tmp locally for all users. I updated to Firefox 7, then edited the firefox.js in /etc/firefox/pref to include these lines - pref("general.config.obscure_value", 0); * (supposed to tell FF not to worry about byteshift) pref("general.config.filename", "firefox.cfg"); I then took a customized firefox.cfg file and placed it in /usr/lib/firefox-7.0.1. This is what we do (to lock down network settings and the like) and it works. *The only problems I can think of are permissions issues on */usr/lib/firefox-7.0.1/firefox.cfg (can the user read it?) and whether you have an error in the _javascript_ in the .cfg file? *Then again this is all run on the server for us (no local apps), are you running Firefox as a local app? For what it's worth, we found that many apps and even the Gnome desktop itself didn't work that well with nfs mounted home folders for the students. *We've since moved to having real local folder on each of the LTSP server (we have multiple load balanced) and we use csync (http://www.csync.org/) to*synchronize*those with the central file server on login/logout and every 10 minutes they're logged in. *Performance went up dramatically and the load on the file server is almost nothing. -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
That does look fine. *So the one difference we have is that in /etc/firefox/prefs we put the 2 lines*
pref("general.config.obscure_value", 0);pref("general.config.filename", "firefox.cfg"); in a separate file we call local-settings.js, rather than within the firefox.js. *I'm assuming everything in that folder gets read and this shouldn't make any difference, but it's the only difference I can see at this point. On Wed, Nov 16, 2011 at 10:09 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: I don't believe it to be a syntax issue, but here's the file before running the byteshift on it. On 11/16/2011 12:43 PM, Rippl, Steve wrote: That should work, we have root:root 644 and that works. *Have you tried commenting out all the _javascript_ in /usr/lib/firefox-7.0.1/firefox.cfg just to ensure it isn't a syntax error in the file itself causing it to complain? On Wed, Nov 16, 2011 at 9:22 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: Steve, Thanks for the reply. I have user and group setup with nobody:nogroup and 755 permissions. Is this wrong? How do you have your permissions setup? Currently we don't have it setup as a local app. Thanks for your help! Jeff On 11/16/2011 11:31 AM, Rippl, Steve wrote: On Wed, Nov 16, 2011 at 8:10 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: I've been trying for a few days now to get Firefox to cache pages to /tmp locally for all users. I updated to Firefox 7, then edited the firefox.js in /etc/firefox/pref to include these lines - pref("general.config.obscure_value", 0); * (supposed to tell FF not to worry about byteshift) pref("general.config.filename", "firefox.cfg"); I then took a customized firefox.cfg file and placed it in /usr/lib/firefox-7.0.1. This is what we do (to lock down network settings and the like) and it works. *The only problems I can think of are permissions issues on */usr/lib/firefox-7.0.1/firefox.cfg (can the user read it?) and whether you have an error in the _javascript_ in the .cfg file? *Then again this is all run on the server for us (no local apps), are you running Firefox as a local app? For what it's worth, we found that many apps and even the Gnome desktop itself didn't work that well with nfs mounted home folders for the students. *We've since moved to having real local folder on each of the LTSP server (we have multiple load balanced) and we use csync (http://www.csync.org/) to*synchronize*those with the central file server on login/logout and every 10 minutes they're logged in. *Performance went up dramatically and the load on the file server is almost nothing. -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Okay, I added the local-settings.js. Firefox launches correctly, but it still isn't pulling the correct settings. It is pulling user preferences from /home/username/.mozilla/firefox/user.default/user.prefs. Is there a way to tell it to override user preferences and only use the config file specified?
-----Original Message----- From: "Donaldson Jeffrey" <jdonaldson@ncs.k12.de.us> Sent 11/16/2011 3:49:52 PM To: "Rippl, Steve" <rippls@woodlandschools.org> Cc: "Edubuntu Users Group" <edubuntu-users@lists.ubuntu.com> Subject: Re: Firefox caching to NFS mounted home directories killing disk IO on file server Thanks Steve. I'll try adding a local-settings.js with the two general configs and seeing if that helps. Just out of curiosity, if one of your students goes to about:config or about:cache, do they see the settings? On 11/16/2011 01:22 PM, Rippl, Steve wrote: That does look fine. *So the one difference we have is that in /etc/firefox/prefs we put the 2 lines* pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg"); in a separate file we call local-settings.js, rather than within the firefox.js. *I'm assuming everything in that folder gets read and this shouldn't make any difference, but it's the only difference I can see at this point. On Wed, Nov 16, 2011 at 10:09 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: I don't believe it to be a syntax issue, but here's the file before running the byteshift on it. On 11/16/2011 12:43 PM, Rippl, Steve wrote: That should work, we have root:root 644 and that works. *Have you tried commenting out all the _javascript_ in /usr/lib/firefox-7.0.1/firefox.cfg just to ensure it isn't a syntax error in the file itself causing it to complain? On Wed, Nov 16, 2011 at 9:22 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: Steve, Thanks for the reply. I have user and group setup with nobody:nogroup and 755 permissions. Is this wrong? How do you have your permissions setup? Currently we don't have it setup as a local app. Thanks for your help! Jeff On 11/16/2011 11:31 AM, Rippl, Steve wrote: On Wed, Nov 16, 2011 at 8:10 AM, Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: I've been trying for a few days now to get Firefox to cache pages to /tmp locally for all users. I updated to Firefox 7, then edited the firefox.js in /etc/firefox/pref to include these lines - pref("general.config.obscure_value", 0); * (supposed to tell FF not to worry about byteshift) pref("general.config.filename", "firefox.cfg"); I then took a customized firefox.cfg file and placed it in /usr/lib/firefox-7.0.1. This is what we do (to lock down network settings and the like) and it works. *The only problems I can think of are permissions issues on */usr/lib/firefox-7.0.1/firefox.cfg (can the user read it?) and whether you have an error in the _javascript_ in the .cfg file? *Then again this is all run on the server for us (no local apps), are you running Firefox as a local app? For what it's worth, we found that many apps and even the Gnome desktop itself didn't work that well with nfs mounted home folders for the students. *We've since moved to having real local folder on each of the LTSP server (we have multiple load balanced) and we use csync (http://www.csync.org/) to*synchronize*those with the central file server on login/logout and every 10 minutes they're logged in. *Performance went up dramatically and the load on the file server is almost nothing. -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730 -- Regards, Jeff Donaldson Data Services Manager Newark Charter School (302) 369-2001 ext:425 jdonaldson@ncs.k12.de.us -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Hi,
On Wed, 16 Nov 2011 21:34:55 +0000 Jeff Donaldson <jdonaldson@ncs.k12.de.us> wrote: > Okay, I added the local-settings.js. Firefox launches correctly, but > it still isn't pulling the correct settings. It is pulling user > preferences > from /home/username/.mozilla/firefox/user.default/user.prefs. Is > there a way to tell it to override user preferences and only use the > config file specified? For LockPref in Firefox 7, you need extract ,in «firefox-file», the omni.jar (jar -x -f omni.jar). In the «grepref.js» you can add the line: pref("general.config.filename", "firefox.cfg"); And for your information, you can add just «//» before the line : //pref("general.config.obscure_value".... For update the omni.jar use: jar -f omni.jar -u grepref.js And add your firefox.cfg in the firefox's folder. Bye Manu -- Emmanuel LE NORMAND Université Pierre Mendès France, Grenoble Direction des Systèmes d'Information Tel: 04768-27880 Adhérent APRIL http://www.april.org/ S'il vous plaît, évitez de m'envoyer des pièces jointes dans un format propriétaire Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Hello,
On Thu, 17 Nov 2011 07:53:14 -0500 Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: > Manu, > > Thank you for the reply. I extracted the omni.jar with jar -x -f > omni.jar in the /usr/lib/firefox-7.0.1 directory. This created the > grepref.js file. I edited that file to comment out the config.obscure > value with // and then added at the end of the file the > pref("general.config.filename", "firefox.cfg"); then wrote the > changes. Next, I ran jar -f omni.jar -u grepref.js. Finally, I > deleted the .mozilla file from a student's home directory and > launched firefox against their account. Firefox came up okay > (although no homepage) but I checked about:cache and about:config and > it still isn't pulling the locked prefs from the firefox.cfg file > in /usr/lib/firefox-7.0.1/. Not sure what else to try. Any help is > appreciated. > Maybe, you have a problem with the firefox.cfg ? I use the lockPref in Firefox since long time and without problem. Look this screenshots (verrouillé (French) => Locked ): http://webu2.upmf-grenoble.fr/manu/about-config.png http://webu2.upmf-grenoble.fr/manu/lock-cfg.png I lock the proxy's setting and homepage. Bye Manu -- Emmanuel LE NORMAND Université Pierre Mendès France, Grenoble Direction des Systèmes d'Information Tel: 04768-27880 Adhérent APRIL http://www.april.org/ S'il vous plaît, évitez de m'envoyer des pièces jointes dans un format propriétaire Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Jeffrey,
On Wed, 16 Nov 2011 11:10:40 -0500 Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: > Good Morning, ------------------ > I then took a customized firefox.cfg file and placed it in > /usr/lib/firefox-7.0.1. If I launch firefox, I get an error that it > couldn't read the configuration file. So I downloaded the mozilla 13 > byteshift perl script and ran it on my cfg file. Then Firefox > launches successfully, only problem is that it doesn't seem to be > pulling or locking any of the preferences I set in the file (most > importantly, browser.cache.parent_directory). Can anyone tell me what > I'm doing wrong? Or is there a better way to set Firefox to cache > locally for all users? Why don't you desactivate this firefox's option "browser.cache.disk.enable" ? Cached web pages with thin client it isnt interresting, no ? And I googled "browser.cache.parent_directory", and the good option is "browser.cache.disk.parent_directory". Best regard Manu PS: Sorry for my bad English... -- Emmanuel LE NORMAND Université Pierre Mendès France, Grenoble Direction des Systèmes d'Information Tel: 04768-27880 Adhérent APRIL http://www.april.org/ S'il vous plaît, évitez de m'envoyer des pièces jointes dans un format propriétaire Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Hi all,
I thought I'd resurect this old thread and ask is the current (as of May 2012) way to force global firefox preferences to create two files, one /etc/firefox/pref/firefox.js and one in the /usr/lib/firefox-version/firefox.cfg ? That seems like a huge step backward from the days when you could control behave from a single firefox.js file located in /etc/firefox/prefs/. I assume for fat clients/local apps it would be /opt/ltsp/i386/etc/firefox/prefs/firefox.js and /opt/ltsp/i386/usr/lib/firefox-version/firefox.cfg ? Thanks for any light you can shed. John Am I misunderstanding how this is currently done. And does anybody understand why this keeps changing? On Fri, Nov 18, 2011 at 4:31 AM, Emmanuel Le Normand <Emmanuel.Le-Normand@upmf-grenoble.fr> wrote: Jeffrey, On Wed, 16 Nov 2011 11:10:40 -0500 Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: > Good Morning, ------------------ > I then took a customized firefox.cfg file and placed it in > /usr/lib/firefox-7.0.1. If I launch firefox, I get an error that it > couldn't read the configuration file. So I downloaded the mozilla 13 > byteshift perl script and ran it on my cfg file. Then Firefox > launches successfully, only problem is that it doesn't seem to be > pulling or locking any of the preferences I set in the file (most > importantly, browser.cache.parent_directory). Can anyone tell me what > I'm doing wrong? Or is there a better way to set Firefox to cache > locally for all users? Why don't you desactivate this firefox's option "browser.cache.disk.enable" ? Cached web pages with thin client it isnt interresting, no ? And I googled "browser.cache.parent_directory", and the good option is "browser.cache.disk.parent_directory". Best regard Manu PS: Sorry for my bad English... -- Emmanuel LE NORMAND Université Pierre Mendès France, Grenoble Direction des Systèmes d'Information Tel: 04768-27880 Adhérent APRIL http://www.april.org/ S'il vous plaît, évitez de m'envoyer des pièces jointes dans un format propriétaire Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
Firefox caching to NFS mounted home directories killing disk IO on file server
Hi all,
I'll answer part of my question by saying putting a firefox.js file in /usr/lib/firefox-12/defaults/pref results in that file being honored by thin clients, but not if firefox is being run as a local app. Since I am running local apps, I guess my question is reduced to where/how does firefox.js have to be to work with local apps under Ubuntu Lucid? Any current howto's or pointers would be appreciated! John On Tue, May 1, 2012 at 3:20 PM, john <lists.john@gmail.com> wrote: Hi all, I thought I'd resurect this old thread and ask is the current (as of May 2012) way to force global firefox preferences to create two files, one /etc/firefox/pref/firefox.js and one in the /usr/lib/firefox-version/firefox.cfg ? That seems like a huge step backward from the days when you could control behave from a single firefox.js file located in /etc/firefox/prefs/. I assume for fat clients/local apps it would be /opt/ltsp/i386/etc/firefox/prefs/firefox.js and /opt/ltsp/i386/usr/lib/firefox-version/firefox.cfg ? Thanks for any light you can shed. John Am I misunderstanding how this is currently done. And does anybody understand why this keeps changing? On Fri, Nov 18, 2011 at 4:31 AM, Emmanuel Le Normand <Emmanuel.Le-Normand@upmf-grenoble.fr> wrote: Jeffrey, On Wed, 16 Nov 2011 11:10:40 -0500 Donaldson Jeffrey <jdonaldson@ncs.k12.de.us> wrote: > Good Morning, ------------------ > I then took a customized firefox.cfg file and placed it in > /usr/lib/firefox-7.0.1. If I launch firefox, I get an error that it > couldn't read the configuration file. So I downloaded the mozilla 13 > byteshift perl script and ran it on my cfg file. Then Firefox > launches successfully, only problem is that it doesn't seem to be > pulling or locking any of the preferences I set in the file (most > importantly, browser.cache.parent_directory). Can anyone tell me what > I'm doing wrong? Or is there a better way to set Firefox to cache > locally for all users? Why don't you desactivate this firefox's option "browser.cache.disk.enable" ? Cached web pages with thin client it isnt interresting, no ? And I googled "browser.cache.parent_directory", and the good option is "browser.cache.disk.parent_directory". Best regard Manu PS: Sorry for my bad English... -- Emmanuel LE NORMAND Université Pierre Mendès France, Grenoble Direction des Systèmes d'Information Tel: 04768-27880 Adhérent APRIL http://www.april.org/ S'il vous plaît, évitez de m'envoyer des pièces jointes dans un format propriétaire Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users -- edubuntu-users mailing list edubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users |
| All times are GMT. The time now is 05:35 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.