Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am using Debian Linux. I am using a the machine as a Samba PDC. It works great. My problem is that the memory on this machine is limited (only 128 M). Most of the memory is used for X and KDE. I really have no use for X and KDE as I use the box as a headless server.
How do I disable loading X at boot? Samba needs to work as is...
What window manager do you have coming up for the graphical login screen? gdm, kdm, xwm? Lets say it's gdm for this example, that's the one Debian usually uses as the default. I'm assuming you are coming into a graphical login, most likely.
Go into the directory /etc/rc2.d/ and delete the link file that says something like S99gdm, (it may be different on your setup but should have a name similar, *gdm*, it points to the file /etc/init.d/gdm) This is a link pointing to the gdm startup script in /etc/init.d/ as I said.
DO NOT delete the /etc/init.d/gdm file, leave it alone. That way you can get X to start again at a later time if you want it back. Then goto dir /etc/rc0.d/ and copy the K0gdm file, or something similar, to the /etc/rc2.d/ directory, this isn't absolutely needed but can help stop the X login from loading which I've seen it do even without the startup file that you just deleted.
Use the command cp -pd *gdm* ../rc2.d/ and this will copy the K0gdm file and preserve the link to the file it points to. After this you can kill the login manager or simply reboot, if you really wanna. This will start the computer at the console login and X will not be running. Once you login you can start X with the startx command, do whatever you need to in X and logout of X and be back at the nice shiny commandline.
If you have any more questions about this, ex. you don't see a file I mentioned or whatever, don't hesitate to ask. I'll do what I can to help.
Originally posted by vectordrake Or......edit /etc/inittab to default to runlevel 3 instead of 5 and your GUI will not start.
That is for a distro such as Red Hat or Mandrake. Debian is not set up that way. Runlevels 2-5 are user configurable. The Default is runlevel 2 and in at least Woody all three are the same until you change them.
muxman gave you instructoins on how to do it the commandline way. For a gui use
you can just move gdm from Start to Kill in runlevel 2, save, exit, and then kill gdm. Next time you have to reboot it should come up to the commandline.