Upgrade Ubuntu Firefox to Version 3.6 – Reader Questions

[wp_ad_camp_1]

Erica from Canada asks:

“… I’m using Ubuntu 9.04… the “Check for Updates” in Firefox is grayed out and apt-get does not upgrade Firefox… I’m stuck at 3.0.18, how can I get upgraded?…”

This is an issue, I’ve encountered before. The newest versions of Firefox are not yet in the repositories, and the “Check for Updates” is disabled on purpose. I tried upgrading Firefox via PPA’s on a couple occasions, butthe updates failed and I ended up with broken packages! In my opinion, the following steps might serve as a safer way to upgrade.

In your existing Firefox version (3.0.18), install the following extension manager, named FEBE, in case something happens to your extentions, you’ll be able to reinstall them:

FEBE: https://addons.mozilla.org/en-US/firefox/addon/2109

Use FEBE to backup your extensions.

Also, just in case something happens to your saved passwords, you can back those up as well with an extension named “Password Exporter”: https://addons.mozilla.org/en-US/firefox/addon/2848

Backup up your passwords.

Finally, don’t forget to backup your bookmarks in case something goes wrong.

In a Terminal, run the command:

which firefox

You should see this answer displayed:

/usr/bin/firefox

This guide is based on the pathing above. If the steps below are not followed properly, then this will not work! ALWAYS make sure you have BACKUPS of data you do not want to lose, in case something in your system goes terribly wrong.

Now, let’s use the Terminal to move into Ubuntu’s temporary (working) directory:

cd /tmp

Download  Firefox 3.6 for Ubuntu 9.04 (Jaunty):
wget “http://download.mozilla.org/?product=firefox-3.6&os=linux&lang=en-US”

(The above is for the North American version, you can change that to meet your needs).

Extract the contents:
tar xvjf firefox-*.bz2

We are going to copy the new version of Firefox to a directory called “firefox-3.6″ (instead of “firefox”), this way we can  revert back to the original Firefox 3.0.18 is needed.
Continue reading →

Building a Web Developer / Designer PC Using Ubuntu Linux – Revisited

[wp_ad_camp_1]

Recently I posted “Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux” and received a few messages asking what other tools I use. To save me time with answering email messages that essentially contain the same information, and to help the maximum number of readers, I thought it would be a good follow up to that earlier post.

First off, there some other applications I use, namely:

xVidCap. This facilitates screen capturing video so that I can create tutorial videos. After which ffmpeg can be used to convert the captured video to flv format for web streaming.  If you’re interested, they have a couple instructional videos: Video 1 and Video 2. To install it, the command is:

sudo aptitude install xvidcap

Also, to be able to quickly find the differences between Continue reading →

Browser Problems – Creating a Linux Based Virtual Box – Part 1 of 2

[wp_ad_camp_1]

I had an interesting discussion yesterday with the owner of LaLa Media (lalamedia.ca). The conversation focused on the issues of developing web sites that are cross platform friendly. Invariably the problem dealing with browser bugs came up. In particular how IE6 appears to be especially buggy and how it tends to have problems with CSS/XHTML div positioning (among other things).

Side note: As I’ve mentioned before, the upkeep of this site is a financial burden (but I think this blog does provide value to the community), as such I often collaborate on web projects to help with the server fees etc., which lead to the discussion at hand.

One particularly vexing issue we discussed was how IE positions DIV elements (via CSS) compared to other browsers such as Firefox, Opera etc. A site structure that looked great in other browsers often presented design challenges when using IE. Of course many of the Firefox fan boys were quick to jump in and say “don’t design for IE”, I think that is somewhat unrealistic, even though I’d love :) to comply (I’m smiling here). A case in point, if the client uses IE, the finished site has to work properly in IE as well. ;) In terms of browser adoption, many of you might find this resource helpful: Browser Statistics. According to the W3schools.com statistics, in March of 2008, IE comprises 53.1% of web users and non-IE browsers are used by 41.6% of users. Hence the importance of cross browser compatibility.

A specific issue encountered, that motivated me to post Part 1 (the introduction and ground work) was that the designer uses a Windows 2000 platform and unfortunately he cannot install any IE browser greater that IE6 (the buggy one). One pertinent observation was the viewing of the site via browsershots.org. For those not familiar:

