Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do I run remote X application?

Reply
Thread Tools Display Modes

How do I run remote X application?

 
 
sj
Guest
Posts: n/a

 
      03-26-2005, 11:51 PM
I have simple LAN and wish to run mozilla remotly. So far I have tried to
use ssh with the -X option. The following is a typical transaction.

root@cage # ssh -X piggy
Last login: Sat Mar 26 19:27:28 2005 from cage
Linux 22.4.26
root@PIGGY:~# mozilla
(mozillz-bin:14763):Gtk-WARNING **: cannot open display:

 
Reply With Quote
 
 
 
 
Bob Tennent
Guest
Posts: n/a

 
      03-27-2005, 02:12 AM
On Sun, 27 Mar 2005 01:51:32 GMT, sj wrote:
> I have simple LAN and wish to run mozilla remotly. So far I have tried to
> use ssh with the -X option.


Try -Y instead of -X to enable trusted X11 forwarding.

 
Reply With Quote
 
sj
Guest
Posts: n/a

 
      03-27-2005, 05:01 AM
Bob Tennent wrote:

> On Sun, 27 Mar 2005 01:51:32 GMT, sj wrote:
> > I have simple LAN and wish to run mozilla remotly. So far I have tried
> > to use ssh with the -X option.

>
> Try -Y instead of -X to enable trusted X11 forwarding.



Bob thanks for the suggestion, unfortunately it doesn't work. ssh complains
that -Y is an illegal option and I don't see -Y listed in the man page?

In the mean time I have editied sshd_config on the remote machine to include
the line

ForwardX11 yes

But this also isnt working.




 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      03-27-2005, 05:25 AM
On Sun, 27 Mar 2005 01:51:32 +0000, sj wrote:

> I have simple LAN and wish to run mozilla remotly. So far I have tried to
> use ssh with the -X option. The following is a typical transaction.
>
> root@cage # ssh -X piggy
> Last login: Sat Mar 26 19:27:28 2005 from cage
> Linux 22.4.26
> root@PIGGY:~# mozilla
> (mozillz-bin:14763):Gtk-WARNING **: cannot open display:


Have you tried that as a normal user?

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      03-27-2005, 05:54 AM
In comp.os.linux.networking sj <(E-Mail Removed)>:
> I have simple LAN and wish to run mozilla remotly. So far I have tried to
> use ssh with the -X option. The following is a typical transaction.


> root@cage # ssh -X piggy


Please, please don't run a browser as root unless there's a real
reason.

> Last login: Sat Mar 26 19:27:28 2005 from cage
> Linux 22.4.26
> root@PIGGY:~# mozilla
> (mozillz-bin:14763):Gtk-WARNING **: cannot open display:


You have no DISPLAY or it's wrong setup, try connecting with 'ssh
-vvv -X piggy' ans see if this gives any clues, post the output
if it doesn't tell you anything. What's the output of 'echo
$DISPLAY' on the remote system after login?

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 458: Windows 2000 is still light years away from
the stability and reliability of UNIX systems.
 
Reply With Quote
 
sj
Guest
Posts: n/a

 
      03-27-2005, 07:23 AM

>> root@cage # ssh -X piggy

>
> Please, please don't run a browser as root unless there's a real
> reason.
>


Thanks for the warning. I don't intend to use a browser as root... Piggy is
an experimental machine with nothing of value on it. Up to a few minutes
ago I didn't have a "normal" account on the machine.



>
> You have no DISPLAY or it's wrong setup, try connecting with 'ssh
> -vvv -X piggy' ans see if this gives any clues, post the output


Ok here are the x11 related lines using -vvv

debug2: x11_get_proto: /usr/X11R6/bin/xauth list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: channel 0: request shell
debug2: callback done
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072


> if it doesn't tell you anything. What's the output of 'echo
> $DISPLAY' on the remote system after login?
>


DISPLAY has a value of 1 on piggy

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      03-27-2005, 08:06 AM
In comp.os.linux.networking sj <(E-Mail Removed)>:
[..]

>> You have no DISPLAY or it's wrong setup, try connecting with 'ssh
>> -vvv -X piggy' ans see if this gives any clues, post the output


> Ok here are the x11 related lines using -vvv


> debug2: x11_get_proto: /usr/X11R6/bin/xauth list :0.0 2>/dev/null


xauth available, good.

> debug1: Requesting X11 forwarding with authentication spoofing.
> debug1: channel 0: request x11-req
> debug1: channel 0: request shell


Doesn't look that bad, even if you usually see a confirm from the
other side.

Can you check for these settings in sshd_config on the remote
side and adjust + restart/reload sshd and retry:

X11Forwarding yes
X11DisplayOffset 10

If this doesn't fix things you can try adding 'X11UseLocalhost
yes' or 'X11UseLocalhost no', depends on your ssh client whatever
you are using? 'ssh -V' should show.

[..]

> DISPLAY has a value of 1 on piggy


That's the problem, you should see something like this:

$ echo $DISPLAY
localhost:10.0

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 11: magnetic interference from money/credit cards
 
Reply With Quote
 
sj
Guest
Posts: n/a

 
      03-27-2005, 09:02 PM
Michael Heiming wrote:

> Doesn't look that bad, even if you usually see a confirm from the
> other side.
>
> Can you check for these settings in sshd_config on the remote
> side and adjust + restart/reload sshd and retry:
>
> X11Forwarding yes
> X11DisplayOffset 10
>
>
>
>> DISPLAY has a value of 1 on piggy

>
> That's the problem, you should see something like this:
>
> $ echo $DISPLAY
> localhost:10.0
>

That did it, thanks for your help!
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-28-2005, 04:33 AM
On 2005-03-27, sj <(E-Mail Removed)> wrote:
> Michael Heiming wrote:
>
>> Can you check for these settings in sshd_config on the remote
>> side and adjust + restart/reload sshd and retry:
>>
>> X11Forwarding yes
>> X11DisplayOffset 10


[snip]

>> That's the problem, you should see something like this:
>>
>> $ echo $DISPLAY
>> localhost:10.0
>>

> That did it, thanks for your help!


Which did it, before my snip or after? If just modifying the remote
sshd_config file worked, then you're fine, but if you're setting
DISPLAY manually, then it's still not working right.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
sj
Guest
Posts: n/a

 
      03-28-2005, 05:27 AM

> Which did it, before my snip or after? If just modifying the remote
> sshd_config file worked, then you're fine, but if you're setting
> DISPLAY manually, then it's still not working right.
>
> --keith
>


The modification to sshd_config. I am not setting DISPLAY manually
 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to launch an application on remote pc with Radmin? He Not Be In He Not, He Be Out He Be Home Networking 0 11-14-2007 07:54 AM
Remote desktop, allow remote connections for some but deny remote for others steve Windows Networking 4 06-19-2007 01:35 PM
Starting remote application on SuSe Box. Szekely Szabolcs Linux Networking 0 10-19-2006 02:55 AM
Remote Desktop - Application/Persistent Pradeep Broadband Hardware 0 03-03-2005 01:34 AM
teminal remote vs. application mode. Joe Windows Networking 1 09-14-2004 04:55 PM



1 2 3 4 5 6 7 8 9 10 11