Setting Global Defaults in Firefox on LSTP

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,,”);

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(“”, false);
//Setup Home…
pref(“browser.startup.homepage”, “http://“);
pref(“browser.startup.homepage_reset”, “http://”);

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(“”, false);


About Craig Szymanski

Systems Administrator Photography Enthusiast
This entry was posted in Linux, LTSP - Linux Terminal Server Project, Ubuntu and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s