Operating System - HP-UX
1833780 Members
2442 Online
110063 Solutions
New Discussion

Remote X from Linux to HP 9000

 
Vermissa
Occasional Advisor

Remote X from Linux to HP 9000

Hello,

I am having a problem getting graphics to display on my Linux box from my HP 9000 (no graphics card).

I am running Redhat 7.1 with gnome. Here is the process I am using:

1. Start a terminal from Gnome (X Window is working locally).
2. Use rlogin to connect to the HP 9000 (as root).
3. Export DISPLAY=:0
4. Type either xterm or xclock.
5. I get the following error:
Can't open display: :0
Couldn't find per display information.

I have also tried to use,
X -query
from the command line of Linux (init 3). But, I get the same error.

Any information you can give me would be a great help.

Linux, Unix and HP forum newbie :)
Vermissa
17 REPLIES 17
Joseph C. Denman
Honored Contributor

Re: Remote X from Linux to HP 9000

export DISPLAY=:0.0

That should do it.


...jcd...
If I had only read the instructions first??
John Poff
Honored Contributor

Re: Remote X from Linux to HP 9000

Hello,

Can your HP box resolve the hostname? Try running 'nslookup' and typing in your Linux hostname. If it can't resolve it that might be your problem. Also, you can try using the IP address of your Linux box in your DISPLAY setting instead the hostname. If that works, that is another clue. You might just need to add the hostname and IP address of the Linux box to your /etc/hosts file, or to your DNS, whichever you are using.

JP


Alex Glennie
Honored Contributor

Re: Remote X from Linux to HP 9000

Try adding the ip addresses of each "remote" host to /etc/hosts ? Sounds as if hostname resolution is playing a part here hence its unable to open the display ?

ie add ip of linux host to /etc/hosts on the hp9000 system and vice versa .... or just check with nslookup first ?
Sanjay_6
Honored Contributor

Re: Remote X from Linux to HP 9000

Hi Vermissa,

Have a look at the thread below.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x077d87dc4d7dd5118ff00090279cd0f9,00.html

Hope this helps.

thanks
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

Thank you for your reply.

I tried that and got the same error, save for it saying :0.0 instead of :0

Vermissa
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

John and Alex,

I checked the host name resolution with nslookup. It worked correctly. I can also 'ping' the Linux box using both the IP address and the host name.

Vermissa
John Poff
Honored Contributor

Re: Remote X from Linux to HP 9000

Let's try something from your Linux box. Make sure that your Linux box can resolve your HP box. Then, try this from your Linux box:

xhost +

Then try it again.

JP
Alex Glennie
Honored Contributor

Re: Remote X from Linux to HP 9000

Can you try : nslookup on the ip_address(es) ? or add linux ip to /etc/hosts ?

fyi : can't find per display information suggests it's hostname / ip related. If it were xhost or xauth related the error normally reads host not authorised to connect to DISPLAY blah blah ?
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

John and Alex,

I cannot get the Linux/HP 9000 IP address or host names to resolve on the linux box using nslookup.

When I use nslookup , I get the error:
** server can't find .: NXDOMAIN

When I use nslookup , I get the error:
** server can't find .in-addr.arpa.: NXDOMAIN

Do I have my Linux box configured wrong?

Vermissa
John Poff
Honored Contributor

Re: Remote X from Linux to HP 9000

You either need to add the IP address and hostname for the HP box into the /etc/hosts file on your Linux box, or else you'll need to setup DNS resolution for the Linux box. The first one is the easiest fix. Just edit /etc/hosts and add an entry for the HP box, and give that a try.

JP
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

John,

It is in my hosts file. In fact I can ping every name in my hosts file, but when I try to use nslookup on any of them, I get the errors listed above.

Vermissa
Santosh Nair_1
Honored Contributor

Re: Remote X from Linux to HP 9000

Do you have an /etc/hosts.conf file on your linux box and if so does it read:

order hosts,bind
multi on

This tells the linux box to use local files and then DNS to do name resolution.

-Santosh
Life is what's happening while you're busy making other plans
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

Santosh,

No, I did not have that file. I added it, exactly as you said. Then I rebooted the linux box and tried nslookup again. The resulting errors were the same.

Vermissa
Santosh Nair_1
Honored Contributor

Re: Remote X from Linux to HP 9000

You didn't need to reboot the machine for this file to take affect...should have mentioned that before I guess.

Can you do nslookups on ANY hosts, i.e. even those not in your domain? If not then I would look at the /etc/resolv.conf file and make sure that looks okay. It should have entries as the following:

domain
nameserver
nameserver

where would be your domain name, e.g. hp.com


-Santosh
Life is what's happening while you're busy making other plans
David Parraguez
Visitor

Re: Remote X from Linux to HP 9000

In the Linux Box (before rlogin command):

xhost +

DPC
Joseph C. Denman
Honored Contributor

Re: Remote X from Linux to HP 9000

Hi Vermissa,

I'm not a linux guy, but it sure sounds like the problem is on the linux box with a resolution issue. If you have the ip and hostname in your /etc/hosts file of the hp box on your linux box, then nslookup should find the hosts. That is if it is looking the the hosts file. I'm not sure what controls this on linux, but on hp, it is the /etc/nsswitch.con. On the linux box, you need to tell it to check the hosts file before using DNS. Like I said, I'm not sure what file that is on linux.

Once you get your resolution issue fixed, I bet you will be XXXXXing away.

Hope this helps,

...jcd...
If I had only read the instructions first??
Vermissa
Occasional Advisor

Re: Remote X from Linux to HP 9000

Santosh and Joseph,

I believe you are right. I think the problem is in my Linux box and has something to do with name resolution. I will start looking into why my linux is not working correctly.

Thank you all for helping me narrow this down :)

Vermissa