Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 05-22-2004, 02:30 PM   #1
LQ Newbie
Registered: May 2004
Posts: 6

Rep: Reputation: 0
Debian Linux without X?

Hi All

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...

Thanx for the response..

Old 05-22-2004, 02:57 PM   #2
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
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.

Last edited by muxman; 05-22-2004 at 03:02 PM.
Old 05-22-2004, 04:06 PM   #3
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
In a console in x do apt-get install rcconf.. AFter it installs do rcconf and remove what you want.. It will remove the stuff in the files for u.
Old 05-22-2004, 10:50 PM   #4
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Or......edit /etc/inittab to default to runlevel 3 instead of 5 and your GUI will not start.
Old 05-22-2004, 11:25 PM   #5
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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.
Old 05-23-2004, 01:56 AM   #6
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
I didn't even know about rcconf and ksysv, thanks guys. I've been doing it the hard way. But sometimes that is not bad, you learn and you know your system better for doing it that way.

For me that's the hardest thing about any distro, even knowing what tools and progs there are out there to use. There are so many and you never know what there is available.

Thanks again,

Last edited by muxman; 05-23-2004 at 02:01 AM.
Old 05-23-2004, 06:55 AM   #7
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
If you dont really need X why dont you just uninstall it.

apt-get remove x-window-system
Old 05-23-2004, 06:18 PM   #8
LQ Newbie
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanx much for all the responses. It worked!! ksysv is incredibly simple.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Linux Mailserver -lcf- Linux - Networking 4 03-26-2008 02:33 AM
New to Linux and Debian Ic3D3mon Member Intro 2 07-06-2005 04:33 PM
Debian GNU/Linux 3.0 r3??? harlemno1 Linux - Software 2 11-04-2004 07:12 PM
Debian Linux ac402 Linux - Newbie 1 12-27-2003 09:10 PM
how to uninstall debian linux ray ferrari Debian 4 09-24-2003 12:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration