Unix Technical Forum

11i - CDE login does not come up upon boot

This is a discussion on 11i - CDE login does not come up upon boot within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Does anyone know how to fix this? A dtconfig -e doesnt work for it. However, when i login at ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 06:48 PM
Isaac Gerg
 
Posts: n/a
Default 11i - CDE login does not come up upon boot

Does anyone know how to fix this? A dtconfig -e doesnt work for it.

However, when i login at the Console Login, I can do a startx to get a x
server up and running.. so it seems x is okay.

Any help would be deeply appreciated.

Isaac
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 06:48 PM
Mike Stroyan
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
> Does anyone know how to fix this? A dtconfig -e doesnt work for it.
>
> However, when i login at the Console Login, I can do a startx to get a x
> server up and running.. so it seems x is okay.


There should be a line near the bottom of /etc/dt/config/Xservers
that says

* Local local@console /usr/bin/X11/X :0

That line tells CDE's dtlogin process to start an X server.
The line may have been commented out.

--
- [HP is committed to respecting your privacy.] For more information,
visit http://welcome.hp.com/country/us/en/...e_privacy.html
- or contact me at: [mike.stroyan@hp.com or
HP Privacy Mailbox , 20555 SH 249, MS 040307 , Houston, Texas 77070]

Mike Stroyan, mike.stroyan@hp.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 06:49 PM
Alan D Johnson
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Mike Stroyan wrote:
> Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
>
>>Does anyone know how to fix this? A dtconfig -e doesnt work for it.
>>
>>However, when i login at the Console Login, I can do a startx to get a x
>>server up and running.. so it seems x is okay.

>
>
> There should be a line near the bottom of /etc/dt/config/Xservers
> that says
>
> * Local local@console /usr/bin/X11/X :0
>
> That line tells CDE's dtlogin process to start an X server.
> The line may have been commented out.
>

As has been said in the past with CDE you have to make sure that your
DNS resolution works correctly for it to work, make sure you can do an
nslookup of your host and IP address and get back the correct values.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 06:49 PM
Isaac Gerg
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

The line mentioned was commented out. However, after uncommenting, CDE
does not start up on boot. Is there an error log anywhere I can check
to find out why this is.

PS. DNS is working fine.

Isaac

Mike Stroyan wrote:
> Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
>
>>Does anyone know how to fix this? A dtconfig -e doesnt work for it.
>>
>>However, when i login at the Console Login, I can do a startx to get a x
>>server up and running.. so it seems x is okay.

>
>
> There should be a line near the bottom of /etc/dt/config/Xservers
> that says
>
> * Local local@console /usr/bin/X11/X :0
>
> That line tells CDE's dtlogin process to start an X server.
> The line may have been commented out.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 06:49 PM
Mike Stroyan
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
> The line mentioned was commented out. However, after uncommenting, CDE
> does not start up on boot. Is there an error log anywhere I can check
> to find out why this is.


There is an X server startup log in /var/dt/Xerrors .
You could use ps to confirm that dtlogin is running. It might be that the
default run level in /etc/inittab is not high enough to start dtlogin.
It sounds like dtlogin may have run but still not tried to start the
X server. You could run dtlogin as root in debug mode to see what it
is up to. First stop the currently running dtlogin with
/sbin/init.d/dtlogin.rc stop
Then run a debug dtlogin with
/usr/dt/bin/dtlogin -debug 1

That dtlogin will print debug information to the terminal you start it
from.

--
- [HP is committed to respecting your privacy.] For more information,
visit http://welcome.hp.com/country/us/en/...e_privacy.html
- or contact me at: [mike.stroyan@hp.com or
HP Privacy Mailbox , 20555 SH 249, MS 040307 , Houston, Texas 77070]

Mike Stroyan, mike.stroyan@hp.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 06:49 PM
Isaac Gerg
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Mike,
No luck. Below is my report.

Using top I verified that X and dtlogin are both running and in the
sleep state.

dtlogin -debug 1 yeilds:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 06:49 PM
Mike Stroyan
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
> Mike,
> No luck. Below is my report.
>
> Using top I verified that X and dtlogin are both running and in the
> sleep state.

....
> In /var/dt/Xerrors I get:
> Hung in XOpenDisplay(<servername>:0) attempt #1, aborting
> <above line repeats for attempts 1,2,3,4 etc...>
>
> Any ideas on where to go from here? Thanks for the help so far!


Does it look like there is an X server running on the console?
Can you run X client programs like 'xclock -display :0' ?
You can find log files for the X server in /var/X11/Xserver/logs/ .

/usr/contrib/bin/X11/dr_dt will check for many kinds of CDE
misconfiguration.

--
- [HP is committed to respecting your privacy.] For more information,
visit http://welcome.hp.com/country/us/en/...e_privacy.html
- or contact me at: [mike.stroyan@hp.com or
HP Privacy Mailbox , 20555 SH 249, MS 040307 , Houston, Texas 77070]

