Re: Run Levels
Kent West wrote:
Chris Robinson wrote:
Hi
Can anyone tell me how to get sarge to load to a shell prompt, and I
enter startx if I want to run X windows?
On redhat I used inittab run level 3 for shell and run level 5 for X
windows.
On Debian, levels 2-5 are identical by default, leaving it to the
sysadmin to customize them to his desires.
So, in order to avoid starting X on boot-up, you'll need to disable or
uninstall the graphical login manager (almost certainly GDM, KDM, WDM,
or XDM). Try "apt-get --purge remove xdm gdm wdm kdm"; that should take
care of your issue.
The way I do it is to pick a runlevel, say 3, that you want only non-X
stuff to start.
cd /etc/rc3.d
find all the links to X services like gdm, xdm, kdm, etc...and remove
them. Then inside /boot/grub/menu.lst copy your regular boot option and
modify it like this:
title Debian 2.6.10 terminal
root (hd1,0)
kernel /boot/bzImage-2.6.10 root=/dev/hdb1 ro init=/sbin/init 3
boot
(This is just an example. Replace with your kernel version and boot
devices)
Reply to: