Operating System - HP-UX
1827283 Members
3581 Online
109717 Solutions
New Discussion

Re: hpterm/xterm display issues on HP-UX

 
Myrianthe
Occasional Contributor

hpterm/xterm display issues on HP-UX

Hi folks,

When trying to start both hpterm and xterm to display on the remote display (even an HP-UX 11.0 display) these messages came:

Error: Can't open display: .com:0.0
Error: Couldn't find per display information

When starting dtterm, no such message came and the terminal window appeared without problems.

Could it be some environment setting that is upsetting X somehow?

Thanks,

Myrianthe
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: hpterm/xterm display issues on HP-UX

You need to issue the 'xhost' command on the machine you are displaying to.

On the machine:

# xhost remotemachinename

or to allow ALL X connections:

# xhost +

# man xhost
for more details
Dani Seely
Valued Contributor

Re: hpterm/xterm display issues on HP-UX

Myrianthe,
Patrick's solution is what you are looking for. I would caution you though if you are working in a secure environment not to use the 'xhost +' command. If you are not working in a secure environment you are ok.

If 'xhost' does not solve your issue, another problem might be causing this if you are behind a firewall and the display is not being mapped correctly back to your system. What kind of network is this? Is there a firewall? Are your systems on the same subnet?

Also, before starting the session, it's important to make sure you can reach the remote host. Try pinging the remote host, and if that works try starting a telnet session with the remote host.

Oops, sorry. Just re-read your question and I now understand that you don't have a problem with dtterm, so forget the previous two suggestions, you will be fine with 'xhost' ... I left the other paragraphs in my reply in case someone else has the same problem but neither term works.
Together We Stand!
Christian Deutsch_1
Esteemed Contributor

Re: hpterm/xterm display issues on HP-UX

Dear Patrick and Dani,

xhost can't be the problem, because dtterm works. Looks like you missed that when reading Myrianthe's post.

The only guess I can come up with right now is that an HP-UX 11.11 OS-patch maybe broke something?

Kind regards, Christian
Yeshua loves you!
Patrick Wallek
Honored Contributor

Re: hpterm/xterm display issues on HP-UX

Christian,

I beg to differ! The error message the Myrianthe is getting is a classic xhost permissions issue.

How about we let Myrianthe decide if it will work or not? Hmmmm?

The thing is, what the problem is depends entirely on how EXACTLY the xterm, hpterm, dtterm sessions are being started.

I DID read the ENTIRE post. I did NOT miss the piece about the dtterm. I took what information was there and offered the best advice I could based on the information given. Since I typically see the errors given when there is an xhost issue, that is the advice I gave.
Marvin Strong
Honored Contributor

Re: hpterm/xterm display issues on HP-UX

The xhost advice seems correct to me.

# xhost .com





Myrianthe
Occasional Contributor

Re: hpterm/xterm display issues on HP-UX

Hi!

Thanks for all the responses. Well I failed to mention that I do run "xhost +" before executing the application on the remote host. And I appologize for the confusion caused.

I can see the system (ping, telnet)no problem. Not sure what could be causing this message.

I receive this error running OVO/Unix (version 7 and 8) application remotely from an HP-UX 11.11 OS.

I have another question, are there any other applications that come with HP-UX that run hpterm or xterm? I would like to test other applications to see if this error occurs as well with them when executed remotely on another system.

Any other suggestions?

Thanks,

Myrianthe
Mel Burslan
Honored Contributor

Re: hpterm/xterm display issues on HP-UX

Myrianthe,

I remember participating discussion on this topin on the OpenView forums. This suggestion may be totally off-kilter but, did you try moving xterm and dtterm out of the way and symbollicly link these executables to dtterm as it seems to work for you ?

Just a suggestion.
________________________________
UNIX because I majored in cryptology...
Mike Stroyan
Honored Contributor

Re: hpterm/xterm display issues on HP-UX

The different behavior is probably because hpterm and xterm are linked with the older /usr/lib/libc.1. The gethostbyname behavior is different for programs such as dtterm which are linked with the newer libc.2.

Read "man nsswitch.conf" and have a look at the /etc/nsswitch.conf file on the system that you run hpterm on. You may need to change the file to add criteria like "[NOTFOUND=continue TRYAGAIN=continue]" that are the default for newer programs. (You may need to create an nsswitch.conf file if there isn't one yet.)
Dani Seely
Valued Contributor

Re: hpterm/xterm display issues on HP-UX

Hello Myrianthe,
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!
Together We Stand!