1820270 Members
3349 Online
109622 Solutions
New Discussion юеВ

Export DISPLAY

 
Pinki Meggi
Frequent Advisor

Export DISPLAY

Hi everyone,

Im working on HP-UX 11.11. I need to connect to machine from another one that has a linux system.
Im using telnet, to connect that machine from another one and i need a X terminal. For that, i have export the DISPLAY.
But when i try to open a x terminal it says:
# xterm Xt error: Can't open display: %s

Need help to solve this, please.

Thanks in advance.

Best Regards

Pinki
8 REPLIES 8
Fabian Brise├▒o
Esteemed Contributor

Re: Export DISPLAY

Hello pinki.
How are you esporting DISPLAY. ?

What commands are you using to do it ?.
Knowledge is power.
Pinki Meggi
Frequent Advisor

Re: Export DISPLAY

Hi, thanks for ur attention.

Im exporting DISPLAY with:
export DISPLAY=192.168.13.30:0.0
where 192.168.13.30 is the IP of the machine that have X terminal.

I also have done the command "xhost +" on the machine that have X terminal, to accept external connections.


Pinki
Fabian Brise├▒o
Esteemed Contributor

Re: Export DISPLAY

Hello.
For exporting DISPLAY, i use the following command.

DISPLAY=105.102.35.24:0; export DISPLAY


Hope this helps
Knowledge is power.
Fabian Brise├▒o
Esteemed Contributor

Re: Export DISPLAY

Also pinki, chech this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1052941
Knowledge is power.
Yogeeraj_1
Honored Contributor

Re: Export DISPLAY

hi pinki,

can you try to ssh or telnet to the linux machine and do the following:



export DISPLAY=192.168.13.30:0.0
xclock &


do this work?

revert.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Pinki Meggi
Frequent Advisor

Re: Export DISPLAY

Hi,

No, it does not work. It says:
Error: Can't open display: 192.168.13.30:0.0

It seems there is a firewall problem or the port is close at 192.168.13.30 machine. I have tried to export from another machine with Linux and it works fine.

Anyway, thank u very much for ur attention.

Best Regards

Pinki
Yogeeraj_1
Honored Contributor

Re: Export DISPLAY

hi,

On the linux machine, can you try to issue the following command:

xhost +box1

where box1 = ip address of the hp-ux machine



kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Pinki Meggi
Frequent Advisor

Re: Export DISPLAY

Same error.


Suppose Machine A = 192.168.13.30 with Ubuntu.

Machine B = 192.168.13.50 with red Hat
Machine C = 192.168.2.20 with HP-UX.

I have done:
1-> xhost +192.168.13.50 on machine A;
2-> Open a ssh session to machine B;
3-> export DISPLAY=192.168.13.30:0.0
4-> xclock &
Result: Error: Cant open display: 192.168.13.30:0.0

Same error...