Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.security.ssh > #262 > unrolled thread
| Started by | Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> |
|---|---|
| First post | 2012-02-07 14:53 +0100 |
| Last post | 2012-02-09 19:20 +0100 |
| Articles | 14 — 9 participants |
Back to article view | Back to comp.security.ssh
bizarre X11 forwarding behaviour? Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> - 2012-02-07 14:53 +0100
Re: bizarre X11 forwarding behaviour? Dag-Erling Smørgrav <des@des.no> - 2012-02-07 15:11 +0100
Re: bizarre X11 forwarding behaviour? Chris Dodd <cdodd@acm.org> - 2012-02-07 22:04 +0100
Re: bizarre X11 forwarding behaviour? Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> - 2012-02-08 17:47 +0100
Re: bizarre X11 forwarding behaviour? Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> - 2012-02-08 03:14 +0100
Re: bizarre X11 forwarding behaviour? Dag-Erling Smørgrav <des@des.no> - 2012-02-08 12:56 +0100
Re: bizarre X11 forwarding behaviour? Simon Tatham <anakin@pobox.com> - 2012-02-08 12:01 +0000
Re: bizarre X11 forwarding behaviour? Owen Dunn <owend@chiark.greenend.org.uk> - 2012-02-08 12:12 +0000
Re: bizarre X11 forwarding behaviour? Dag-Erling Smørgrav <des@des.no> - 2012-02-08 13:14 +0100
Re: bizarre X11 forwarding behaviour? all mail refused <elvis-85496@notatla.org.uk> - 2012-02-09 22:10 +0000
Re: bizarre X11 forwarding behaviour? all mail refused <elvis-85496@notatla.org.uk> - 2012-02-09 22:05 +0000
Re: bizarre X11 forwarding behaviour? Allistar <me@hiddenaddress.com> - 2012-02-09 15:01 +1300
Re: bizarre X11 forwarding behaviour? Stuart Barkley <stuartb@4gh.net> - 2012-02-08 23:22 -0500
Re: bizarre X11 forwarding behaviour? Nomen Nescio <nobody@dizum.com> - 2012-02-09 19:20 +0100
| From | Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> |
|---|---|
| Date | 2012-02-07 14:53 +0100 |
| Subject | bizarre X11 forwarding behaviour? |
| Message-ID | <a3e64d967fb73a7434e906e52dc7fb85@msgid.frell.theremailer.net> |
Guys I am having a difficult time believing my eyes on this one. I've got X11 forwarded over SSH from a remote system running firefox. When I start firefox on my local system even specifying the path to my executable in a terminal window /usr/bin/firefox firefox starts from the remote system! I could see this because on my local and remote system have different versions of firefox. I cannot get my local version of firefox to run until all forwarded versions of the remote system are closed. If I start firefox on my local system first then I cannot get a remote firefox to start until the local one's finished! Anyone got an idea what in the blazes is happening?
[toc] | [next] | [standalone]
| From | Dag-Erling Smørgrav <des@des.no> |
|---|---|
| Date | 2012-02-07 15:11 +0100 |
| Message-ID | <86wr7yivih.fsf@ds4.des.no> |
| In reply to | #262 |
Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> writes: > Guys I am having a difficult time believing my eyes on this one. I've > got X11 forwarded over SSH from a remote system running firefox. When > I start firefox on my local system even specifying the path to my > executable in a terminal window /usr/bin/firefox firefox starts from > the remote system! This is intended behavior. When you start Firefox, it queries the X server for existing instances, and if it finds one, instead of starting a new instance, it sends the existing one a signal telling it to open a new window. DES -- Dag-Erling Smørgrav - des@des.no
[toc] | [prev] | [next] | [standalone]
| From | Chris Dodd <cdodd@acm.org> |
|---|---|
| Date | 2012-02-07 22:04 +0100 |
| Message-ID | <Xns9FF284E2FB507cdoddacmorg@194.177.98.144> |
| In reply to | #263 |
=?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> wrote in
news:86wr7yivih.fsf@ds4.des.no:
> Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net>
> writes:
>> Guys I am having a difficult time believing my eyes on this one. I've
>> got X11 forwarded over SSH from a remote system running firefox. When
>> I start firefox on my local system even specifying the path to my
>> executable in a terminal window /usr/bin/firefox firefox starts from
>> the remote system!
>
> This is intended behavior. When you start Firefox, it queries the X
> server for existing instances, and if it finds one, instead of starting
> a new instance, it sends the existing one a signal telling it to open a
> new window.
>
> DES
Note that you can disable this behavior by using the -no-remote option
to firefox. This will cause it to always open a new instance even firefox
is already running on some other window.
-chris
[toc] | [prev] | [next] | [standalone]
| From | Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> |
|---|---|
| Date | 2012-02-08 17:47 +0100 |
| Message-ID | <94cd65265fb9d54b0b8e59332ab36b82@msgid.frell.theremailer.net> |
| In reply to | #264 |
> Note that you can disable this behavior by using the -no-remote option to > firefox. This will cause it to always open a new instance even firefox is > already running on some other window. > > -chris Thank you,
[toc] | [prev] | [next] | [standalone]
| From | Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> |
|---|---|
| Date | 2012-02-08 03:14 +0100 |
| Message-ID | <b944984f4a22f067534a0bca032621b8@msgid.frell.theremailer.net> |
| In reply to | #263 |
Dag-Erling Smørgrav <des@des.no> wrote: > Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> > writes: > > Guys I am having a difficult time believing my eyes on this one. I've > > got X11 forwarded over SSH from a remote system running firefox. When > > I start firefox on my local system even specifying the path to my > > executable in a terminal window /usr/bin/firefox firefox starts from > > the remote system! > > This is intended behavior. When you start Firefox, it queries the X > server for existing instances, and if it finds one, instead of starting > a new instance, it sends the existing one a signal telling it to open a > new window. Thank you for the explanation. That is seriously broken behavior. I'll try installing another browser. The scenario this happened is I have a firefox session running on a remote machine with X forwarding because it has a web server on it that is not accessible outside the LAN. On my local system I have a tor instance running and firefox configured with torbutton and privoxy. Once I use the webserver on the remote machine I can't get to my copy of Firefox that has access to tor on the local system, or if I start the local copy of firefox with tor I can't get to the webserver on the remote system. I'll post something on the tor list and maybe they can help the firefox devs pull their heads out of their ass.
[toc] | [prev] | [next] | [standalone]
| From | Dag-Erling Smørgrav <des@des.no> |
|---|---|
| Date | 2012-02-08 12:56 +0100 |
| Message-ID | <86obt9ilnk.fsf@ds4.des.no> |
| In reply to | #265 |
Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> writes: > Dag-Erling Smørgrav <des@des.no> writes: > > This is intended behavior. When you start Firefox, it queries the X > > server for existing instances, and if it finds one, instead of > > starting a new instance, it sends the existing one a signal telling > > it to open a new window. > Thank you for the explanation. That is seriously broken behavior. No, it's actually the only sensible behavior in 99% of the cases. If you really want a new, separate instance, use -no-remote. > I'll try installing another browser. I think you'll find that they all work the same. > I'll post something on the tor list and maybe they can help the > firefox devs pull their heads out of their ass. Seems to me you're the one in need of head-pulling. DES -- Dag-Erling Smørgrav - des@des.no
[toc] | [prev] | [next] | [standalone]
| From | Simon Tatham <anakin@pobox.com> |
|---|---|
| Date | 2012-02-08 12:01 +0000 |
| Message-ID | <1He*-JjZt@news.chiark.greenend.org.uk> |
| In reply to | #266 |
Dag-Erling Smørgrav <des@des.no> wrote: > No, it's actually the only sensible behavior in 99% of the cases. If > you really want a new, separate instance, use -no-remote. It's reasonably sensible behaviour when the two putative Firefoxes are running on the same host, since that avoids the problems of two separate Firefoxes concurrently accessing a single state directory (history, bookmarks etc). But I can't see why it's obviously what you want in the OP's case, where the two Firefoxes are running on different hosts and the only thing they have in common is that they're opening windows on the same X display. I think the behaviour in the case of remote X clients is less likely to be intentional, and more probably it's an unintended side effect of having the detect-existing-Firefox-and-talk-to-it mechanism work through the X server. If the mechanism had been implemented via (say) Unix-domain sockets instead, then it would only happen between Firefoxes running on the same host, and ones on different hosts connecting to the same X server would just ignore each other. -- Simon Tatham "You may call that a cheap shot. <anakin@pobox.com> I prefer to think of it as good value."
[toc] | [prev] | [next] | [standalone]
| From | Owen Dunn <owend@chiark.greenend.org.uk> |
|---|---|
| Date | 2012-02-08 12:12 +0000 |
| Message-ID | <83aa4twmko.fsf@chiark.greenend.org.uk> |
| In reply to | #267 |
Simon Tatham <anakin@pobox.com> writes: > Dag-Erling Smørgrav <des@des.no> wrote: >> No, it's actually the only sensible behavior in 99% of the cases. If >> you really want a new, separate instance, use -no-remote. > > It's reasonably sensible behaviour when the two putative Firefoxes are > running on the same host, since that avoids the problems of two > separate Firefoxes concurrently accessing a single state directory > (history, bookmarks etc). But I can't see why it's obviously what you > want in the OP's case, where the two Firefoxes are running on > different hosts and the only thing they have in common is that they're > opening windows on the same X display. It's usually what I want in this situation. When a random application on a remote machine wants to pop up a web browser to get me to look at a web site (perhaps I clicked a link in an email) I don't want to end up with another firefox, I want the link to open in the one I've already got here. (Usually with X forwarding the last thing I want is for a big heavy GUI application to be running over it!) (S)
[toc] | [prev] | [next] | [standalone]
| From | Dag-Erling Smørgrav <des@des.no> |
|---|---|
| Date | 2012-02-08 13:14 +0100 |
| Message-ID | <86k43xikty.fsf@ds4.des.no> |
| In reply to | #267 |
Simon Tatham <anakin@pobox.com> writes: > I think the behaviour in the case of remote X clients is less likely > to be intentional, and more probably it's an unintended side effect of > having the detect-existing-Firefox-and-talk-to-it mechanism work > through the X server. If the mechanism had been implemented via (say) > Unix-domain sockets instead, then it would only happen between > Firefoxes running on the same host, and ones on different hosts > connecting to the same X server would just ignore each other. Unix domain sockets might not play well with NFS-mounted home directories, memory-backed /tmp etc. DES -- Dag-Erling Smørgrav - des@des.no
[toc] | [prev] | [next] | [standalone]
| From | all mail refused <elvis-85496@notatla.org.uk> |
|---|---|
| Date | 2012-02-09 22:10 +0000 |
| Message-ID | <slrnjj8h3f.tha.elvis-85496@notatla.org.uk> |
| In reply to | #269 |
On 2012-02-08, Dag-Erling Smørgrav <des@des.no> wrote: > Unix domain sockets might not play well with NFS-mounted home > directories, memory-backed /tmp etc. I like a symbolic link from ~/.mozilla to something under /var which avoids those problems (if not sharing /var between hosts) and gets your browser history backed up in the manner of /var rather than /home. -- Elvis Notargiacomo master AT barefaced DOT cheek
[toc] | [prev] | [next] | [standalone]
| From | all mail refused <elvis-85496@notatla.org.uk> |
|---|---|
| Date | 2012-02-09 22:05 +0000 |
| Message-ID | <slrnjj8gpu.tha.elvis-85496@notatla.org.uk> |
| In reply to | #267 |
On 2012-02-08, Simon Tatham <anakin@pobox.com> wrote: > It's reasonably sensible behaviour when the two putative Firefoxes are > running on the same host, since that avoids the problems of two > separate Firefoxes concurrently accessing a single state directory > (history, bookmarks etc). But I can't see why it's obviously what you > want in the OP's case, where the two Firefoxes are running on > different hosts and the only thing they have in common is that they're > opening windows on the same X display. agreed - I've been using firefox -no-remote -new-window -- Elvis Notargiacomo master AT barefaced DOT cheek
[toc] | [prev] | [next] | [standalone]
| From | Allistar <me@hiddenaddress.com> |
|---|---|
| Date | 2012-02-09 15:01 +1300 |
| Message-ID | <svadnZAHNvqQtK7SnZ2dnUVZ_jmdnZ2d@giganews.com> |
| In reply to | #265 |
Fritz Wuehler wrote: > Dag-Erling Smørgrav <des@des.no> wrote: > >> Fritz Wuehler <fritz@spamexpire-201202.rodent.frell.theremailer.net> >> writes: >> > Guys I am having a difficult time believing my eyes on this one. I've >> > got X11 forwarded over SSH from a remote system running firefox. When >> > I start firefox on my local system even specifying the path to my >> > executable in a terminal window /usr/bin/firefox firefox starts from >> > the remote system! >> >> This is intended behavior. When you start Firefox, it queries the X >> server for existing instances, and if it finds one, instead of starting >> a new instance, it sends the existing one a signal telling it to open a >> new window. > > Thank you for the explanation. That is seriously broken behavior. It's not the only cuplrit of this. OpenOffice and LibreOffice do similar things. More annoyingly, so do parts of KDE (in particular the monstrosity that is akonadi). -- A.
[toc] | [prev] | [next] | [standalone]
| From | Stuart Barkley <stuartb@4gh.net> |
|---|---|
| Date | 2012-02-08 23:22 -0500 |
| Message-ID | <alpine.BSF.2.00.1202082246320.50371@freeman.4gh.net> |
| In reply to | #265 |
> installing another browser. The scenario this happened is I have a
> firefox session running on a remote machine with X forwarding
> because it has a web server on it that is not accessible outside the
> LAN.
You may want to try the poorly documented profile functionality in
Firefox.
At the command line type "firefox -ProfileManager" and create a new
profile. Then you can use "firefox -P <profile>" to start up a
specific instance (put these in menu entries or wherever you want).
I run multiple local Firefox instances fairly often.
One profile will use the local network connection for everything.
Other profiles use various ssh socks tunnels (DynamicForward) to
browse other locations. This also has better performance since
instead of the X protocol being tunneled it is just tunneling the
connections to the web sites. You might also want to set
network.proxy.socks_remote_dns in Firefox so dns lookups happen
through the socks connection and you can see the remote name space.
In some cases I'm proxing out of networks where I don't want
monitoring, filtering or other diddling with my web traffic
(conferences, cafes, hotels, etc).
In other cases I will be proxied into isolated networks to debug
hardware things via embedded web interfaces (switches, pdus, imm
systems). This sounds like your situation.
I also have a separate profile which has the password manager turned
on. Ordinarily I don't store passwords in the browser, but in this
profile I have a few passwords for vendor support sites saved.
Each profile has a complete independent Firefox configuration
(separate bookmarks, separate cookie settings, separate security
policies). Mostly this is good for me.
Stuart Barkley
--
I've never been lost; I was once bewildered for three days, but never lost!
-- Daniel Boone
[toc] | [prev] | [next] | [standalone]
| From | Nomen Nescio <nobody@dizum.com> |
|---|---|
| Date | 2012-02-09 19:20 +0100 |
| Message-ID | <e51bcc9c4b178d78125f4e4afd9aaff8@dizum.com> |
| In reply to | #275 |
Thanks for the workarounds guys!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.security.ssh
csiph-web