Web Browsers and Plugins on Linux

# Filed on Oct 18, 2005 by Anthony DiSante reply

Running Mozilla or Firefox with plugins (flash, mplayer, gxine, helix, realplayer, etc) on Linux results in frequent browser crashes.  I’m not sure if it’s the plugins that are buggy, or the browser -- though I suspect it’s the browser since it’s not limited to any single plugin -- but the fact that the plugins aren’t forked into a separate process in the first place definitely is a browser bug.  There are always going to be buggy plugins that crash, so running plugins within the core browser process is obviously a terrible idea.  From filing bug reports in Mozilla’s bugzilla about this problem, I’ve read that correcting this massive and fundamental design flaw will require massive code rewriting which isn’t going to happen anytime soon.  In the meantime we need a way to browse the web stably on Linux.

My solution is to install both Mozilla and Firefox on my system.  I run Mozilla with no plugins at all, and use it as my normal browser.  In Firefox I do install plugins, and I only run Firefox when I need to access a site’s plugin-based content.  As a result, Mozilla almost never crashes, and Firefox crashes daily, but that’s OK because I don’t do anything important in Firefox: that’s the whole point.  (Of course you can reverse the browsers; I like Mozilla better so I use it as my main browser.)

So we need to determine where each browser is loading its plugins from.  First of all, go to about:config (in both browsers) and enable plugin.expose_full_path so that the about:plugins page will show the full path to the plugins on your system.  That way you’ll know exactly where to go to delete/move the plugins from.

As of October 2005 on my Gentoo system, this is where plugins are located:

/opt/netscape/plugins/ :

plugins are stored here, but neither Moz nor FF uses this folder directly

/usr/lib/nsbrowser/plugins/ :

both Moz and FF read plugins from here (it doesn’t actually contain the plugins though, just links into the /opt/netscape/plugins/ directory)

/usr/lib/mozilla/plugins/ ,
/opt/mozilla/plugins/ :

only Moz uses these

/usr/lib/mozilla-firefox/plugins/ ,
/opt/firefox/plugins/ :

only FF uses these

So, I put my plugins into one of the FF-only directories.  Then I keep all of the following directories empty, so that Mozilla has no plugins:

/usr/lib/nsbrowser/plugins/
/usr/lib/mozilla/plugins/
/opt/mozilla/plugins/

Finally, I also delete the libnullplugin.so file from Mozilla’s directories: that way you don’t get the annoying "click here to install this plugin" dialog every time you visit a page with plugin content in Mozilla.

Reply to this message here:

Your name
Email (why?)
Website (if you have one)
Subject
search posts:

home | archives ]

Client Quotes

I just installed the demo of your product and got it up and running in no time.  I searched high and low for a decent login script and thank God I found yours.
– Adrian F.
I spent ages trying to find a way of making my own log in page for my website - if you're thinking of doing that forget it - don't waste your time!  UserBase is a 1st class product at a very reasonable price.  The software works faultlessly and can be adapted to any situation.  The service that I have received from Encodable is terrific!  I am very very impressed.  Nothing was too much trouble and I am most grateful to Anthony DiSante in particular for all his help and patience.
– Paul S.
Worked like a charm... man, this piece of software is a dream and I really appreciate all your customer service help getting this taken care of.
– Kyle M.
I just want to say you guys really stand alone in that you have a quality product and you provide genuine customer service.  It's sad but those qualities are seldom found separately, much less together.  Thanks again for your time and help.
– Alex S.
Also, I wanted to tell you that I was very skeptical about buying this script.  I've spent a lot of time and money over the past 3 months trying to find a solution that works, but I ended up having problems with so many of the scripts I tried that I was almost to the point of giving up.  But then I came across your script, and it actually does what it's supposed to.  An absolute wow.  A very impressive and powerful script indeed!  Many, many thanks!
– Mike E.
I can't thank you enough, I was up against a deadline that required me to get this up and running in 48 hours and you have probably the best customer service I've ever seen.
– Dan T.
Your scripts/software are the greatest, I mean I really love how customizable they are, how intuitive they are, and so on.  Thanks again, I love this stuff!
– Tucker O.
We searched for a long time for an application to password protect directories and allow file uploads.  Userbase & Filechucker are far superior to anything out there.  Simple yet powerful programming, extremely flexible in configuration, and great customer service.  Thanks for a superb product.
– Kat G.
Thank you VERY much for all of your help.  You've really impressed me.  We have support agreements for other software that costs thousands of dollars / year (just for the support), and most of them aren't as helpful as you have been.
– Keith Y.
There are a lot of these scripts out there, but I think they all pale in comparison to yours.
– Peter W.
The software has some great features, is well presented, runs where others are problematic and will make a good impression on our clients.  We look forward to reaping its benefits!
– Alex H.