Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP : AIX 5.2 Xwindow : display, hostname, xhost

247 views
Skip to first unread message

LE GALL Stephen

unread,
Nov 9, 2004, 10:55:19 AM11/9/04
to
Hello

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

Gary R. Hook

unread,
Nov 9, 2004, 12:22:11 PM11/9/04
to
LE GALL Stephen wrote:
> 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.
>
> I don't understand why.
> Can you help me ?

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?

Lőrinczy Zsigmond

unread,
Nov 9, 2004, 1:43:54 PM11/9/04
to
LE GALL Stephen wrote:
> Hello
>
> 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.

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

LE GALL Stephen

unread,
Nov 10, 2004, 4:37:38 AM11/10/04
to
"Gary R. Hook" <no...@nosmappers.net> wrote in message news:<717kd.18552$bP2....@newssvr12.news.prodigy.com>...

> LE GALL Stephen wrote:
> > 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.
> >
> > I don't understand why.
> > Can you help me ?
>
> What is the hostname command returning? A fully qualified
> domain name?

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

LE GALL Stephen

unread,
Nov 10, 2004, 9:38:34 AM11/10/04
to
"Gary R. Hook" <no...@nosmappers.net> wrote in message news:<717kd.18552$bP2....@newssvr12.news.prodigy.com>...
> LE GALL Stephen wrote:
> > 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.
> >
> > I don't understand why.
> > Can you help me ?
>
> What is the hostname command returning? A fully qualified
> domain name?

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.

0 new messages