1842297 Members
2889 Online
110188 Solutions
New Discussion

Xterm

 
sujeet joshi
Frequent Advisor

Xterm

Hi,

After changing my server ip in hp9000 hpux11i server,I am facing one problem .

I am not able to connect remotely from xmanager.
I am getting following error.
xterm Xt error: Can't open display: %s

is it any FW issue?

Please help me .

Sujeet
5 REPLIES 5
RAC_1
Honored Contributor

Re: Xterm

If there is a filrewall between PC and hp-ux machine, some ports need to be opened. Does it work when you set display to your PC's ip address. Also does nslookup work on ip address and on host name?
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: Xterm

Shalom,

Could be a firewall, could be the font server.

vi /etc/rc.config.d/xfs
set first variable to 1 so the font server auto starts. This is not the default for HP-UX

/sbin/init.d/xfs

Too check for firewall issues:
tail -f /var/adm/syslog/syslog.log

Then try an X connect. You should see some network activity. If not, check the firewall.

You may need to install and use tcpdump to check network activity.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Xterm

You are using some sort of automatic Xwindow connect software and the %s is supposed to be set to your display's IP address. Since there are so many Xwindow emulators and methods to connect automatically, start by manually starting an xterm window. Assuming you are on a PC or perhaps a Linux box, remember that xterm runs on the remote HP-UX machine so you first have to telnet to the HP-UX machine. Once you are connected, verify that your local IP address is the same as reported by the command

who -muR

If it does not, there is some sort of address translation taking place. Now it gets tricky. From the HP-UX machine, check that you can ping back to your PC. If not, you'll need help from your network administrator. If the address is the same as your PC, then set the DISPLAY variable to that address with :0 appended as in:

export DISPLAY=12.34.56.78:0

Now start xterm on the HP-UX box. It should connect to your local Xwindow emulator. If not, your network may disallow port 6000 connections. Another common problem is your local PC's firewall may disallow Xwindcow connections. This is fairly comon since Xwindows is an external protocol.


Bill Hassell, sysadmin
John_Hancock
Trusted Contributor

Re: Xterm

By default OOB HP-UX will only allow X windows to display locally. To allow remote display you will need to run the xhosts command. This is a security feature. To allow display to all hosts use "xhost +" or to individual displays "xhost + hostname" and to display the status xhost without options.

One you do this set the DISPLAY variable as per aove and it should all work.
GBR
Regular Advisor

Re: Xterm

Using the command "xhost +" on your client machine is more of a security risk than "xhost + hostname" since any host can display to your machine. I recommend using "xhost + hostname".

Goodluck,
GBR