Mike Stroyan, mike.stroyan@hp.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 06:49 PM
Isaac Gerg
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

There is definitly no Xserver running. Yesterday, I was able to get
startx working enough to get some graphics and a terminal. There, I got
twm to work and could start up the graphical version of sam. From that,
I , at least I think, reinstalled CDE. I had to uninstall it
(CDE-English) and then intall it again. However, still no luck getting
anything graphical.


dr_dt returns:
..
..
..
WARNING: The permissions on /etc/hosts do not match the correct
permissions for the file. If you are running NameServer
(/etc/named) the /etc/hosts file is just used as a backup,
but if the NameServer fails, incorrect permissions on
/etc/hosts can be a problem. The file should be
owner = bin, group = bin, and have permissions of
" -r--r--r--".

INFO: Checking inetd configuration...

INFO: Checking /usr/users/idg validity

WARNING: The /usr/users/idg directory is not properly
configured. The current configuration is:
permissions = drwxr-sr-x
owner = idg
group = default
For HP CDE to function correctly, it should be a
directory with the following configuration:
permissions = dr-xr-xr-x
owner = idg
group = default


Although the permissions of your home directory may
be different from the above, please check that you
are able to write to your own directory.

INFO: Checking /usr/users/idg/.dtprofile for terminal I/O statements...

INFO: Checking /usr/users/idg/.dt existence...

INFO: Validating setting of $DISPLAY environment variable...

INFO: HP CDE sets the DISPLAY environment variable to <hostname>:0
(curtin:0 in your case). Yours is currently set to
"", which is a potential problem, unless you are on
an X terminal, querying another server, or remotely logged into
this system. Users typically set the DISPLAY variable in
.dtprofile, .profile, .login, .kshrc or .cshrc (depending on the
shell). Unless you really need to, make sure you are not
setting it.

INFO: Checking CDE/Vue startup for possible conflicts...

INFO: Checking existence/permissions of certain system directories...

WARNING: The /tmp directory is not properly
configured. The current configuration is:
permissions = drwxrwxrwt
owner = root
group = root
For HP CDE to function correctly, it should be a
directory with the following configuration:
permissions = drwxrwxrwx
owner = bin
group = bin

WARNING: The /usr/spool/sockets directory is not properly
configured. The current configuration is:
permissions = drwxrwxrwt
owner = bin
group = bin
For HP CDE to function correctly, it should be a
directory with the following configuration:
permissions = drwxrwxrwx
owner = bin
group = bin

WARNING: The /usr/spool/sockets/X11 directory is not properly
configured. The current configuration is:
permissions = drwxrwxrwt
owner = root
group = root
For HP CDE to function correctly, it should be a
directory with the following configuration:
permissions = drwxrwxrwx
owner = bin
group = bin

INFO: Checking existence/permissions of certain CDE directories...

INFO: Checking existence/permissions of CDE executable files...

WARNING: The /usr/bin/X11/X file is not properly
configured. The current configuration is:
permissions = -r-sr-xr-x
owner = root
group = other
For HP CDE to function correctly, it should be a
file with the following configuration:
permissions = -r-xr-xr-x
owner = bin
group = bin

INFO: Checking existence/permissions of CDE script files...

INFO: Checking existence/permissions of CDE configuration files...

INFO: Listing some CDE configuration resources....

INFO: Listing uncommented lines in /usr/dt/config/Xconfig

Dtlogin.errorLogFile: /var/dt/Xerrors
Dtlogin.pidFile: /var/dt/Xpid
Dtlogin.accessFile: Xaccess
Dtlogin.servers: Xservers
Dtlogin*resources: %L/Xresources
Dtlogin*startup: Xstartup
Dtlogin*reset: Xreset
Dtlogin*setup: Xsetup
Dtlogin*failsafeClient: Xfailsafe
Dtlogin*langSetup: /usr/dt/config/Xlangsetup

INFO: Listing uncommented lines in /usr/dt/config/Xservers

* Local local@console /usr/bin/X11/X :0

INFO: Listing uncommented lines in /usr/dt/config/Xaccess

* # grant service to all remote displays
* CHOOSER BROADCAST # any indirect host can get a
chooser

INFO: Check existence of stock Xserver configuration files
Note that the presence of these files is not required in some
configurations, such as 800 servers without graphics displays.
Additionally, some custom configurations, such as machines with
multiple Xservers, will not be checked completely.

WARNING: /etc/X11/X0screens does not exist. It needs
to be on the system in order for HP CDE to run properly.
There may have been a problem at installation. You
can either reinstall HP CDE or get a copy of the file
from another compatible system.

