Operating System - HP-UX
1830939 Members
2713 Online
110017 Solutions
New Discussion

Re: problem with the hostname

 
ivan petkov
Occasional Advisor

problem with the hostname

Hello , I just installned HPUX11.11,
When I tried to start the CDE using xmanager there was a problem.
refering to Xerror logs:
# cat /var/dt/Xerrors

Sat Nov 11 13:06:50 2006
error (pid 2737): Hostname hpux is invalid. Setting DISPLAY to ':0'

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

Sat Nov 11 13:06:50 2006
error (pid 2737): Server unexpectedly died

Sat Nov 11 13:06:55 2006
error (pid 2737): Server for display :0 can't be started.
#



# hostname
hpux
#

# nslookup hpux
*** Warning - the local domain is not set.
*** Either hostname should be a domain name,
*** the domain should be specified in /etc/resolv.conf,
*** or the shell variable LOCALDOMAIN should be set.

Name Server: ns2.evrocom.net
Address: 217.10.240.242

Trying DNS
Trying NIS
looking up FILES
Name: hpux
Address: 192.168.0.9

#

But
# ping hpux
ping: unknown host hpux
#
# cat /etc/hosts |grep hpux
192.168.0.9 hpux
#

How I can fix this problem?
Thank you in advance.
5 REPLIES 5
Yang Qin_1
Honored Contributor

Re: problem with the hostname

Hi, it seems you didn't setup your DISPLAY environment. run "echo $DISPLAY" if you got nothing then run:

export DISPLAY=:0.0

is either the host name or IP where you run xmanager.


Yang
ivan petkov
Occasional Advisor

Re: problem with the hostname

I used broadcast feature of xmanager. I just fixed the resolv problem it was from /etc/nsswtich.conf
Steven E. Protter
Exalted Contributor

Re: problem with the hostname

Shalom,

A new server on a non-routable network should not show up on a DNS based query unless its been added to the DNS database.

See /etc/nsswitch.conf for host name resolution order.

Note that broacast of X hosts is very often blocked by switches and firewalls in a corporate environment.

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
siva0123
Trusted Contributor

Re: problem with the hostname

As suggested using nsswitch file should resolve the issue.

Thanks,
Siva
shanmuhanandam
HPE Pro

Re: problem with the hostname

Hi Ivan,

Can you try the attached one.


regards,
shanmuha.
I am an HPE Employee

Accept or Kudo