September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  
99

Categories

Archives

[one-liner]: Firefox Already Running Dialog Box on Fedora/CentOS/RHEL

Problem

Sometimes you’ll get a dialog box that pops up saying that firefox is already running when you know in fact that it isn’t.

Firefox Already Running Dialog Box

Firefox Already Running Dialog Box

Solution

This is typically caused by the existence of 2 files in your ~/.mozilla/firefox/<profile> directory. For example in my case:

1
2
3
% ls -la ~/.mozilla/firefox/rhwevaqa.default/|egrep "lock |lock$"
lrwxrwxrwx  1 tstacct users       16 2010-06-22 18:49 lock -> 127.0.1.1:+11131
-rw-r--r--  1 tstacct users        0 2010-06-22 18:49 .parentlock

Just delete these 2 files and firefox should start right up.

References

For more info about Firefox startup issues check out this mozilla FAQ

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

[one-liner]: Getting Rid of Google's Left Sidebar (2nd Attempt)

Problem

In a previous [one-liner] post I mentioned a quick way to get rid of Google’s new Left Sidebar. Here’s a screenshot from that post of the Google sidebar.

Google Left Sidebar

Well as of May 2010 it appears that the Google sidebar is back, and my hack of just deleting the google.com cookies no longer seems to permanently get rid of the sidebar. So now it’s time to bring out a bigger stick … greasemonkey.

Solution

If you haven’t heard of greasemonkey, it’s a plugin to Firefox that allows you to control elements of a page that you are viewing, essentially overriding the design of a given page. You can do things like get rid of sidebars, add your own buttons, etc. I’m not going to get into everything it can do, we’re only interested in getting rid of Google’s sidebar, and with greasemonkey installed it becomes a simple task.

First click this link: greasemonkey plugin to Firefox, and click on the “Add to Firefox” button on that page. Restart Firefox to activate the greasemonkey plugin. Next you’ll want to make use of a greasemonkey “script” that is freely available over on userscripts.org.

NOTE: The userscripts.org website allows users to share useful greasemonkey scripts.

The greasemonkey script you’re looking for is called Toggle Google SideBar. Each “script” on the userscripts.org website has a big install button on their respective pages, so just click that button to install it. Once you’ve done that you’re done.

Now Google search results pages will look like this with the sidebar visible:

Google sidebar open

…and like this when the sidebar is hidden:

Google sidebar closed

Notice the big [+]? This allows you to toggle the Google sidebar if you want to see it.

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

Setting up Webex under Fedora 10

These are some notes on how I was able to get Webex to work on my Fedora 10 laptop. Webex is a java application so to start we need to install java. I usually opt to use the real thing because I’ve never been able to get Ice Tea to successfully work with the webex app.

Installing Java

So to start I download java from java.com. Specifically I downloaded version 1.6u14. This will offer up a file, jre-6u14-linux-i586.rpm.bin. After saving that to disk you need to convert this file to it’s native RPM format. This can be accomplished with these commands.

1
2
3
4
5
# unpack RPM file
sh jre-6u14-linux-i586.rpm.bin
 
# install RPM
rpm -Uvh jre-6u14-linux-i586.rpm

Firefox Java Plugin

Once we have the java JRE installed we need to get the java plugin to be picked up by firefox. This can be accomplished by creating a unix link in firefox’s plugin directory, /usr/lib/mozilla/plugins. Additionally I also usually create a link in my home directory, ~/.mozilla/plugin. I occasionally run into problems where firefox seems to get confused about which plugins are available when I only install them to the firefox’s main system directory, so I’ve just gotten in the habit of installing them in both directories.

1
2
3
4
5
6
7
# install plugin to firefox's main plugins dir
cd /usr/lib/mozilla/plugins
ln -s /usr/java/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so
 
# install plugin to user's firefox plugins dir
cd ~/.mozilla/plugins
ln -s /usr/java/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so

At this point do a quick restart of firefox and you should see the plugin under the pull-down, Tools -> Addons, under the plugins tab.

java plugin added to firefox

java plugin added to firefox


…. Continue reading → Setting up Webex under Fedora 10 »»

Firefox Plugins & Addons I use

This report was generated via the “My Config” option available from the MR Tech’s Toolkit addon.



Generated: Wed May 06 2009 23:29:02 GMT-0400 (EDT)

User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10

Build ID: 2009042315

Enabled Extensions: [21]
Disabled Extensions: [8]
Total Extensions: 29



Installed Themes: [1]
Installed Plugins: (9)
  • Default Plugin
  • DivX® Web Player
  • IcedTea Java Web Browser Plugin
  • Picasa
  • QuickTime Plug-in 7.2.0
  • Shockwave Flash
  • Totem Web Browser Plugin 2.24.3
  • VLC Multimedia Plugin (compatible Totem 2.24.3)
  • Windows Media Player Plug-in 10 (compatible; Totem)