1833777 Members
2120 Online
110063 Solutions
New Discussion

X11

 
Ravikant
Advisor

X11

X11 is not working in Hp-UX.

Can not open a display

Thanks & Regards,
Ravikant B.
14 REPLIES 14
T G Manikandan
Honored Contributor

Re: X11

X11 is not working from client or X11 on the server side.

Please run dr_dt and check out the issues in bringing up X11 with server side. you need to have the X11 bundles installed on the server.
Torsten.
Acclaimed Contributor

Re: X11

"not working" is always a bad description of a problem. Could you please explain what are you trying to do?

(e.g. re-directing the X-display from the server running hp-ux version xy to your windows pc ...).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ravikant
Advisor

Re: X11

I have done the changes in /opt/ssh/etc/sshd_config file with follwoing details

#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

and restarted the secsh services ..

Then exporting display to local host.

But it is showing "can't open display"

Pls suggest...

Regards,
Ravikant B.
Torsten.
Acclaimed Contributor

Re: X11

local host means your PC? Any X server software running? Any firewall installed?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven Schweda
Honored Contributor

Re: X11

Give us a break.

What are your fingers touching?
What are you looking at?

Some Windows system, running some kind of X
server? An HP-UX workstation? Some other
thing about which we know nothing?

Is there an HP-UX system involved? How?

> [...] sshd_config [...]

So, SSH is involved somehow? How?

What, exactly, are you doing? What, exactly,
happens when you do it?

> Then exporting display to local host.

What is "local host"? How, exactly, are you
"exporting display"?

> But it is showing "can't open display"

What, exactly, is "it"?

echo $DISPLAY


If you provide no useful information about
your situation, then you would do better
calling a psychic hot-line.
Ravikant
Advisor

Re: X11

Is there an HP-UX system involved? How?

> [...] sshd_config [...]

>> Hp-UX 11.31 OS. File is located in /opt/ssh/etc/sshd_config
In this file I have modified with required details.

So, SSH is involved somehow? How?

>> Using KAEX for displaying window on destination on one of the windows server.




What, exactly, are you doing? What, exactly,
happens when you do it?

> Then exporting display to local host.

What is "local host"? How, exactly, are you
"exporting display"?

>> DISPLAY=xx.xx.xx.xx:0.0
export DISPLAY



> But it is showing "can't open display"

What, exactly, is "it"?

echo $DISPLAY

>> apt2h004 # echo $DISPLAY
10.213.164.68:0.0
Torsten.
Acclaimed Contributor

Re: X11

can't open display

The client (the hp-ux server) is either not allowed to connect to the X server running on your PC or cannot reach it.

Check your X server application on your PC.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Avinash20
Honored Contributor

Re: X11

1. If you like to open the display remotely from windows, you need an X-emulation software
eg: X-manager, REfection-X

2. You need to define the DISPLAY variable of where you like to have the display

eg: You need to define the DISPLAY variable of Windows system and not UNIX if are accessing it from WIndows.

3. CDE is not installed by default on 11.31

# swlist -l product| grep CDE

If you satisfy all the above steps, please let us know the error which you are getting.

4. if u are getting X11 forwarding errors, make sure /etc/nsswitch.conf file has the following entries

hosts: files dns
ipnodes: files dns

If this file does not exist. copy it

# cp /etc/nsswitch.files /etc/nsswitch.conf
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Steven Schweda
Honored Contributor

Re: X11

> >> DISPLAY=xx.xx.xx.xx:0.0
> export DISPLAY

Great. Be sure to hide any useful
information. We wouldn't want to make this
too easy.

What was it _before_ you set it?

> >> apt2h004 # echo $DISPLAY
> 10.213.164.68:0.0

And is "xx.xx.xx.xx" actually
"10.213.164.68"? Do you know which computer
has that IP address? I sure don't.

> >> Using KAEX [...]

I don't know what that is, but I'll assume
that it's some kind of X for Windows. That
does not tell me how you create the session
on the HP-UX system. What part of "What,
exactly, are you doing? What, exactly,
happens when you do it?" was not clear?

If you're using SSH to connect to the HP-UX
system, are you also asking for X forwarding?
Normally, with SSH, you don't need to set
DISPLAY, because the SSH software can do it
for you.

> The client (the hp-ux server) is either not
> allowed to connect to the X server running
> on your PC or cannot reach it.

Those are also possible. I'd expect SSH X
forwarding to avoid those kinds of problems,
too, however.
Ravikant
Advisor

Re: X11

Great and special thankx to Avinash Rao who helped me to resolve this issue.
Suraj K Sankari
Honored Contributor

Re: X11

Hi,

Please assign some points who give there valuable time for your problem.

To know how to assign points please go through the below link.


http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj
Ravikant
Advisor

Re: X11

I am not able to give the ratings in fourm.

I would like to give 10 to Avinash Rao for his help.

Ravikant B.
Dennis Handly
Acclaimed Contributor

Re: X11

>I am not able to give the ratings in forum.

See the FAQ:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
Steven Schweda
Honored Contributor

Re: X11

> [...] to resolve this issue.

As a favor to anyone who might find this
thread in the future, it might be nice if you
revealed what the actual problem was, and how
you solved it.

(Or how you think that you solved it. It's
not entirely clear to me that using SSH to
connect to a system, and then using an
insecure X connection constitutes a real
"solution", but if you're happy, then who am
I to argue?)