PDA

View Full Version : Remaster doesn't boot into KDE



katana5
11-23-2005, 02:57 AM
I'm not new to remastering knoppix, I've got a pretty decent process worked out for myself now, but on this particular remaster of 4.0.2, on bootup my remaster finishes the hardware autodetection and switches to runlevel 5, and then halts and gives me a prompt, no booting into KDE.

If I do an whoami, knoppix tells me I'm still root. so if I su - knoppix, then startx my remaster runs fine with all my changes in KDE restored properly.

The only files that I've changed are knoppix-autoconfig in /etc/init.d and 45xsession in /etc/X11/Xsession.d. If I revert back to the orignials of those files from the 4.0.2 distro, and rebuild my remaster, same result, as well the changes that I make to those files has worked in all my past remasters, so I'm confident it's nothing to do with those files....

my question is, what file switches to runlevel 5, and from there, where is KDE loaded? I think I may have deleted something accidently that's causing it to stop booting. Any ideas?

Thanks for any help

tr
11-23-2005, 10:11 AM
my question is, what file switches to runlevel 5, and from there, where is KDE loaded?

/etc/init.d/xsession

If your problem was only starting KDE, perhaps /tmp/.ICE-unix has wrong owner. It should be root and permissions should be 1777.

I'm not sure, but perhaps /etc/X11/Xsession should be also original Knoppix file - upgrading want to replace it with a new file. I think I had sometimes problems starting X because of that.

-tapsa-

katana5
11-23-2005, 02:47 PM
I think that may solve it.
I noticed last night that /etc/init.d/xsession was missing. So I replaced it from the original CD, remastered and same result.

Just checked the/tmp/.ICE-unix, and on the original there are a number of KDE directories, on my remaster the /tmp directory is empty..

So when I get home from work I'll copy the files in /tmp from the original 4.0.2 to see if that fixes it.

Thanks for the help.

ed5601
11-23-2005, 09:58 PM
Check your /etc/inittab and verify that the last line is

x5:5:wait:/etc/init.d/xsession start

I found that when I did the build of the compressed filesystem and replied Yes to the "Do you want to cleanup" question this line was deleted.

katana5
01-18-2006, 01:55 PM
So I had all of the above issues.
/etc/init.d/xsession was missing.

/etc/inittab was also missing 2 lines at the end which called /etc/init.d/xsession

So I've replaced those two files, as well copied the original /etc/X11/Xsession file as suggested as well.

My remaster now boots into X, but hangs just after I get the grey & black checkerd screen and a mouse cursor. I can move the mouse cursor, but waiting does not result in KDE starting up. If I do a ctrl-alt-backspace to kill the x server, and then su - knoppix, startx everything works fine.

I've looked to see about /tmp/.ICE-unix, this file seems to be generated on startup, as I can't locate it anywhere on the original CD in I boot it into run level 2.
If I boot all the way to run level 5, it exists in /ramdisk/tmp /tmp symlink.

Also, another oddity that I have discovered. If I symlink /tmp to /ramdisk/tmp, when I run my remaster scripts to build the ISO image, it won't do it.. Anyone run into this as well?

I'm like 95% there, I think there might just be a permissions problem, or when /etc/init.d/xsession executes, it's not fully transferring to user knoppix.

Any assistance would be greatly appreciated.

Thanks.

tr
01-18-2006, 06:40 PM
My remaster now boots into X, but hangs just after I get the grey & black checkerd screen and a mouse cursor. I can move the mouse cursor, but waiting does not result in KDE starting up. If I do a ctrl-alt-backspace to kill the x server, and then su - knoppix, startx everything works fine.


Black screen with X (mouse cursor) means that X server is running but Display Manager (kdm) not.

Do you have kdm installed? Do you have /etc/X11/X.session.d/45xsession file existing which creates home directory?

-tapsa-

katana5
01-19-2006, 02:02 AM
I'll have to check on those two,
I would have to assume that by manually changing to user knoppix, and running startx that would prove that kdm is in fact installed since my remaster loads properly if I do that.

I'll double check that my remastering didn't blow away the 45xsession file though.

Thanks for your help.

katana5
01-19-2006, 03:13 PM
So I checked, kdm is infact installed, and 45Xsession exists. So the problem is that the Xserver starts but then does not load the display manager.

Is it possible it's permissions related? is there any way to launch /etc/xsession with a trace or debug on to see if something is not executing properly?

Thanks for any help.