[K12OSN] how to hardcode proxy settings in firefox(fixed)

Barry R Cisna brcisna at frontiernet.net
Sun Mar 6 07:21:00 UTC 2005


    Hi LIST,

    I've come up with an easy fix for the Firefox proxy settings globally/(for all users),,
    I'll explain in steps,,how to hand edit the >ONE< file that is all that needs to be EASILY edited.
    the ONE file you are looking to edit is  all.js
    in K12LTSP 4.2.0 it is located at    /usr/lib/firefox-1.0/greprefs/all.js
    in K12LTSP 4.1.x it is located at    /usr/lib/mozilla-1.7.3/
    for older K12LTSP versions do a terminal>locate all.js   and go to it ,there, to gedit it.

    1. go to the all.js and right click, and select open with text editor (gedit)
    2. scroll about three forths of the  way down in this file and you'll need to edit the lines,starting at:
        pref("network.proxy.type",          0)
    3. change the 0(zero) in the above line to a 1(one)
    4. edit the next ten lines  to correlate to your proxy server numbers.
    5. put your proxyserver IP address between the ""quotes in the the following lines
    6. put your port number were the following 0(zeros) are.
    7. save changes to your newly edited all.js file by clicking the SAVE in gedit.
    8. done.
    9. test by logging in as user joe schmoe and you should see the proxy settings alrady entered in the "Connection Settings", in the firefox /preferences. 
    10. ( You should have edited a total of 11 lines in all.js if everything was done right.)
    11. if you have mulitple K12LTSP severs that point to this same proxytserver,an easy way to replicate this ,after you have your editing done right is:
    12. from the current server you are on, do a terminal,> then,
           # rsync -avz /usr/lib/firefox-1.0/greprefs/all.js otherserveripaddress:/usr/lib/firefox-1.0/greprefs/all.js
        this will sync the edited all.js file to your other servers with the values you want in all of them
    13. Walla!

    BTW: this does not make these settings (locked), to were users can delete the settings,if they can find them!:(.

    Hope this helps some poor sap ,like me!

    Take it easy.

    Barry CIsna 
RR1 Box 213
Gladstone, IL 61437

brcisna at frontiernet.net
        
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20050306/6d7eb3a5/attachment.htm>


More information about the K12OSN mailing list