kanotix.com

General Support - Init 3 still boots to gui

feffer777 - 23.07.2006, 03:48 Uhr
Titel: Init 3 still boots to gui
Some say they do a d-u by booting to grub adding 3 (or init 3) and going directly into runlevel 3, then doing the d-u from there. I've tried this, but my system always boots to the gui login manager anyway. Sure, I can get back to CLI by doing CTL-ALT-F1 or logging into a CLI session, but I wonder if I'm doing it wrong. Why do I always get the gui login manager first even in runlevel 3?

Thanks,
Ron
jackiebrown - 23.07.2006, 04:17 Uhr
Titel: RE: Init 3 still boots to gui
check what you have starting in that runlevel
mzilikazi - 23.07.2006, 05:04 Uhr
Titel: Re: Init 3 still boots to gui
feffer777 hat folgendes geschrieben::
Some say they do a d-u by booting to grub adding 3 (or init 3) and going directly into runlevel 3, then doing the d-u from there. I've tried this, but my system always boots to the gui login manager anyway. Sure, I can get back to CLI by doing CTL-ALT-F1 or logging into a CLI session, but I wonder if I'm doing it wrong. Why do I always get the gui login manager first even in runlevel 3?

Thanks,
Ron


If you look at the Debian run levels you'll see that Run levels 2 through 5 are full multi-user mode unlike some other distros that use init 3 for a text console login and init 5 for a graphical login. As hinted at by jackiebrown above, this is not to say that you can't remove the symlink that starts KDM in init 3. Winken

If you just want to stop your login manager it's quite simple.
Code:
CTRL+ALT+F1
login: root
/etc/init.d/kdm stop

Or if you use GDM:
Code:
/etc/init.d/gdm stop


A good read about Debian run levels.
schnorrer - 23.07.2006, 12:27 Uhr
Titel: Re: Init 3 still boots to gui
Feffer777, you got the login screen to choose the user and WM. There is an option "session" where Textmode does the same as init 3 in the bootsplash for the Cheat's.

Choose textmode and login as a root otherwise a D-U can fail on some updates(cups Xorg ...)
hubi - 23.07.2006, 13:32 Uhr
Titel: Re: Init 3 still boots to gui
feffer777 hat folgendes geschrieben::
Some say they do a d-u by booting to grub adding 3 (or init 3) and going directly into runlevel 3, then doing the d-u from there. I've tried this, but my system always boots to the gui login manager anyway.


Ron,
what's in your /etc/rc3.d? Mine looks like this:
Zitat:
ls -l /etc/rc3.d
insgesamt 4
lrwxrwxrwx 1 root root 13 2006-06-16 21:31 K01kdm -> ../init.d/kdm
lrwxrwxrwx 1 root root 18 2006-07-16 04:34 K08vmware -> /etc/init.d/vmware
-rw-r--r-- 1 root root 556 2006-05-06 21:15 README
lrwxrwxrwx 1 root root 18 2006-06-16 21:31 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 15 2006-06-16 21:31 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root 15 2006-06-16 21:31 S20acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 20 2006-06-16 21:30 S20alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root 16 2006-06-23 02:07 S20cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root 14 2006-06-16 21:31 S20dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root 17 2006-06-16 21:31 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root 13 2006-06-16 21:31 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 2006-06-16 21:31 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root 18 2006-07-16 04:34 S90vmware -> /etc/init.d/vmware
lrwxrwxrwx 1 root root 19 2006-06-16 21:31 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 23 2006-06-16 21:31 S99stop-bootlogd -> ../init.d/stop-bootlogd
If you have sth like SXXkdm, just kick it out of that directory.

If you do not have a K01kdm, then create it by:
# ln -s /etc/init.d/kdm /etc/rc3.d/K01kdm

Suppose you use standard Kanotix with KDE.

hubi
feffer777 - 24.07.2006, 00:49 Uhr
Titel: RE: Re: Init 3 still boots to gui
Thanks you were all right on target. Coming from Fedora, the runlevels were structured a bit differently. As hubi suggested:

