Setting Global Defaults in Firefox on LSTP

By crmanski

First to set the Proxy settings we need to edit the file called all.js in the greprefs folder and find the line that starts with proxy.type. Here is how to do this…

1. When logged onto the machine as an admin user open the Terminal and type..
sudo gedit /usr/share/firefox/greprefs/all.js

This will open the all.js in gedit text editor, search for the string “proxy.type” (Press CTRL+F) and change it to look something like this. Just replace your relevant information…

pref(“network.proxy.type”, 1);
pref(“network.proxy.ftp”, “YourIPAddressToProxy”);
pref(“network.proxy.ftp_port”, 8080);
pref(“network.proxy.gopher”, “YourIPAddressToProxy”);
pref(“network.proxy.gopher_port”, 8080);
pref(“network.proxy.http”, “YourIPAddressToProxy”);
pref(“network.proxy.http_port”, 0);
pref(“network.proxy.ssl”, “YourIPAddressToProxy”);
pref(“network.proxy.ssl_port”, 0);
pref(“network.proxy.socks”, “YourIPAddressToSocks”);
pref(“network.proxy.socks_port”, 0);
pref(“network.proxy.socks_version”, 5);
pref(“network.proxy.socks_remote_dns”, false);
pref(“network.proxy.no_proxies_on”, “localhost, 127.0.0.1, .yourlocal.domains”);

Now to set the Home Page and other preferences.

To do this we need to edit this file like above in the terminal….

sudo gedit /etc/firefox/pref/firefox.js

// disable search suggestions by default. This prevents queries going to the
// internet for every letter that is typed into the search box.
pref(“browser.search.suggest.enabled”, false);
//Setup Home…
pref(“browser.startup.homepage”, “http://szone.berlinwall.org”);
pref(“browser.startup.homepage_reset”, “http://szone.berlinwall.org/welcome”);

Just change the URLs in there to reflect your desired default homepage for any account on the machine.

Another thing that I like to disable by default is the search suggestion feature. Open up this file and search for “suggest” and change the true to false…

// Disable search suggestions by default
pref(“browser.search.suggest.enabled”, false);

Technology: