Operating System - HP-UX
1754014 Members
7335 Online
108811 Solutions
New Discussion юеВ

xterm Xt error: Can't open display

 
Rajalakshmi Natarajan
Occasional Contributor

xterm Xt error: Can't open display

Pls help me in opening a new terminal.The script which i am running will open a new Text editor and display a message.

Followed the procedure to set xterm.
>export xterm=vt100
>xterm&
[1] 10145
>xterm Xt error: Can't open display:
[1] + Done(1) xterm&

pls help me on this
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: xterm Xt error: Can't open display

Have you exported DISPLAY?
Have you done xhost to allow this system to display where $DISPLAY is set?
Rajalakshmi Natarajan
Occasional Contributor

Re: xterm Xt error: Can't open display

pls tell me how to set the xhost and display
Dennis Handly
Acclaimed Contributor

Re: xterm Xt error: Can't open display

>tell me how to set the xhost and display

What is the name or IP address of the machine where you want to send the window?
export DISPLAY=machine:0.0
And on that machine you need to do a "xhost source-machine", the machine where you invoked xterm.
Torsten.
Acclaimed Contributor

Re: xterm Xt error: Can't open display

What is your local system? A PC by chance? Running what (linux/windows)?

This is important.

In general you get the IP address of your local system (e.g. 1.1.1.1 - example!!!), connect to a remote system and re-direct the Xdisplay back to your local system.

export DISPLAY=1.1.1.1:0.0

That's it.
It may vary for different local systems, of course.

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!