Operating System - HP-UX
1833796 Members
4935 Online
110063 Solutions
New Discussion

Re: xterm from linux to hp is not working.

 
SOLVED
Go to solution
Sachin Patel
Honored Contributor

xterm from linux to hp is not working.

Hi All,
I am trying to open xterm windows to local HP workstation. All system is 11.00. 712. It works only for two Workstation. So the problem is on HP-UX side. I can open dtterm windows from another HP systems without problem.

1. Telnet to linux system from 712.
2. set display = ip or name
3. run xterm and I received errors
Xlib:connection to "ceres:0.0" refused by server
Xlib Client is not autorized to connect to server
Xlib Xt error: can't open display
(It works on other systems so i thought it might be permission on local system)

Then I run on local system.
#local> xhost + (error again)
Xlib: connection to "ceres:0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key

I try running xauth program and choose list it display something.

Help me Experts.

Sachin
Is photography a hobby or another way to spend $
11 REPLIES 11
Vincent Fleming
Honored Contributor

Re: xterm from linux to hp is not working.

it sounds like the user running xhost isn't the same user that started the X daemon. Check who the owner of the X process is with the ps command. (ie: ps -ef | grep X) My guess is that X is running as root, and you aren't when you run the "xhost +", or something like that. When you get the xhost command working, the xterm (dtterm or whatever) will work.

Good luck!
No matter where you go, there you are.
Alex Glennie
Honored Contributor

Re: xterm from linux to hp is not working.

I think this is user based Xaccess not host based so your reference at Xauth was correct.

What you need to do

Extract the cookie on the hp system from the
$HOME/.Xauthority file

# xauth extract /tmp/auth4 hp_system:0

Transfer the file with the cookie to linux system

On linux system, merge the cookie for hp_system:0
into $HOME/.Xauthority:

linux>xauth merge /tmp/auth4
linux>xauth list

both systems should be listed : also see man Xauth

or this may work -> disable Xauth under CDE by editting : /etc/dt/config/Xconfig wrt Dtlogin*authorise : False nb you may need to copy this file from /usr/dt/config.

For the change to take effect you will need to restart the Xserver. currently ps -ef ? grep X on the hp probably comes back with a -auth string ? If yes the above will disable this.
Sachin Patel
Honored Contributor

Re: xterm from linux to hp is not working.

Hi
1. I run Xauth and xhost + as root.

Hi Alex,
I do not have .Xautority file in /home/. My home for users are nfs mount. same home area same account works on one HP (712) system.

I do not have .Xautority at /home/ on linux system either.

Sachin
Is photography a hobby or another way to spend $
Sachin Patel
Honored Contributor

Re: xterm from linux to hp is not working.

Hi
I try xauth extract and then xauth merge on another system. NO LUCK.

Sachin.
Is photography a hobby or another way to spend $
Shannon Petry
Honored Contributor

Re: xterm from linux to hp is not working.

The LINUX Xterm does not support external lookups for display/DISPLAY, nor does it support a -d option! You must specify "-display hostname:X" when issuing the xterm command to have it launch to a different display!

I.E.
xterm -display myhost:0 &


Regards,
Shannon
Microsoft. When do you want a virus today?
Sachin Patel
Honored Contributor

Re: xterm from linux to hp is not working.

Hi Shannon,
I try that too same error message. NO LUCK
Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: xterm from linux to hp is not working.

Hi Sachin,

Are you logged in your HP workstation as a user or root?
If logged in as user then issue xhost+ as that user.
Also are you able to export the DISPLAY from other HP workstations to this workstation?
Is the $DISPLAY on the linux box pointing to your HP workstation when you are logged in to you linux machine (check export -p|grep DISPLAY or echo $DISPLAY).

Can you export the DISPLAY from the linux machine to any other workstation?

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
Alex Glennie
Honored Contributor
Solution

Re: xterm from linux to hp is not working.

Appologies for not replying sooner .... busy yesterday pm :(

Did you try my suggestion on /etc/dt/config/Xconfig at all on the HP systems ?

I'd also make 100 % certain hostname resolution works both forwards and backwards on all hosts involved.
Bill McNAMARA_1
Honored Contributor

Re: xterm from linux to hp is not working.

xhost +
should not give an error on the local box..

Have you tried any other applications such as xclock?
Do you have the X ports 6000/60001 blocked?

Try running xscope to determined and xlib errors..
http://www.hp-uxconsulting.com/hpux/x11/xscope.html

Later,
Bill
It works for me (tm)
Sachin Patel
Honored Contributor

Re: xterm from linux to hp is not working.

Thanks Friends,
Alex I spoke too early. I add MIT-MAGIC-COOKIE from HP to Linux system and reboot the HP system. I didn't reboot the system yesterday. Now it is working fine.

Hi Bill. I like that site. xhost + should not generate error but it was I don't know why? Now it is not generating error.

Sachin
Is photography a hobby or another way to spend $
Alex Glennie
Honored Contributor

Re: xterm from linux to hp is not working.

As I said there are 2 types of Xauthority : host based as in xhost, user based as in .Xauth ... they are separate mechanisms .....