WARNING: /etc/X11/X0devices does not exist. It needs
to be on the system in order for HP CDE to run properly.
There may have been a problem at installation. You
can either reinstall HP CDE or get a copy of the file
from another compatible system.

WARNING: /etc/X11/X0pointerkeys does not exist. It needs
to be on the system in order for HP CDE to run properly.
There may have been a problem at installation. You
can either reinstall HP CDE or get a copy of the file
from another compatible system.

INFO: Checking existence/permissions of CDE locale-specific
configuration and app-defaults files...

INFO: Checking existence/permissions of Motif binding files...

INFO: Running swverify to verify your software installation and list
what patches are installed your system.
Note that this may take a considerable amount of time, depending
on your processor. Please be patient.

Also note that swverify leaves complete logs of its work
in the files:
/usr/adm/sw/swverify.log
/usr/adm/sw/swagent.log
You may wish to review these if there are any WARNINGS or
ERRORS found during the software verification.


INFO: Verifying CDE-ChineseS...



<It seems to hang from here... im running an Itanium2... been at this
screen for about 30 min.>


Isaac

Mike Stroyan wrote:
> Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
>
>>Mike,
>> No luck. Below is my report.
>>
>>Using top I verified that X and dtlogin are both running and in the
>>sleep state.

>
> ...
>
>>In /var/dt/Xerrors I get:
>> Hung in XOpenDisplay(<servername>:0) attempt #1, aborting
>> <above line repeats for attempts 1,2,3,4 etc...>
>>
>>Any ideas on where to go from here? Thanks for the help so far!

>
>
> Does it look like there is an X server running on the console?
> Can you run X client programs like 'xclock -display :0' ?
> You can find log files for the X server in /var/X11/Xserver/logs/ .
>
> /usr/contrib/bin/X11/dr_dt will check for many kinds of CDE
> misconfiguration.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-16-2008, 06:50 PM
Mike Stroyan
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
> There is definitly no Xserver running. Yesterday, I was able to get
> startx working enough to get some graphics and a terminal. There, I got
> twm to work and could start up the graphical version of sam. From that,
> I , at least I think, reinstalled CDE. I had to uninstall it
> (CDE-English) and then intall it again. However, still no luck getting
> anything graphical.


You said earlier that top showed X was running, but now you say
"There is definitly no Xserver running". I'm not sure what evidence
you are using to reach that conclusion.

The dtlogin program should be running X as prescribed in this line-
> INFO: Listing uncommented lines in /usr/dt/config/Xservers
>
> * Local local@console /usr/bin/X11/X :0


If you run
/usr/bin/X11/X :0
does the X server start up?

How about if you run
/usr/bin/X11/X :0 -query $(hostname)
to tell the X server to ask dtlogin to start a login screen?

--
- [HP is committed to respecting your privacy.] For more information,
visit http://welcome.hp.com/country/us/en/...e_privacy.html
- or contact me at: [mike.stroyan@hp.com or
HP Privacy Mailbox , 20555 SH 249, MS 040307 , Houston, Texas 77070]

Mike Stroyan, mike.stroyan@hp.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-16-2008, 06:50 PM
Isaac Gerg
 
Posts: n/a
Default Re: 11i - CDE login does not come up upon boot

When I type in startx, X starts up. I get nothing on the screen though
but a shell and can run programs such as xclock or twm. However, X does
not start up upon machine boot.


>
> If you run
> /usr/bin/X11/X :0
> does the X server start up?


No, I get the error:
Fatal server error:
Server is already active for display 0.
If ..... remove /tmp/lock...

> How about if you run
> /usr/bin/X11/X :0 -query $(hostname)
> to tell the X server to ask dtlogin to start a login screen?
>


The system just seems to hang. Nothing happened for 10 minutes so I
ctrl-Xed it.

Does this help at all?

Isaac



Mike Stroyan wrote:
> Isaac Gerg <isaac.gergNOSPAM@adelphia.net> wrote:
>
>>There is definitly no Xserver running. Yesterday, I was able to get
>>startx working enough to get some graphics and a terminal. There, I got
>>twm to work and could start up the graphical version of sam. From that,
>>I , at least I think, reinstalled CDE. I had to uninstall it
>>(CDE-English) and then intall it again. However, still no luck getting
>>anything graphical.

>
>
> You said earlier that top showed X was running, but now you say
> "There is definitly no Xserver running". I'm not sure what evidence
> you are using to reach that conclusion.
>
> The dtlogin program should be running X as prescribed in this line-
>
>>INFO: Listing uncommented lines in /usr/dt/config/Xservers
>>
>> * Local local@console /usr/bin/X11/X :0

>
>
> If you run
> /usr/bin/X11/X :0
> does the X server start up?
>
> How about if you run
> /usr/bin/X11/X :0 -query $(hostname)
> to tell the X server to ask dtlogin to start a login screen?
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:04 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com