Graphical Login- How Can I remove?
I reinstalled Debian 3.1 from scratch, this time choosing the 2.6 Kernal and "Desktop Configuration". For reasons unknown to me, when the install completed I found myself at a Graphical Login Screen. I did not choose this as an option.
Last time I installed Debian 3.1 I choose "Multiple User Configuration", which booted to a shell prompt. What exactly was installed this time around, and how can I uninstall this Graphical Login Screen so I boot to the shell prompt? I've seen many posts on this topic but can't seem to get the complete picture on this. |
I know next to nothing about Debian, so take what I say with a huge grain of salt. But, in Fedora Core, there is a file /etc/inittab (which I would imagine would be in the same location in Debian) that controls the computer's runlevel. You can edit the line that looks like
Code:
id:X:initdefault: |
First check the login manager you use: ls -l /etc/init.d/[gkx]dm
Then, if it is say kde, remove the startup links: update-rc.d -f kdm remove You can remove xdm as well from starting: update-rc.d -f xdm remove And make new ones that only start kdm in runlevel 5: update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 . This because iirc debian boots to a graphical login in runlevels 2-5 And change inittab like Mad Scientist posted. |
Debian is defferent with runlevels than Fedora. So making "initdefault to 3 in /etc/inittab" alone would not work.
So lets make it 3 and configure rc3 to command-line. Most probably you should have "gdm" running. So using either "update-rc.d", "sysv-rc-conf" or "sysvconfig" disable "gdm" in rc3. make initdefault to 3 in /etc/inittab. makuyl's tip would be better this way Code:
update-rc.d gdm stop 99 3 *Correction: makuyl's tip would be better this way Code:
update-rc.d gdm stop 01 3 |
Quote:
Code:
update-rc.d gdm stop 99 3 |
Actually I meant the 2-digit sequence code used by the SysV-init (provided it is SysV), and for gdm I think it was 01.
Thank you makuyl anyway. I shall edit the previous post too. *Note about my previous post makuyl's tip would be better this way Code:
update-rc.d gdm stop 01 3 |
Quote:
|
Quote:
|
Quote:
The proper solution would be to rename the offending "/etc/rc2.d/S99gdm" to something like "K01gdm" either directly or by using the 'update-rc.d' script. Another temporary solution would be to do something like: Code:
echo "asdasydo" >/etc/X11/default-display-manager |
Quote:
|
I do the following to prevent gdm starting,
Code:
#update-rc.d -f gdm remove Code:
#update-rc.d gdm defaults |
Thanks.
Now when I boot up it goes directly to a shell prompt (this is what I want). I got it to do this by typing: Code:
update-rc.d -f xdm remove |
Quote:
|
All times are GMT -5. The time now is 05:36 AM. |