This page is specific to Ubuntu versions 8.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.

This page is dedicated to installing Adblock Plus into Firefox for -all- users of a system. This is incredibly useful for environments such as schools where users might experience 'roaming mouse' syndrome... you know, banners like "FREE iPOD!!!1". This installation will install ABP for every user of an LTSP system or shared server so that everyone uses the same patterns file and it is fairly transparent to the user.

This page seems outdated. There are some better ways to install a extension like ABP for all users. You can either install the extension using the package installer:

adblock-plus

in universe, or you can use

sudo firefox -install-global-extension "/path/to/file.xpi"

Procedure

First off, you're going to want to create a specific directories for Firefox to hold ABP:

sudo mkdir /usr/lib/firefox-addons/extensions/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

cd /usr/lib/firefox-addons/extensions/"{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}"

Now we're going to download the addon directly from their website. NOTE: The below WGet link doesn't need updating since The Mozilla Addons redirects WGet to the newest (mostly differently named) file (after each release).

sudo wget --no-check-certificate https://addons.mozilla.org/downloads/latest/1865/adblock_plus-1.1.xpi

Now we unzip the add-on:

sudo unzip adblock_plus-1.1-fx+sm+tb.xpi

Now you want to start Firefox up and subscribe to the lists. Even if the users visit sites under every single language, subscribing to everything will cause untweakable troubles. Subscribing to every English-oriented list (and the Malware Domains) over at http://adblockplus.org/en/subscriptions gives suffient set of patterns to block almost every ad (on ratio 2499:2500). The unblocked can be manually added.

Once you have subscribed, close Firefox and let's make some directories and move the patterns file so everyone can access it. NOTE: Modify the paths to suit your setup.

sudo mkdir -p /home/share/firefox/adblockplus

sudo mv ~/.mozilla/firefox/<YourProfileDir>/adblockplus/patterns.ini /home/share/firefox/adblockplus/

sudo chmod 644 /home/share/firefox/adblockplus/patterns.ini

Finally, we're going to want to edit the global ABP configuration so it points to the global patterns.ini file, and if you want, to make the add-on fairly transparent to the user (out of sight, out of mind). As root, edit:

/usr/lib/firefox-addons/extensions/"{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}"/defaults/preferences/adblockplus.js

adblockplus.js:

  • extensions.adblockplus.showintoolbar (set to false)

  • extensions.adblockplus.patternsfile (set to /home/share/firefox/adblockplus/patterns.ini)

That should about do it! Enjoy an ad-less web browsing experience for all! Smile :)

http://adblockplus.org/en/faq_install#global, http://adblockplus.org/en/subscriptions


CategoryLtsp

UbuntuLTSP/AdblockPlusGlobalInstall (last edited 2011-06-18 16:50:22 by rautamiekka)