Re: Accessing RedHat Linux 8 system (really LinuxPPC)
Re: Accessing RedHat Linux 8 system (really LinuxPPC)
- Subject: Re: Accessing RedHat Linux 8 system (really LinuxPPC)
- From: bryan <email@hidden>
- Date: Mon, 3 Mar 2003 09:20:36 +1300
On Friday, February 28, 2003, at 09:52 AM, Jonas Maebe wrote:
Thanks Jonas,
I often (and this is obviously no exception) don't explain myself
well enough. Sorry about that.
And I often read faster than advisable, so I quite often miss
important details. Sorry about that too :)
No stress.
This works:
[habanero:~] bryan% ssh -X ecstasy /usr/bin/program
Also if "program" is an X program?
yep just tried
ssh -X e /usr/X11R6/bin/xclock (x11 xclock)
and
ssh -X e /usr/bin/same-gnome (It's a game)
(but also fails with vi/vim command line editor)
and this does not:
[habanero:~] bryan% ssh -X e
[bryan@ecstasy bryan]$ /usr/bin/same-gnome
the error reported:
X11 connection rejected because of wrong authentication.
Gdk-ERROR **: X connection to ecstasy:10.0 broken (explicit kill or
server shutdown).
I still don't understand why DISPLAY is set to ecstasy:10.0 and not
localhost:10.0. Maybe you could try changing that manually and see
what happens.
[habanero:~] bryan% ssh -X ecstasy
Last login: Fri Feb 28 17:51:29 from habanero
Welcome to ecstacy!
[bryan@ecstasy bryan]$ env | grep DIS
DISPLAY=ecstasy:10.0
[bryan@ecstasy bryan]$ DISPLAY=127.0.0.1:10.0
[bryan@ecstasy bryan]$ export DISPLAY
[bryan@ecstasy bryan]$ /usr/bin/same-gnome
X11 connection rejected because of wrong authentication.
Gdk-ERROR **: X connection to 127.0.0.1:10.0 broken (explicit kill or
server shutdown).
Results of `netstat -na | grep LISTEN` show the below entry added to
the listening ports when ssh -X taking place.
IIRC anything listening on 0.0.0.0 is available on all interfaces.
tcp 0 0 0.0.0.0:6010 0.0.0.0:*
LISTEN
Maybe you could put a "echo $DISPLAY" in that file to see what that
one says (although I don't know whether it's executed before or after
your remote shell gets initialized).
tried that and /usr/bin/logger (log $DISPLAY to syslogd) and nothing
came up at all, just to test I tried echoing some text to a file and to
syslogd. Nothing.
any other ideas?
Well, if the answer to my first question in this mail ("Also if
"program" is an X program?") is a resounding YES, then it seems
obvious that somehow a login script (that is automatically executed
when your shell starts on the Linux box) changes the DISPLAY variable.
I have ssh'ed in without the -X argument and don't get anything back
from an "env | grep DISPLAY" command. I take it from this that nothing
is setting the DISPLAY command during/after ssh login.
Maybe if you specify a command together with the ssh line, your
default shell isn't started (maybe just /bin/sh is with a minimal
environment) or maybe it doesn't execute the same login/init scripts
that it otherwise uses, so the DISPLAY variable doesn't get changed in
that case.
Anyway that I might be able to tell if this is happening?
Note that the script that changes the DISPLAY variable doesn't
necessary have to be your .profile/.bash_profile/.tcsh_rc/..., it can
just as well be something in /etc (/etc/csh.login and things like
that) which is automatically executed by your remote shell. Maybe a
'grep -r DISPLAY /etc/*' will give you some hints about that.
I had a look at this but couldn't see anything setting DISPLAY.
--
bryan
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.