Question

For testing purposes, I want to install two different instances of firefox on ubuntu - so that they don't share cookies. (I want to simultaneously login with both instances as different users to our website). How do I do that? I do it with Firefox & Opera, but I prefer Firefox (because of firebug).

Was it helpful?

Solution

Check out the profile argument like this:

firefox -profile "E:\myprofile"

Sorry about the windows file path ;) If you copy your main profile to a different profile, you will be starting a separate instance.

OTHER TIPS

There's also one more possibility. You can execute the firefox command like:

firefox -P "profile-name" -no-remote

The option -no-remote disables remote control (i.e. control using the firefox command) of the new instance and logically it also implies the option -new-instance which is required to run a new isolated instance. It is also possible to use only the option -new-instance:

firefox -P "profile-name" -new-instance

Creating a new profile

firefox -ProfileManager -new-instance

The command will open an interactive window where you can manage existing profiles and create new ones. You can also start a new instance of Firefox using a selected profile. Be careful of the option "Use the selected profile without asking at startup" which is selected by default and which will make the selected profile to be the default one being used when starting firefox without -P.

Help

Excerpt from firefox -help:

  -P <profile>       Start with <profile>.
  -ProfileManager    Start with ProfileManager.
  -no-remote         Do not accept or send remote commands; implies -new-instance.
  -new-instance      Open new instance, not a new window in running instance.

You can use the Multifox extension in order to have two separate instances of Firefox that do not share cookies, but by still using only one profile.

Make two users on ubuntu

user1 user2

Login as user1 start Firefox1

start some sort of terminal and ssh -X user2@host

start Firefox2

Or, did you mean two different versions of Firefox, say 3.x and 2.x?

If you need just two instances of firefox, you can use New Private Window

to run second instance. (use Ctrl+Shift+P as a shortcut)

http://www.command-tab.com/2008/06/18/how-to-run-firefox-2-and-3-simultaneously/

I believe that the URL above will help you. It is in relation to running FF2 and FF3 at the same time and as separate instances.

The above describes windows and mac but the concept is the same no matter what the OS. Upon installation don't merely allow it to go into the same old fire fox folder, give it a unique path. Then, in Firefox create a profile for each.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top