LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-22-2004, 01:30 PM   #1
wgandhi
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..

-Wishwesh
 
Old 05-22-2004, 01:57 PM   #2
muxman
Member
 
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 02:02 PM.
 
Old 05-22-2004, 03:06 PM   #3
iotc247
Member
 
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, 09:50 PM   #4
vectordrake
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, 10:25 PM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Quote:
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
ksysv
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, 12:56 AM   #6
muxman
Member
 
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,
-=MuX=-

Last edited by muxman; 05-23-2004 at 01:01 AM.
 
Old 05-23-2004, 05:55 AM   #7
Draygo
Member
 
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, 05:18 PM   #8
wgandhi
LQ Newbie
 
Registered: May 2004
Posts: 6

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


Reply


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 01:33 AM
New to Linux and Debian Ic3D3mon LinuxQuestions.org Member Intro 2 07-06-2005 03:33 PM
Debian GNU/Linux 3.0 r3??? harlemno1 Linux - Software 2 11-04-2004 06:12 PM
Debian Linux ac402 Linux - Newbie 1 12-27-2003 08:10 PM
how to uninstall debian linux ray ferrari Debian 4 09-23-2003 11:06 PM


All times are GMT -5. The time now is 09:51 PM.

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