Firefox 2 and Firefox 3 co-habiting on Ubuntu 8.04

brad's picture

I recently upgraded to Ubuntu 8.04 (Hardy Heron). I was pleasantly surprised when Firefox 3 greeted me as the default browser, but then hit a few speed bumps. Being a web developer I constantly use tools like firebug and MeasureIt. Unfortunately, until Firefox 3 is widespread (and released), many extensions don't work (there are hacks, but they come with problems). So I don't want to go back to Firefox 2 as my browser, because when I did try there were some issues with downgrading my profile, and I have become quite used to bookmark tags, awesomebar, the incredible difference in memory consumption, and the Save & Exit prompt. Running Firefox 2 concurrently is possible though, it comes at a price though.

Firstly, install firefox-2:

sudo apt-get install firefox-2

I went the route of using a separate user for FF2, but you could probably use profiles? So:

Create a candidate user:

sudo adduser firefox2

(where firefox2 is the username)

Then you can run firefox-2 as the user firefox2 using:

xhost +local:
sudo su firefox2
export DISPLAY=:0.0
firefox-2

The caution...using xhost +local: means any user logged onto your box (i.e. local), including ssh sessions, can access your X session. You will not have your bookmarks etc., but you can make a copy of bookmarks.html from your ~/.mozilla/firefox/%default profile%/bookmarks.html. You can now install the conventional FF add-ons etc.

This should be treated as a hack and an interim measure, because once FF3 is supported by all your favourite extensions, then there is no need to carry on using it. I use my FF3 as my primary browser, and FF2 as a development environ (so not having bookmarks is fine for me, because I literally only use it for opening the site I am currently working on).

Would appreciate constructive comments and crit. of better ways of doing this.

Trackback URL for this post:

http://whijo.net/trackback/436

Create a separate profile by starting firefox with the '-ProfileManager' switch. Then either set the no remote environment variable with 'set MOZ_NO_REMOTE=1' or run your firefox with the '-no-remote' switch. This will also allow you to run multiple profiles at once, you could even have FF2 and FF3 running at the same time. I use this to have a 'Google/Gmail' profile segregated from my 'normal' profile and 'banking' profile.

Post new comment

The content of this field is kept private and will not be shown publicly.
Captcha
This question is used to make sure you are a human visitor and to prevent spam submissions.
Syndicate content

the author

brad's picture

Full Name
Bradley Whittington

Bio

Brad is a web technologist and open sourceologist.

Darb's Twitter

    The Whijos

    site tools

    User login

    Log in using OpenID

    Syndicate

    Syndicate content

    @love() python

    Afrigator

    Recent comments

    About this website

    Whijo.net is the online internets of Bradley Whittington, Amanda Joseph, and our son Finley James Whittington. "Whijo" is 29% Whittington, 33% Joseph, and 37% Internet. Quite Web 2.0 of us.