DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi!
My Debian "Sarge" box is now running with X and KDE irrespective of runlevel 2...5. I'm aiming to customize runlevel 2 so as to disable KDE and X at boot time. Could anybody please give me a list of Linux services which I must stop to this end? Disparate examples of such services are also very much appreciated.
Hi!
My Debian "Sarge" box is now running with X and KDE irrespective of runlevel 2...5. I'm aiming to customize runlevel 2 so as to disable KDE and X at boot time. Could anybody please give me a list of Linux services which I must stop to this end? Disparate examples of such services are also very much appreciated.
No need to disable services just use rm /etc/rc2.d/S99kdm and you may have to remove the xdm or others if they are there as well.
I had the same thing happen with Debian Sarge. My /etc/inittab specifies run level 3 as the default, which is text based console. However when I installed KDE the system started running a GUI on startup. It didn't change my inittab so I don't know exactly why this is happening. This is what I did in /etc/rc3.d to get back to text based console by default.
You can see that I just disabled a bunch of startup files. You can also see that non of them is labeled as starting a GUI. I figure that the GUI is started somewhere else in the boot scripts. This got the job done and it got rid of a bunch of services that I don't want running such as NFS. If you don't have a startup for iptables that's because I added that myself.
I hope this helps. I think that we both need to spend some time at the Debian web site and figure out the right way to get this done.
Last edited by stress_junkie; 01-14-2006 at 02:38 PM.
I had the same thing happen with Debian Sarge. My /etc/inittab specifies run level 3 as the default, which is text based console. However when I installed KDE the system started running a GUI on startup. It didn't change my inittab so I don't know exactly why this is happening.
When you install a display manager the Debian system assumes you want to use it thus it installs the links to start it on boot. You have to have changed the inittab Debian defaults to runlevel 2 I have never seen it do differently in the over 3 years I have been using it.
Quote:
This is what I did in /etc/rc3.d to get back to text based console by default.
# ls -1
disable.s99kdm
disable.s99xdm
You can also see that non of them is labeled as starting a GUI. I figure that the GUI is started somewhere else in the boot scripts.
I hope this helps. I think that we both need to spend some time at the Debian web site and figure out the right way to get this done.
Those two would start the KDE and X display managers. The right way to do it is remove either the kdm and xdm packages or the links to them in the runlevel you start in.
I would have removed the xdm and kdm and other links that I didn't want to run in rc3.d but I like to be able to undo experments.
So you're saying that a system with Debian + GUI needs to boot to runlevel 2 for a text console? That's one thing about different distros. It seems like they all have some idiomatic and weird thing. I was just reading about Gentoo. Apparently there is an application to add startup services to your default run level. I forget what it is called but it is something like add2defaultrc <file in init.d>. And my most familiar distro, SuSE, is VERY idiomatic with its system configuration. It's frustrating, especially when you compare it to the simple model used by Solaris and other Unixes.
Last edited by stress_junkie; 01-14-2006 at 05:56 PM.
I would have removed the xdm and kdm and other links that I didn't want to run in rc3.d but I like to be able to undo expermemts.
Renaming works just as well so it can be good to keep the old links for possible re-enabling.
Quote:
So you're saying that a system with Debian + GUI needs to boot to runlevel 2 for a text console?
No what I am saying is in any runlevel 2-5 on a Debian system they are configured identically when software installs startup links it gets installed in 2-5 with the default runlevel being 2 and when you install something that creates startup links it will be run on the next boot unless you disable the link. So there is no default console or X runlevel only different software installed, sys admin preferences.
Quote:
That's one thing about different distros. It seems like they all have some idiomatic and weird thing. I was just reading about Gentoo. Apparently there is an application to add startup services to your default run level. I forget what it is called but it is something like add2defaultrc <file in init.d>. And my most familiar distro, SuSE, is VERY idiomatic with its system configuration. It's frustrating, especially when you compare it to the simple model used by Solaris and other Unixes.
Yeah there is what 5 million distros with new ones be added every day each doing their own thing. To do the same in Debian as Gentoo you would use update-rc.d to manage your startup links.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.