Monday, April 14, 2008

Can not login to CDE after

Last week I can not login to my brand new workstation.

The workstation is a SUN Ultra-25, using Solaris 10 as its operating system.

Actually that workstation was already configured for me. I logged on to the workstation, admire the new shiny interface of Solaris 10(very cool blue!), start up some applications, then notice that I can not connect to the network.

After some investigation, I found out that the network interface was not yet configured as required in my working environment.

So I changed the IP address using ifconfig. I also edit these files:
  1. /etc/hosts
  2. /etc/netmasks
  3. /etc/defaultrouter
So if I restart the workstation, the configuration won't revert to the old configurations.

Everything work, I can ping another workstation. I can logged in to another server.

Next step, I restarted the workstation, to test whether the configuration persist or not.

The workstation booted up just fine. I can telnet to it from another workstation. So I went to its monitor and try to login to the CDE.

To my surprises, I can not log in to the CDE!
It produce "can not start message server" error, and suggest me to check these files:
  1. /etc/src.sh
  2. /usr/adm/inetd.sec
  3. /var/adm/messages
  4. $HOME/.dt/errorlog
File 1 and 2 did not exist. I can not find related error in file 3.
However in file 4, I found "can not start message server" error, or something like that. I forgot!:P

I did some googling and try this, as suggested in one of the online forum:
  1. Delete the .dt directory and .TTAutorithy file and restart the application. Those directory and file were automatically recreated, but I still can not login to system.
After some thinkings and meditations:P I remember about the ipnodes file.

So I find it using command find / | grep ipnodes, and locate it under the directory /etc/inetd.
Open it using vi, I found out that the content is exactly the same as /etc/hosts.
I edited it to match my new configuration, then restart my workstation.

With my finger crossed, I try to logged on to the system.

This time it works!:D

No comments: