Operating System - Linux
1754379 Members
3239 Online
108813 Solutions
New Discussion юеВ

How to run Firefox via telnet, ssh?

 
natis
Frequent Contributor

How to run Firefox via telnet, ssh?

How to run Firefox via telnet, ssh. When I access via telnet and ssh, i want to run firefox.

Please, tell me
Thanks
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: How to run Firefox via telnet, ssh?

It might help to know what you're accessing,
and from what you're accessing it. (And if
there's any X Windows software on either
end.)

Normally, if all the X software is in place,
you just need to set a DISPLAY variable on
the (UNIX-like) application server, and
enable its access to your X server (where
you're sitting). (Methods vary, depending on
circumstances. "man xhost" for clues on a
UNIX-like system.) Most SSH programs have
options ("+x", "+X") which handle X
forwarding with less manual intervention.
Steven E. Protter
Exalted Contributor

Re: How to run Firefox via telnet, ssh?

Shalom,

firefox, unlike most applications will not work right in remote mode.

In general ssh -X hostname command-name

Will run the application through a secure ssh tunnel. When you run firefox this way it runs a local copy.

You can try ssh -Y but I don't think that will work either.

You can run vncserver on the remote machine, connect via the vncviewer and run the entire desktop of the remote system normally.

I don't know what it is about firefox that makes it behaves this way.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: How to run Firefox via telnet, ssh?

Shalom,

Just thought of something.

ssh -X hostname gnome-terminal

After you get a login, try firefox. I have not tried it that way yet.

I will try it now.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: How to run Firefox via telnet, ssh?

Shalom,

The last post, gnome-terminal works. I just used a system in Chicago to browse the net (very slowly) from Israel.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mike Stroyan
Honored Contributor

Re: How to run Firefox via telnet, ssh?

The effect that Steven E. Protter sees with running a local copy is an interesting side effect of the way firefox communicates with already running copies on the same display. When firefox starts up it looks for an X server "atom" that is created by the first firefox process to run. If the atom is present then the new firefox process uses X11 protocol to communicate with the existing firefox process and have the original open another URL. Those old and new processes can actually be on two different systems as long as they point to the same X server.
You can prevent that behavior by starting a firefox process with a "-no-remote" option.
ssh -X host2 firefox -no-remote http://localhost/
will start firefox on host2 and open a http://localhost/ URL to a web server on host2.