“…Browsershots makes screenshots of your web design in different browsers. It is a free open-source online service created by Johann C. Rocholl. When you submit your web address, it will be added to the job queue. A number of distributed computers will open your website in their browser. Then they will make screenshots and upload them to the BrowserShots central server… ” where you can see how your site looks on the large, growing number of browsers available. That is one tool I suggested he use to garner an understanding of how different browsers render (because Windows 2000 could not move beyond IE6).

As he (the designer) also uses Apple, I assumed that perhaps he could make use of Continue reading →

Do You Get the Firefox is Running Error?

[wp_ad_camp_1]

One more quick post for the Easter holiday (here in Canada). I’ve started getting that annoying

“Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”

error message again, and was looking for a quick fix (as I’d been logging into terminal each time to fix it without rebooting). To my surprise, the issue was way easier to fix than expected! All you’ll need to do is Continue reading →

Adobe Flash on Firefox 3 Beta

[wp_ad_camp_1]

Just a quick post here…

I installed the Firefox 3 Beta (Version 3.0b3 as of this post) on my Ubuntu Box and… damn… Flash is not working again!
http://www.mozilla.com/en-US/firefox/all-beta.html

It’s a quick(er) fix though (Firefox just needs the link to flash plugin):

sudo ln -s /usr/lib/firefox/plugins/flashplugin-alternative.so /usr/lib/firefox-3.0b3/plugins/flashplugin-alternative.so

** For those who did not install Flash in the first place, just do this to get it:

sudo apt-get install flashplugin-nonfree

Update: If you are having trouble with sound playing in one application (Rhythumbox for example) and flash in another (YouTube for example), but have no sound in the flash player, take a look at this fix: Playing Music & Not Getting Sound in Flash?

“…PulseAudio as your audio backend (which Hardy does by default), you need to have libflashsupport installed…“

Speed Up Your Internet Connection in Ubuntu Linux – Part 1

[wp_ad_camp_1]

After you’ve installed Ubuntu, you may want to tweak your system further, such as improving how Ubuntu connects to the Internet, and therefore speed up your web surfing.
To accomplish this, we’re going to configure IPv6 and the TCP Window Size. Please remember to back up any critical files or data you may need as well as keep records of the settings you change. Doing so will help you recover in the event of a disaster. Keep in mind that you perform these configuration “tweaks” at your own risk.
These configuration tweaks are completed by entering commands into your “Terminal”. We will use Gedit although you can use Vi, nano, etc.
As a side note, if you do not want to enter “sudo” for each command, just begining your terminal session with this command:

sudo su

IPV6 is an Internet protocol. Currently most applications use IPV4 and this can cause conflicts which slow down your system.
Complete the following to disable it.

sudo gedit /etc/modprobe.d/bad_list

and type this in:

alias net-pf-10 off

Then save the file.

Speed up Broadband Internet by editing the appropriate configuration file and adding the following information. – Or, you can use a tool called PowerTweak from here: sourceforge.net/projects/powertweak

sudo gedit /etc/sysctl.conf

The first four line deal with window size and you need to enter numbers that are best for you (because these ones may be too high). Here is what I mean by this:
Computers communicate by sending packets of data back and forth. When they connect with each other to send these packets they use the TCP (Transmission Control Protocol).

Your computer could begin the connection with a small package size, then the other computer might respond with a larger one. In turn your computer will reduce (scale down) the size of the package (to a bit more that your original package size). The other computer again responds with a larger packet size. This cycle continues until your computer or the responding computer meets their maximum package size.

If you choose a windows packet size that is too big, you will notice slower broadband performance (524288 works for me). If you notice a slow down, then reduce your window size.
The largest size you can use is 65536, however these are the three settings that seem to work best:

524288
262144
131072
Which are all multiples of 1024 (or 1K).
Now add the following to the end of the file:

net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1

After adding these line you do not need to reboot, instead just reset the file by issuing this command:

sudo sysctl -p

After completing this, you should notice improved web surfing speed. If not, remember to go back and adjust your TCP window size and try again.

Part 2 of this article, which contains more technical information, can be found here: ubuntulinuxhelp.com/speed-up-your-internet-connection-in-ubuntu-linux-part-2/