Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run two isolated instances of firefox?

Tags:

firefox

ubuntu

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

like image 522
flybywire Avatar asked Mar 05 '09 08:03

flybywire


People also ask

How do I run two versions of Firefox at the same time?

Chosen Solution You can install multiple Firefox versions via a custom install in different installation folders and only use the older Firefox version when you really need it. Do a custom install and install each version in its own program folder to use multiple Firefox versions.

Can you have multiple instances of Firefox?

Firefox Portable is a 3rd party build that has its own way of launching multiple instances, far different that the official Firefox builds do. That said, Firefox doesn't need to have multiple different Firefox program installations to be able to launch multiple, simultaneous Profiles.

How many instances of Firefox should be running?

The default is 4, but you should be able to change this. Go to the Firefox settings and go to the Performance section. Uncheck the Use recommended performance settings option and there you will find the content process limit setting.

How do I open multiple websites in Firefox?

Please follow the steps Step 1: Go to Firefox Options Window Go to: Tools menu -> Option menu-item -> Main Tab. Step 2: Set two websites in Home Page Field – delimited by | Set the 'When the firefox starts' drop-down to 'Show my home page' Enter multiple websites delimited by | (pipe symbol) as shown below.


2 Answers

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.
like image 59
4 revs, 2 users 87% Avatar answered Sep 20 '22 13:09

4 revs, 2 users 87%


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.

like image 22
krosenvold Avatar answered Sep 20 '22 13:09

krosenvold