flybywire
flybywire

Reputation: 273452

How do I run two isolated instances of firefox?

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).

Upvotes: 19

Views: 16148

Answers (7)

Manojk07
Manojk07

Reputation: 377

In linux terminal run,

firefox -new-instance -P "Another Profile"

Then create new profile > start firefox.

It opens new instance, not a new window in running instance, which allows multiple copies of application to be open at a time.

From next time firefox -new-instance -P <Profile name>

Source: mozilla website

Upvotes: 1

Brian Hodge
Brian Hodge

Reputation: 2135

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.

Upvotes: 1

Reza
Reza

Reputation: 465

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)

Upvotes: 1

Aswin Anand
Aswin Anand

Reputation:

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.

Upvotes: 28

Otiel
Otiel

Reputation: 18743

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.

Upvotes: 4

Bruce ONeel
Bruce ONeel

Reputation: 2149

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?

Upvotes: 3

krosenvold
krosenvold

Reputation: 77121

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.

Upvotes: 5

Related Questions