1833161 Members
2677 Online
110051 Solutions
New Discussion

CDE

 
Habib_4
Advisor

CDE

Hi guys,

I have purchased a very basic HP-UX unix system, and am finding that I am unable to login to the Common Desktop Environment.
I was told by somebody that it was because my machines IP address was set to the loopback address? 127.0.0.1?

Please can somebody advise me how to change this.

I don't want any clever answers like: "Oh read this and learn that!"
All I want is a concrete answer so that I can log into the CDE properly.
I aint very good at UNIX and don't profess to be and would therefore appreciate some help and courtesy from you experts.....
12 REPLIES 12
Peter Godron
Honored Contributor

Re: CDE

Hi,
could you please provide a bit more information as to 'unable to login'.
What are the symptoms/error messages ?
Do you get the CDE screen requesting username/password?
rariasn
Honored Contributor

Re: CDE

Hi Habib,

To change IP address, use next command:

# set_parms ip_address

rgs,

ran
sajeer_2
Regular Advisor

Re: CDE


Hi Habib,
Did you configure ip address for your server?.
If no,run
#set_parms initial

This will ask you all the details like ip address and other initial parameters.

Once you reboot the server,Then edit /etc/hosts
to enter fully qualified name.example,
127.0.0.1 localhost loopback
ipaddress testdb2.hp.com testdb2

also check /etc/nsswitch.conf and change hosts line as follows

hosts: files dns [NOTFOUND=return]

Now either restart the server or run cde daemon.It shuld work properly.
Habib_4
Advisor

Re: CDE

Hi Peter,

Yes, exactly, I enter the root username and password and it just stays on the login screen and prompts me to enter the username and password once again.
Habib_4
Advisor

Re: CDE

A reply to Sajeer,

But what should I change the IP address to?

It is just a stand-alone unix work station.
What will I change the IP address to?
I don't have it connected to a network so I cannot understand what to enter after the set parms command ?

sajeer_2
Regular Advisor

Re: CDE


You can give any ip iddress.say
IP address 192.168.1.220
subnet mask 255.255.255.0
Peter Godron
Honored Contributor

Re: CDE

Hi,
after you have implemented the network fixes as above you could use the failsafe option to log onto your server and check the $HOME/.dt/errorlog for messages.
Habib_4
Advisor

Re: CDE

Hi Peter,

Why would I want to check this directory?
What is the reason for me to check this directory?
Peter Godron
Honored Contributor

Re: CDE

Habib,
the filename 'errorlog' may give my intention away.
This would be the file I would expect any error to be logged to, so by looking at the file, we may get a better idea where your problem may be.
Habib_4
Advisor

Re: CDE

Oh sorry, was not looking properly.
Am at work while on here so wasn't concentrating enough.
Well thanks for all your input guys.
The info you have provided will hopefully deal with this issue for me
If not then I will be back.

I hope I can help you sometime in the future too.
Thanks

Bye.
V. Nyga
Honored Contributor

Re: CDE

Hi,

first you was told wrong.
One line in your hosts is always:
127.0.0.1 localhost loopback

You can set any ip address if you don't use this ws in a network - for example 1.2.3.4.

Maybe you don't have the root home directory at this ws.

You should go into the single user mode:
Interrupt boot process
Type 'bo'
Answer interact: 'y'
type in hpux -is
Then check with 'more /etc/passwd' what is defined for 'root'.
root:xxx:0:3::/home/root:/usr/bin/sh
In this case '/home/root' is the root home directory - check if it exists:
'ls -l /home'

Also in single user mode you can check the errorlog of root in /.dt

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: CDE

Sorry, but I can't imagine how Habib can start 'set_parms' if he can't login as root.

Just a thought
V.
*** Say 'Thanks' with Kudos ***