Zitat:
If you have sth like SXXkdm, just kick it out of that directory.

If you do not have a K01kdm, then create it by:
ln -s /etc/init.d/kdm /etc/rc3.d/K01kdm


fixes the issue. I can now boot into CLI directly from grub.

Regards,
Ron
Mike Shepard - 28.07.2006, 22:43 Uhr
Titel:
I have the same problem, only I no longer have kde or kdm (I use gdm and fluxbox). Typing "init 3" into a console does nothing, not even an output. Also adding a 3 into the grub line does nothing either. Here is the output of my /etc/rc3.d directory

Code:

lrwxrwxrwx 1 root root  15 May 31 06:38 K20mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root  13 May 31 06:38 K20xdm -> ../init.d/xdm
-rw-r--r-- 1 root root 556 May  6 19:15 README
lrwxrwxrwx 1 root root  18 May 27 06:44 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root  15 May 27 06:44 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root  16 May 27 06:44 S15pcmcia -> ../init.d/pcmcia
lrwxrwxrwx 1 root root  15 May 27 06:44 S20acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root  20 May 27 06:42 S20alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root  14 May 27 06:44 S20dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root  17 May 27 06:44 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root  13 May 27 06:44 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 May 27 06:44 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root  13 May 27 17:38 S99gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root  19 May 27 06:44 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root  23 May 27 06:44 S99stop-bootlogd -> ../init.d/stop-bootlogd


any ideas? It's been this way for a while now, and everything I've tried has failed. Thanks in advance

Cheers,
Mike
hubi - 28.07.2006, 22:55 Uhr
Titel:
Mike,

with "typing init 3 into a konsole" means, you are still in X? If yes, that does not work, IIRC.

Do first ctrl+alt+F1, that kills X, login as root and type "init 3".

Should work Mr. Green

EDIT:
Just see a S99gdm in your /etc/rc3.d. I'm not sure if that's correct, you should not starting it in init 3. And you do not have a K01gdm (which kills gdm when you get to init 3). You might need to do the same as I suggested for kdm earlier, just with gdm (same syntax).

Greetings
hubi
feffer777 - 29.07.2006, 04:26 Uhr
Titel:
Mike,
As far as I know, the command "init 3" shows no return, but does put you into runlevel 3. Use the command "runlevel" to show your previous and current runlevel. For instance, if you were in runlevel 5 and dropped down to 3, you'll see something like, "N 5 3". Hope this helps with at least part of your issue.

Regards,
Ron
Mike Shepard - 29.07.2006, 05:54 Uhr
Titel:
In all my other kanotix installs typing "init 3" into a console in X kills X and drops my to a command prompt. But either way, on this install no matter which way I do it, it doesn't work, X is still running. I've been getting bye by killing it manually. I did try adding the K01gdm but still nothing. Typing "runlevel" does show that I am in 3 btw, but X is still up and running. Any other idea's? Thanks for all the help.

Cheers,
Mike
schnorrer - 29.07.2006, 11:46 Uhr
Titel:
on some installs, there might be a ln to xserver-xorg in /etc/rc3.d. kick it of or set it to KXXxserver-xorg, and all related x-running scripts.
mzilikazi - 29.07.2006, 15:10 Uhr
Titel:
hubi hat folgendes geschrieben::
Do first ctrl+alt+F1, that kills X, login as root and type "init 3".


Well actually no it doesn't kill X. You have only switched to VT1 and X is still running on VT7. Winken

You are right about the startup link S99gdm. That's what starts gdm. Remove that and gdm will not start in run level 3.
Mike Shepard - 29.07.2006, 17:40 Uhr
Titel:
Zitat:
You are right about the startup link S99gdm. That's what starts gdm. Remove that and gdm will not start in run level 3.


worked like a charm Sehr glücklich Thanks everyone.

Cheers,
Mike
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007