Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old June 18th, 2007   #1
dAF2000
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 7
Firefox starts locally through ssh to server

This is my first post (although I'm not a newbie ) and I've got a problem I don't understand.

I have a server running 6.06 alternate edition and a laptop running 7.04 for normal daily use. I connect from the laptop to the server through ssh using X forwarding. This all works fine. I open the ssh connection to the server using "ssh 192.168.1.60" (which is IP of server).

However, if I have firefox running on the laptop and type "firefox" in the ssh terminal, firefox on the laptop starts instead of the firefox on the server. I can recognize it because it opens the Ubunu 7.04 welcome screen and the bookmarks are from the firefox on the laptop.

If I don't have firefox running on the laptop, typing firefox in the ssh terminal really starts up firefox on the server. This is really a strange problem which only appears with firefox. "xterm" for example, works fine, the server xterm is started and shown on the laptop. Why should firefox behave other than xterm for example?
dAF2000 is offline   Reply With Quote
Old June 23rd, 2007   #2
anath3ma
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 7
Re: Firefox starts locally through ssh to server / x11 forwarding

yep, just ran into the same problem here.

¨firefox¨ is a shell script that runs firefox-bin after doing lots of random setup stuffs.

from what ive read, apparently firefox does some x11 messaging to your display to try to determine if it should start up a new instance of firefox or just open a new window on an existing instance. obviously, if firefox is already started locally then the LOCAL binary gets the message to spawn a new window. if not, then the message goes to the ssh X11 forward.

the answer seems to be in a firefox script rewrite. this is something i have not found on sourceforge or through google (even tho many people have the problem). i might do this myself if i have the time in the next few weeks.

adobe tools are said to have the same problem.
ive seen similar problems with evolution if you have an instance running on the remote host.
anath3ma is offline   Reply With Quote
Old June 23rd, 2007   #3
anath3ma
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 7
Re: Firefox starts locally through ssh to server

ok... just looked at the script... there is nothing of worth in there.
so, the aforementioned messaging is happening in the binary.
that is to say... we are screwed. (unless you feel like rewriting some c and getting it submitted to firefox)

only place to look now is firefox lists to see if somebody maybe made a patch already.
anath3ma is offline   Reply With Quote
Old June 23rd, 2007   #4
anath3ma
First Cup of Ubuntu
 
Join Date: Feb 2006
Beans: 7
Re: Firefox starts locally through ssh to server

found two ways to do it.both are total hacks....

first:
run a rootless xserver like xming or cygwin under wine and run firefox as the start app.

second:
run
firefox -ProfileManager

this appears to skip the braindead code that cant distinguish between local and foreign instances of firefox running on the same x11 server. though this is another bug, it works in our favor.

e.x.
add a ¨custom application launcher¨ in your top panel with this as the commandline
ssh -X servername -f firefox -ProfileManager
anath3ma is offline   Reply With Quote
Old June 29th, 2007   #5
dAF2000
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 7
Re: Firefox starts locally through ssh to server

Thanks!
I couldn't find "strange" things in the startup script either. I will try your ProfileManager approach.
dAF2000 is offline   Reply With Quote
Old July 4th, 2007   #6
sas13
Just Give Me the Beans!
 
Join Date: Jan 2005
Beans: 41
Re: Firefox starts locally through ssh to server

another way to get firefox is to start on the the remote computer is to use the "-no-remote" option:
Code:
ssh -X <remotehost>
firefox -no-remote
sas13 is offline   Reply With Quote
Old July 6th, 2007   #7
dAF2000
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 7
Re: Firefox starts locally through ssh to server

Quote:
Originally Posted by sas13 View Post
another way to get firefox is to start on the the remote computer is to use the "-no-remote" option:
Code:
ssh -X <remotehost>
firefox -no-remote
That did the trick and is even easier
dAF2000 is offline   Reply With Quote
Old August 8th, 2007   #8
devif0
First Cup of Ubuntu
 
Join Date: May 2007
Beans: 1
Re: Firefox starts locally through ssh to server

Thanks for the hint. It is a precious one.
devif0 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:23 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry