1834396 Members
2898 Online
110067 Solutions
New Discussion

Xterm problem on HP-UX

 
SOLVED
Go to solution
Trygve Lauritzen
New Member

Xterm problem on HP-UX

I've moved a server to a new network. It doesn't have a DNS-server.

I can't get Xterm from my PC to work.

Is this a DNS-problem or a FireWall problem?

When i type Xterm on my HP-UX server I get the following mesage:

xterm
Error: Can't open display: 194.213.161.246:0
Error: Couldn't find per display information
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Xterm problem on HP-UX

1) Insure there is ping connectivity between your box and the HP-UX box. If ping is enabled use some other method to insure that the two boxes can talk to each other.

2) On the HP-UX box, set the DISPLAY variable to the IP address of your workstation.

DISPLAY=192.213.161.264:0.0
export display

3) Make sure the /etc/rc.config.d/xfs font server is set for 1 which means auto start.

4) Perhaps manually start the font server: /sbin/init.d/xfs start

Try again.

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
Trygve Lauritzen
New Member

Re: Xterm problem on HP-UX

Thanks, but it didn't help.

I have a connection to the box on telnet and ssh. Which port does xterm use?
Trygve Lauritzen
New Member

Re: Xterm problem on HP-UX

When I use Client Wizard it seems like everything is OK. I get Connection open. Command is: /usr/bin/X11/xterm -sb -ls -display 194.213.161.246:1.0&

Is that right?
H.Merijn Brand (procura
Honored Contributor

Re: Xterm problem on HP-UX

you could try if ssh supports X forwarding

# ssh -XCt the_other_box

Enjoy, Have FUN!
Enjoy, Have FUN! H.Merijn
CAS_2
Valued Contributor
Solution

Re: Xterm problem on HP-UX

I assume a Xserver is running in your PC.

(1) Check your Xserver is running.
Xservers accepts connections through TCP port 6000.

Then, open a CMD windows in your PC and type:

netstat -an | find ":6000"

It should print a line whose last word is "LISTENING".

If not, you need to start an Xserver.

(2) Open a telnet session and run in your HP-UX server:

$ export DISPLAY=194.213.161.246:0
$ xterm &
$ netstat -an | grep '194.213.161.246.6000'

Last command should print a line. Last word in this line reports the status of Xterm connection. I guess it might show SYN_SENT (or any other different than ESTABLISHED). In this case, this is due to anything (for instance, a firewall) is preventing the Xterm connection.

Good luck
Trygve Lauritzen
New Member

Re: Xterm problem on HP-UX

Thank's. I guess opening the FW on port 6000 is the solution. :-)
H.Merijn Brand (procura
Honored Contributor

Re: Xterm problem on HP-UX

Then please assign the 10 points to CAS' post as he deserves that.

/me just learned something new
Not that I'm going to use that, but 'find' on windows is 'grep' on *nix, except when you have installed a unix toolkit like cygwin.
How confusing :)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Bill Hassell
Honored Contributor

Re: Xterm problem on HP-UX

And just a note about opening port 6000 on your firewall: Xwindows can be subverted very easily. For instance, a hacker could put a window on your screen and ask you to login, but since it looks like a normal window, you could give away your password(s). Xwindows can 'see' (or capture) windows that are displayed on your PC or other Xwindows display server. Be sure to read carefully how to secure Xwindows outside of a local network.


Bill Hassell, sysadmin