Tag Archives: Firefox

Thunderbird and Firefox 10 in CentOS and RHEL

CentOS 6’s default repository still only has Firefox/Thunderbird version 3.1, and a lot of newer and greater versions has been released since then.

To begin with, make sure you have the older version of Firefox/Thunderbird installed. This is necessary, as we are going to use their launch scripts as a template to create the launch scripts for the newer version.

To shorten things up, I will refer to Thunderbird as TB, and Firefox as FF. For the most part, I will refer to TB instead of both TB and FF. All you have to do is change where I write ‘thunderbird’ to ‘firefox’ and it will most likely work. To begin with, you want to download the latest version of Thunderbird or Firefox.

  • 32 bit TB:
    wget 'http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/10.0-real/linux-i686/en-US/thunderbird-10.0.tar.bz2'
  • 64 bit TB:
    wget 'http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/10.0-real/linux-x86_64/en-US/thunderbird-10.0.tar.bz2'
  • 32 bit FF:
    wget 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/10.0/linux-i686/en-US/firefox-10.0.tar.bz2'
  • 64 bit FF:
    wget 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/10.0/linux-i686/en-US/firefox-10.0.tar.bz2'

Untar and unzip the file you just downloaded (as said before, name may vary with the product you are installing). Afterwards, delete the tar file, which is no longer necessary.

tar xf thunderbird-10.0.tar.bz2
rm -rf thunderbird-10.0.tar.bz2

The simplest way is to delete the current TB/FF install, and move the newly downloaded files to the old directory. This command will vary for 32 and 64 bit systems. IMPORTANT: For Firefox, change the number 3.1 to 3.6 for both architectures. As for the commands, for 32 bit:

rm -rf /usr/lib/thunderbird-3.1/*
mv thunderbird/* /usr/lib/thunderbird-3.1/

For 64 bit systems:

rm -rf /usr/lib64/thunderbird-3.1/*
mv thunderbird/* /usr/lib64/thunderbird-3.1/

Congratulations! You are more or less done. Now, you may want to get rid of the empty FF/TB folder by running the command:

rm -rf thunderbird

That’s pretty much all. Running command ‘thunderbird’ or going to ‘Applications -> Internet -> Thunderbird Email’ will launch the newly installed version!

Beyond TB/FF 10, the ‘automatic upgrade’ feature should kick in. As you can see in the two screenshots above, TB and FF will automatically look for new versions, and will automatically upgrade when they exist. This way, you can run much newer versions than those found in the CentOS/RHEL repo.

 

Using SOCKS Proxy in Firefox

Firefox can be configured to use various different types of proxies. To configure Firefox to use a SOCKS proxy, open the Firefox Preferences/Settings window. In Mac OS X, go to Firefox -> Preferences. In the Windows version of Firefox, go to Tools -> Options.

Go under the Advanced tab, and under the Network tab. From there, click on Settings.

Choose Manual proxy configuration. Leave everything empty except the SOCKS Host and Port. The SOCKS host and port should be the respective host and port.

Installing Firefox 7 on CentOS 5 and 6 and RHEL

Update: See newer post for instructions on installing Firefox/Thunderbird 10 on CentOS and RHEL.

As of writing, the latest version of Firefox for CentOS is 3.6.22, and the Mozilla team released version 7 of the Firefox browser earlier this week. Obviously, the CentOS repository is slightly behind in keeping Firefox updated. However, if you wish to upgrade to Firefox 7, the process is quite simple. This tutorial has been tested on CentOS 5 and 6, under both 32 bit and 64 bit.

Update: This has also been tested successfully on 64bit RHEL 6.

The installation process varies slightly based on whether you are using 32 bit or 64 bit.

Download Firefox

32 bit:

wget 'http://3347-mozilla.voxcdn.com/pub/mozilla.org/firefox/releases/latest/linux-i686/en-US/firefox-7.0.1.tar.bz2'

64 bit:

wget 'http://3347-mozilla.voxcdn.com/pub/mozilla.org/firefox/releases/latest/linux-x86_64/en-US/firefox-7.0.1.tar.bz2'

Unzip Firefox

tar xf firefox-7.0.1.tar.bz2

Move Firefox to the proper directory

32 bit:

sudo mv firefox /usr/lib/firefox-7.0

64 bit:

sudo mv firefox /usr/lib64/firefox-7.0

Modify the Firefox command to use the new version of Firefox

sudo perl -pi -e 's/3.6/7.0/g' /usr/bin/firefox

Clean up unnecessary files

rm -rf firefox-7.0.1.tar.bz2