Unable to autostart graphical login - default init set to 5 in /etc/inittab
I recently had to drop to an older version of the kernel in order to get X working (long story). After getting it working, I used the Yast update to update the kernel to the latest supported version. When I rebooted, I chose the Failsafe option, as the older kernel option did not work anymore (as expected). After booting the new kernel, I was left with a text login. I logged in, typed "gdm" at the console, and then the familiar graphical login screen appeared. I would like this to be the default behavior, so that I do not have to login twice every time I use the machine.
I cloned the failsafe entry in the Grub record, removed the kernel safety options, made it the default, and saved the record. Then I checked /etc/inittab and the default runlevel is set to 5 there. What am I missing? |
Assuming you are running a distro using the traditional Sys V startup, you also need a line in inittab telling it to respawn fdm for runlevel 5. Alternatively, your distro may (normally) invoke gdm from /etc/rc5.d.
Please let us know which distro you are using, post the contents ofinittab and show us the contens of /etc/rc5.d. Some distros may call that /etc/rc.d/rc5.d. |
I am using SLED 10 sp2. Thanks for your help. Below are the inittab and rc.d/rc5.d contents.
Code:
inittab: Code:
linux-test:~ # ls /etc/rc.d/rc5.d/ |
OK, I've never run SuSE. And I see some things that I wasn't expecting and don't understand. So I'm probably not the right person to be trying to help you with this. But I will point out what I noticed in case you want to try to run the issue down yourself and to call them to the attention of anybody else who tries to help you. Also, you might want to use the report button (at the bottom of each post next to the edit and quote buttons) to request a moderator to move this thread to the SuSE forum. (Please don't create a duplicate thread.)
Quote:
1) In any given runlevel (in this case, 5), I expect to see each service (at most) listed either starting with a K (kill) or an S (start), not both. Yet these services, along with most or all of the others, have both. (In case you aren't aware, the two digits after the K or S determine the sequence in which that service is killed or started.) 2) The names earlygdm and xdm suggest a combination of both gdm and xdm which makes no sense to me. Maybe looking at the scripts themselves would clarify what is going on. If you want to take a look at these scripts they should be located in the /etc/init.d directory. I also found the following comment in inittab rather baffling. That is because xdm is a GUI login manager, and as such, I would not expect it to be running in runlevel 3. (I did check some SLED documentation to verify what the runlevels mean in SLED. Ummm. I just noticed that was actually SLES documentation, but I would think the runlevel usage would be consistent.) Quote:
|
As requested, moved to Suse/Novell
|
All times are GMT -5. The time now is 03:42 AM. |