3

How can I have multiple independent instances of Mozilla Firefox 3.5 on the same X server, but started from different user accounts (consequently, different profiles)?

Limited success was only with Xephyr :1, DISPLAY=:1 /usr/local/bin/firefox, but Xephyr has no Cygwin/X's "rootless" mode so it's not comfortable (see other question).

The idea is to have one Firefox instance for various "Serious Business" things and the other for regular browsing with dozens of add-ons securely isolated.

Vi.
  • 17,755

3 Answers3

2

In fact, you don't even need multiple user accounts to accomplish this. You can execute several Firefox instances inside the same user account using the no-remote argument. The command line arguments are documented at http://kb.mozillazine.org/Command_line_arguments

Dominik
  • 767
1

You need to give authorization to connect the original X session for that other user. The easiest way is:

firstuser$ xhost +local:other-user
firstuser$ su other-user
otheruser$ firefox

From xhost man page:

A complete name has the syntax ``family:name'' where the families are as follows:

   inet      Internet host (IPv4)
   inet6     Internet host (IPv6)
   dnet      DECnet host
   nis       Secure RPC network name
   krb       Kerberos V5 principal
   local     contains only one name, the empty string
   si        Server Interpreted

   The family is case insensitive.  The format of the name varies with the family.

There are wrappers for su that does that automatically: gksu is one. You might be more comfortable using them.

pl1nk
  • 140
liori
  • 3,348
0

For accessing a second account (such as a separate and dedicated login for a given client), I just use ssh -X with firefox -no-remote, such as this one-liner for a user "dev":

$ ssh -X dev@localhost firefox -no-remote

I do get confused about what windows are for which account though (as I just did in testing this).

sage
  • 1,227