Operating System - HP-UX
1834090 Members
2089 Online
110063 Solutions
New Discussion

Re: Xterm can't open display %s PROBLEM

 
Augusto_5
Occasional Contributor

Xterm can't open display %s PROBLEM

Hi, I'm having trouble running xterm on an HPUX 11.23 box.
I've tried xterm -display win32ip:0.0 and I get the Xterm can't open display %s error.
Any help? I want to access thru a Win2k machine.
Thanks in advance!
9 REPLIES 9
Dave Hutton
Honored Contributor

Re: Xterm can't open display %s PROBLEM

Do you have any software packages installed on your Win2k machine? Like Exceed?

Devender Khatana
Honored Contributor

Re: Xterm can't open display %s PROBLEM

Hi,

The session is not always IP:0.0. It sometimes become 1.0 , 2.0 or so. So if you are logged into one system and then went to another through telnet or rlogin then check DISPLAY set on current system to which you logged in by

#set |grep DISPLAY

Exact settings is displayed. Then export DISPLAY on the other node accordingly by

#export DISPLAY=win32IP:x.0

HTH,
Devender
Impossible itself mentions "I m possible"
Augusto_5
Occasional Contributor

Re: Xterm can't open display %s PROBLEM

I've tried set |grep DISPLAY but nothing displayed. I'm accesing the HPUX thru a telnet login. I have root privileges but I don't have direct access to the console, only telnet.
Hope this helps!
Paul Cross_1
Respected Contributor

Re: Xterm can't open display %s PROBLEM

As dave mentions, you need an X server on your local machine (cygwin, exceed, reflection X). You should set the DISPLAY environment variable (or use -display like you did) and xhosts on the server side should allow the client to connect (ie "xhosts +" or "xhosts clientname").

What I do is run cygwin's X server. From a local cygwin xterm I use ssh -X to forward X from my PC to the unix machine I'm trying to connect to. This is nice because ssh does all the DISPLAY work for you. Keep in mind though that "X11Forwarding yes" must be set on the unix machine's sshd_config file.

In case you are confused about the term server, the X software on your PC is the server in this case.
Augusto_5
Occasional Contributor

Re: Xterm can't open display %s PROBLEM

I want to use Xwin32 6.1.3. I've tried everything you quoted above except changing the ssh_config file. I'll try that.
Thanks!
Paul Cross_1
Respected Contributor

Re: Xterm can't open display %s PROBLEM

Make sure you are changing the sshd_config file, not the ssh_config file.
Alzhy
Honored Contributor

Re: Xterm can't open display %s PROBLEM

Augusto..

If you're already using your PC's IP address for your DISPLAY envar - then the issue is probablyu with security on your PC X Server end (similar to doing a xhost on a true X display).

Try to find out how to set that on yur X-Windows software on your PC as it is implemented differently accross flavours of PC X-Servers (i.e. KeaX, ReflectionX and eXceed..)

Hakuna Matata.
Augusto_5
Occasional Contributor

Re: Xterm can't open display %s PROBLEM

Ok, thank you.
I've checked and had "X11Forwarding yes".
Paul Cross_1
Respected Contributor

Re: Xterm can't open display %s PROBLEM

Just so we are clear there are 2 solutions mentioned here.
1) tunneling X through ssh.
2) good old plain text X client-server.

You do not have to worry about allowing xhost, or setting your display if you are using method 1. If you are using method 2, you must both allow xhost connections AND set the DISPLAY environment as follows (assumes you are on display 0 screen 0):

sh, ksh, bash:
export DISPLAY=use.your.ip.here:0.0

csh, tcsh:
setenv DISPLAY use.your.ip.here:0.0

to enable xhosts on xwin32:
Under Options, XHosts, add your ip number (this info garnered from google).

I have to say the above error is usually a result of incorrect xhosts permissions.

-paul