Operating System - HP-UX
1822585 Members
3401 Online
109643 Solutions
New Discussion

Xlib: Client is not authorized to connect to Server

 
ricky2
Frequent Advisor

Xlib: Client is not authorized to connect to Server

Hi,

I have two servers ,Server1(HPUX)which is a VNC server and Server2 (AIX)Client.
The DBA needs to deploy some software on server 2 and they can’t because of having no X server to run the oracle installer.
The Oracle instructs to run

1.xhost + (On Server1)--Success
2.xclock --Success
3.On the Server2(AIX) they want to export the display as "export DISPLAY=server1:99.0" and run xclock, which is failing with the error as below
# export DISPLAY=server1:99.0
root@server2:/
# xclock
Xlib: connection to "server1:99.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: server:99.0.

Can anyone help me on this?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Xlib: Client is not authorized to connect to Server

Shalom,

Oracle installer requires X.

Try this:

ssh -X hostname

If I connect to Linux I use gnome-terminal

That should give you X windows assuming your xfs process is running.

/sbin/init.d/xfs start
vi /etc/rc.config.d/xfs
Change the first variable to 1 for auto start of xfs font server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ricky2
Frequent Advisor

Re: Xlib: Client is not authorized to connect to Server

Hi,

I have started the xfs but it does not come out with any process and I cannot grep the xfs process

/sbin/init.d/xfs start
Server01:/sbin/init.d > ps -ef | grep xfs
root 9173 4899 1 12:23:41 pts/4 0:00 grep xfs

Alex Glennie
Honored Contributor

Re: Xlib: Client is not authorized to connect to Server

try this ...

server1> xhost +
server1> rlogin server2
server2> export DISPLAY=:0:0 (I can't understand where 99 comes from ?)
server2> xclock ?

if it too fails .....
copy /usr/dt/config/Xconfig
/etc/dt/config/Config

edit line :

Dtlogin*Authorise : False

restart Xserver on Server1

try again ?
PeterWolfe
Respected Contributor

Re: Xlib: Client is not authorized to connect to Server


>server2> export DISPLAY=:0:0 (I can't understand where 99 comes from ?)

The 99 is supposed to be the display number
you used when starting the vncserver.
For example:
vncserver :99

If you are not sure what display # you used,
use ps to find the Xvnc process and look
at the command line. It would be something
like:

/opt/realvnc/bin/Xvnc :99

Sounds like your vncserver display is not 99.
It might be :0 as the previous post suggested. Usually the local X server is :0 (if you are running a local X server) and the vncservers would start at :1 and go up
from there. Whatever the display number is,
export DISPLAY=server1:.0
on the AIX side and you should be all set.