[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Runlevel for textmode



On 05/13/2007 10:51 AM, Tim Johnson wrote:
On Sunday 13 May 2007 22:13, Nelson Castillo wrote:
On 5/13/07, Tim Johnson <tim@johnsons-web.com> wrote:
 <snipped>
In Debian you use runlevel 2 for everything.
(I'd better say there's no need to use another runlevel).
You'll run on 2 by default whether you use X or not.
  understood.
I'd rm /etc/rc2.d/S30gdm (also xdm and kdm).

I think you can use also the "alternatives" for that and I guess this
is the debian way.

I think that:

 echo /bin/true > /etc/X11/default-display-manager

could work.

Check /etc/init.d/[x, g, k]dm to see how those scripts use the
alternatives.
  I commented out the line in default-display-manager.
  that did it.
thanks
tim


A better way to do it would be to use the update-rc.d command to configure [xgk]dm to start only in runlevel 4 which is similar to Slackware:

update-rc.d -f gdm remove
update-rc.d gdm start 70 4 . stop 30 0 1 2 3 5 6 .

http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-no-x-start

It's a good idea to install and read the Debian Reference:

aptitude install debian-reference-en

The document should be located in /usr/share/doc/Debian/reference/ after installation.






Reply to: