LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-11-2008, 12:23 PM   #1
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Rep: Reputation: 0
My CDE GUI login is disappeared !?


Hello Everyone,

After i ran this 'sys-unconfig' to set my network back to plain and reboot my Sun machine. The network works fine now but I don't see CDE GUI log in as before. After the reboot, it shows me this:
Code:
Hostname: unknown
checking ufs filesystems
/dev/rdsk/c1t0d0s6: is logging
 
unknown console login: syslogd: line 24: WARNING: loghost could not be resolved
IF i hit enter then it shows me:
Code:
unknown console login:

It doesn't show me the login window with graphic any more. I can log in with root user just fine from console login.

Could anyone help me to get the CDE GUI back please ? I have some applications run with GUI and now all i can see is console login. Thanks a lot.
 
Old 03-11-2008, 12:29 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
I guess "unknown" wasn't your hostname before you ran "sys-unconfig".

You should try to fix that first.

Last edited by jlliagre; 03-11-2008 at 12:42 PM.
 
Old 03-11-2008, 12:31 PM   #3
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
I guess "unknown" wasn't your hostname before you run "sys-unconfig".

You should try to fix that first.
Hi there,

My hostname was 'moco'. Should i run 'sys-unconfig' again ?

I justed vi /etc/hosts and change the hostname from unknown to 'moco'

#
# Internet host table
#
127.0.0.1 localhost
10.10.0.15 moco # Added by DHCP

any thing else that i need to do here beside change the host name ? thanks

Last edited by txn; 03-11-2008 at 12:41 PM.
 
Old 03-11-2008, 12:50 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Don't run sys-unconfig again. Its use is to reset all of a system configuration to a new initial state and is overkill to change just a couple of network settings.

Your dhcp server should give your system a proper hostname or the latter should not ask for it in the first place.

If you can configure your dhcp server to provide moco as hostname, do that instead.

Otherwise, if your dhcp server is always giving the same IP address to your box, you can add

10.10.0.15 moco

at the beginning of the /etc/hosts file. Note that I removed the dhcp comment. If not, then you should edit the /etc/default/dhcpclient file and remove ",12" from the PARAM_REQUEST_LIST variable.
 
Old 03-11-2008, 01:11 PM   #5
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
Otherwise, if your dhcp server is always giving the same IP address to your box, you can add

10.10.0.15 moco

at the beginning of the /etc/hosts file. Note that I removed the dhcp comment. If not, then you should edit the /etc/default/dhcpclient file and remove ",12" from the PARAM_REQUEST_LIST variable.
The weird thing that /etc/hosts is readable only. I have to chmod 700 to able to save the file.

because my router is always giving my sun box this ip, so i decided to edit the /etc/hosts instead.

My /etc/hosts is now:

#
# Internet host table
#
127.0.0.1 localhost
10.10.0.15 moco

my /etc/hostname.nge1 doesn't have anything in there(plain). Should i add 'moco' in to it ?

Note: nge1 is my network interface.

Thanks.

Last edited by txn; 03-11-2008 at 01:18 PM.
 
Old 03-11-2008, 01:39 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by txn View Post
The weird thing that /etc/hosts is readable only.
That's its standard permissions.
Quote:
I have to chmod 700 to able to save the file.
That's unnecessary, root can write "read-only" files. Just use ":w!" under vi.
Quote:
because my router is always giving my sun box this ip, so i decided to edit the /etc/hosts instead.

My /etc/hosts is now:

#
# Internet host table
#
127.0.0.1 localhost
10.10.0.15 moco
That's fine.
Quote:
my /etc/hostname.nge1 doesn't have anything in there(plain). Should i add 'moco' in to it ?
No, you should actually remove that file as you are using dhcp and make sure a file named dhcp.nge1 exists instead.
 
Old 03-12-2008, 12:23 AM   #7
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
That's its standard permissions.

That's unnecessary, root can write "read-only" files. Just use ":w!" under vi.

That's fine.

No, you should actually remove that file as you are using dhcp and make sure a file named dhcp.nge1 exists instead.
I removed that hostname.nge1 and restart the machine.

I after reboot I got the CDE GUI back but can't get on internet. So i ran 'ifconfig -a'

Code:
lo0 flags=2001000849<UP,LOOPBACK,RUNNIG,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmaske ff000000
I don't see 'nge1' interface there any more.

I checked the /etc folder and see that 'dhcp.nge1' and 'hosts' are there.

-------------------------------------------------
While you're not here, i tried something difference:

vi /etc/default/dhcpagent

modify the REQUEST_HOSTNAME line and make it

REQUEST_HOSTNAME=yes

save the file

vi the /etc/hostname.nge1 file and add

inet moco

now at the prompt , I type

pkill dhcpagent

rm /etc/dhcp/nge1.dhc

and reboot

Then I'm able to get the dhcp for my sun machine just fine, i can ping google now. But the hostname is still unknown and I still can not get my CDE GUI log in back.

Thanks

Last edited by txn; 03-12-2008 at 02:02 AM.
 
Old 03-12-2008, 04:34 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Try this:
Code:
# hostname moco
# echo moco > /etc/nodename
 
Old 03-12-2008, 12:06 PM   #9
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Hostname seems recognize the 'moco', I reboot couple times and the hostname is ok now.

Last edited by txn; 03-12-2008 at 08:24 PM.
 
Old 03-12-2008, 08:24 PM   #10
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Do you have any idea how to get the GUI login back ? right now I can only login with console . Thanks
 
Old 03-13-2008, 03:54 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
What says "svcs -xv" ?
 
Old 03-13-2008, 04:14 PM   #12
txn
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
What says "svcs -xv" ?
Code:
root@moco # svcs -xv
svc:/application/management/snmpdx:default (Sun Solstice Enterprise Master Agent)
 State: disabled since Thu Mar 13 12:33:07 2008
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man/ -s 1M snmpdx
Impact: 1 dependent service is not running:
        svc:/application/management/dmi:default
root@moco #

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal user can't login via CDE? zeki709 Solaris / OpenSolaris 2 03-31-2012 05:29 PM
How can I get MAILMSG in CDE login AbrahamJose AIX 0 06-14-2006 10:58 PM
CDE and Command line login AbrahamJose AIX 0 02-22-2006 03:31 PM
Not able to login as user on CDE vishnu Solaris / OpenSolaris 4 02-06-2006 02:36 AM
Logging failed CDE login ]un]ie Solaris / OpenSolaris 5 12-19-2004 08:18 AM


All times are GMT -5. The time now is 06:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration