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 14:28:08 +1300
On Monday, March 3, 2003, at 01:05 PM, Ettore Aldrovandi wrote:
On Mon, Mar 03, 2003 at 09:20:36AM +1300, bryan wrote:
On Friday, February 28, 2003, at 09:52 AM, Jonas Maebe wrote:
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 e
Last login: Mon Mar 3 14:14:53 from habanero.domain.com
Welcome to ecstacy!
[bryan@ecstasy bryan]$ env | grep DISPL
DISPLAY=ecstasy:10.0
[bryan@ecstasy bryan]$ DISPLAY=localhost:10.0
[bryan@ecstasy bryan]$ export DISPLAY
[bryan@ecstasy bryan]$ env | grep DIS
DISPLAY=localhost:10.0
[bryan@ecstasy bryan]$ /usr/bin/same-gnome &
[1] 20265
[bryan@ecstasy bryan]$ X11 connection rejected because of wrong
authentication.
Gdk-ERROR **: X connection to localhost:10.0 broken (explicit kill or
server shu
tdown).
[1]+ Exit 1 /usr/bin/same-gnome
[bryan@ecstasy bryan]$
Why not? Depends on the resolver configuration on ecstacy. Bryan,
how does ecstasy resolve its own name?
I have ecstasy in /etc/hosts on ecstasy and am running bind 9.2.1
(forward and reverse lookups)
-habanero (192.168.2.55) is master, ecstasy (192.168.2.120) is slave,
locknet (192.168.2.100) is also a slave but is down at the moment.
[bryan@ecstasy bryan]$ host e
e.domain.com is an alias for ecstasy.domain.com.
ecstasy.domain.com has address 192.168.2.120
[bryan@ecstasy bryan]$ host 192.168.2.120
120.2.168.192.in-addr.arpa domain name pointer ecstasy.domain.com.
[bryan@ecstasy bryan]$ host habanero
habanero.domain.com has address 192.168.2.55
[bryan@ecstasy bryan]$ host 192.168.2.55
55.2.168.192.in-addr.arpa domain name pointer habanero.domain.com.
[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).
This would have worked if the original connection with DISPLAY
set to ecstasy:10.0 had worked as well. They don't probably work
for the same (yet unknown) reason.
Again, Bryan, what happens if you do:
cat /etc/hosts on ecstasy?
[bryan@ecstasy bryan]$ cat /etc/hosts
127.0.0.1 localhost
192.168.2.120 ecstasy.domain.com ecstasy
cat /etc/resolv.conf on ecstasy?
[bryan@ecstasy bryan]$ cat /etc/resolv.conf
domain domain.com
nameserver 192.168.2.55
nameserver 192.168.2.100
Results of `netstat -na | grep LISTEN` show the below entry added to
the listening ports when ssh -X taking place.
This doesn't appear when you use ssh without the -X argument -My best
guess was that this has something to do with X11 forwarding being set
up...
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
This is irrelevant to the above, because ssh tunnels the connection.
The above was meant to show that ssh -X was opening a listening port on
ecstasy for the x11 data to be passed through to habanero. (I think)
Can you quote the lines in the output of netstat -na
where habanero appears?
As the -n flag disables lookups I grep(ed) for my IP address.
[bryan@ecstasy bryan]$ netstat -na | grep 192.168.2.55
tcp 0 40 192.168.2.120:22 192.168.2.55:55777
ESTABLISHED
--
Ettore Aldrovandi
Department of Mathematics - email@hidden
Florida State University - http://www.math.fsu.edu/~ealdrov
Tallahassee, FL 32306-4510, USA - [+]1 (850) 664-9717 (FAX: 4053)
Thanks for taking a little time to help. Much appreciated. I had
thought that as ssh -X /usr/bin/xapplication worked and that X11
forwarding only failed when attempting to start the xapplication from a
remote shell that someone would pipe up and say "Oh that old thing,
just set your $X to $Y" and all would be sweet.
Cheers
--
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.