Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xhost + in citrix session

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
0
0
PL
When I open AIX server (let's call it "myserver") via citrix the DISPLAY is set to :10.0

When I reset DISPLAY to myserver:10.0 I can't successfuly execute "xhost +".

$ xhost +
access control disabled, clients can connect from any host
1346-217 xhost: must be on local machine to enable or disable access control.

Why it fails? the "myserver" is the hostname of the server I am loged in and for this hostname I have a right entry in /etc/hosts
 
additional problem info:

When on a remote host I do:
$ export DISPLAY=myserver:10.0

and then 'xterm' it of course fails because 'xhost -a' failed on myserver CDE session.

$ xterm
Xlib: connection to "myserver:10.0" refused by server
Xlib: Client is not authorized to connect to Server
xterm Xt error: Can't open display: myserver:10.0


When I do the following trick on "myserver" CDE session:

$ export DISPLAY=:10.0

then 'xhost +' executes without any error:

$ xhost +
access control disabled, clients can connect from any host
$

And then I can do reset DISPLAY to myserver:10.0 and I can remotely start 'xterm' on that DISPLAY.

Why command 'xhost +' run on "myserver" returns error "Client is not authorized to connect to Server" ?

'myserver' is present on "xauth" list so by default seems to be authorized...

thx in advance for any hint...
 
exactly the same problem is described on url
"
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
 
Hi,
it isn't clear to me what you need.

What does mean "open AIX server ... via citrix" ?

Citrix (ICA Client on AIX) needs to visualize on AIX a session that is running on a Windows Terminal Server machine and using ICA Client, you can access this from a Unix box (WindowsTermServ use RDP, that does not exists out of Windows).

You are mixing in your post ICA Protocol and X-Window : do you need really both ?

XWindow (or X11) commands as
"xhost +" ad "export DISPLAY=:0.0" are
used between 2 X11 machine (2 AIX, 1AIX+1Linux, ecc ) or in a single Unix machine in which you have done an access (telnet, login or other) that does not define the DISPLAY variable. For this reason you have to define and export
it, and before launching the program (also xterm or aixterm for test) your X-Server (the machine that owns the video), has to grant access for other computers to "display" their output, on your video (using xhost + or xhost hostname).

Tipically you have 2 X-machines and you are in front of hostA: it has a graphical adapter and has X11 installed. You perform a telnet to hostB

hostA> echo $DISPLAY
something:0.0

hostA> xhost + (or xhost hostB)
(this command allow al hosts or just hostB, to send video and mouse motion and keyboard to screen of the computer of which you are in front)

hostA> telnet hostB

or

hostA> aixterm -T HOST_B -e tn telnet hostB &
(this opens a window with caption HOST_B performing a telnet in it and leaves your hostA window ready to receive other commands)

now give your focus to the new window

hostB> echo $DISPLAY

(nothing is displayed)

hostB> export DISPLAY=hostA:0.0
(you inform hostB to redirect X11 I/O on video of machine A)

just for test perform a:

hostB> xterm (or aixterm)

you have to see a window that opens on your screen (that attacched to hostA), while hostB can is very far from you.

(hostB needs X11 installed too)

If you see new window close it, and enter the program you need.

hostB> anyprogramthatneedsgraphicIO

Returning to Citrix, ICA Client on AIX, needs XWindow to display graphical I/O on AIX video, but does not use XWindow protocol to "speak" with the partner, which is a Microsof Windows server.

Could you explain me your scenario ?

bye



hos

 
thank you for the reply.

(I meant open CDE session via Citrix client.)


Right now i wonder, why (look below terminal shot) last 'xhost +' fails:

$ hostname
myserver
$ ping -c 2 `hostname`
PING myserver.mydomain.net: (10.20.34.5): 56 data bytes
64 bytes from 10.20.34.5: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.20.34.5: icmp_seq=1 ttl=255 time=0 ms

----myserver.mydomain.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
$ host 10.20.34.5
myserver.mydomain.net is 10.20.34.5
$ host myserver
myserver.mydomain.net is 10.20.34.5
$ xauth list
myserver/unix:10 MIT-MAGIC-COOKIE-1 144f5c0ea5729a3f1bbef9bd9748b400
myserver.mydomain.net:10 MIT-MAGIC-COOKIE-1 144f5c0ea5729a3f1bbef9bd9748b400
$ echo $DISPLAY
:10.0
$ xhost +
access control disabled, clients can connect from any host
$ export DISPLAY=unix:10.0
$ xhost +
access control disabled, clients can connect from any host
$ export DISPLAY=myserver:10.0
$ xhost +
access control disabled, clients can connect from any host
1346-217 xhost: must be on local machine to enable or disable access control.
$
 
hi,
sorry, bu I continue to don't understand the scenario.

The list of commands you have posted, have been entered
in a AIX terminal. Are you at consolle of the AIX server ?
Is this a aixterm of the CDE ?
If you speak about Citrix, there is a Windows box in your
scenario. Are you using a remote connection from a PC ?
is a telnet ? Where Citrix does enter in the problem ?

bye
 

yes, all these commands were entered in an aixterm of the CDE session I opened using Citrix client from my PC.

please have in mind that in (graphical) citrix session opened on AIX the display is set for example to :10.0 - not to PC hostname. You are working "like" on a console having possibility to re-connect session in case it is broken due to network failure between PC (citrix client) and AIX (citrix server).

 
hi,

OK, I don't know Citrix as PC client for AIX Server.

However, if this exists and you have installed, try this

- launch it and take note of DISPLAY var ( :10.0 )
- always from this terminal enter xhost +
until here nothing of new respect you have done
- from pc run telnet yourhost and login
- enter the command export DISPLAY=myserver:10.0
or export DISPLAY=:10.0
- launch from here the command you need
(for test also aixterm)

bye

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top