OS : AIX 5200-04
Server : IBM pSerie p630
Sorry for my English
I can't define the display variable by the hostname :
[root] / # export DISPLAY=$(hostname):0.0
[root] / # xhost +
access control disabled, clients can connect from any host
1346-217 xhost: must be on local machine to enable or disable access control.
But, If I define with localhost or unix, that's good :
[root] / # export DISPLAY=localhost:0.0
[root] / # xhost +
access control disabled, clients can connect from any host
[root] / # export DISPLAY=unix:0.0
[root] / # xhost +
access control disabled, clients can connect from any host
[root] / # export DISPLAY=:0.0
[root] / # xhost +
access control disabled, clients can connect from any host
I don't understand why.
Can you help me ?
Stephen
What is the hostname command returning? A fully qualified
domain name?
Does this work if you use "DISPLAY=mymachine.mydomain.com:0.0"?
Or some other system name that can be fully resolved?
Anyway, what do you want to do?
Eg: you telnet from 1.2.3.4 to 5.6.7.8:
1.2.3.4$ xhost +5.6.7.8
1.2.3.4$ telnet 5.6.7.8
5.6.7.8$ export DISPLAY=1.2.3.4:0
5.6.7.8$ xteddy & # xteddy will be displayed on 1.2.3.4's X-szerver
the hostname command return just "mymachine"
the domainname command return "mydomain.com"
> Does this work if you use "DISPLAY=mymachine.mydomain.com:0.0"?
> Or some other system name that can be fully resolved?
I have test with "DISPLAY=mymachine.mydomain.com:0.0"
but xhost return the same message :
[root] / # export DISPLAY=$(hostname).$(domainname):0.0
the hostname command return me the good hostname
the domainname command return me the good domain name
> Does this work if you use "DISPLAY=mymachine.mydomain.com:0.0"?
> Or some other system name that can be fully resolved?
I have tried too :
[root] / # export DISPLAY=$(hostname).$(domainname):0.0
[root] / # xhost +
access control disabled, clients can connect from any host
1346-217 xhost: must be on local machine to enable or disable access control.
The hostname IP adresse was defined in the /etc/hosts file
For example :
1.2.3.4 myhostname
127.0.0.1 loopback localhost
... # other IP adresse
So, I haven't idea why it's not OK.