LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-22-2003, 12:38 PM   #1
embalmedlenin
LQ Newbie
 
Registered: Feb 2003
Location: Apex, North Carolina
Distribution: Debian
Posts: 29

Rep: Reputation: 15
Stoping xwindows from starting


How do i stop xwindows from starting automaticlly. Every time i terminate the session it just restarts the x server.
How do i make it start up in the command prompt.
 
Old 09-22-2003, 12:54 PM   #2
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
This question is asked all the time here. There is a file called /etc/inittab with a line that looks something like this:

# The default runlevel is defined here
id:5:initdefault:

Change the 5 to a 3 with a text editor. That's all there is to it.
 
Old 09-23-2003, 03:19 AM   #3
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
That's the way you do it in Red Hat, but not in Debian.

In Debian, the login managers (xdm, kdm, gdm - they start X and give you the GUI login prompt) are installed as services in /etc/rc*.d. To stop the login manager, get a root shell and type "/etc/init.d/xdm stop". To make the X login manager go away permanently, go to /etc/rc2.d (assuming you're in runlevel 2) and remove the symlink S99kdm (or xdm or gdm).

Last edited by meldroc; 09-23-2003 at 03:20 AM.
 
Old 09-23-2003, 10:04 PM   #4
dbkluck
Member
 
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
alternatively, you could apt-get install a nifty little program called rcconf. then type rcconf and it will give you a list of all the services started on boot-up. just uncheck gdm, kdm, and/or xdm. i've found that this way of configuring things tends to be harder to screw up than editing the rc*.d files.
 
Old 09-25-2003, 05:56 PM   #5
embalmedlenin
LQ Newbie
 
Registered: Feb 2003
Location: Apex, North Carolina
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks alot I'll try it out
 
Old 09-26-2003, 12:21 AM   #6
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Quote:
Originally posted by dbkluck
alternatively, you could apt-get install a nifty little program called rcconf. then type rcconf and it will give you a list of all the services started on boot-up. just uncheck gdm, kdm, and/or xdm. i've found that this way of configuring things tends to be harder to screw up than editing the rc*.d files.
And this isn't in the base system WHY?

My (already low) respect for Debian has just dropped to whole new lows...
 
Old 09-26-2003, 12:24 AM   #7
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
Originally posted by LSD
And this isn't in the base system WHY?

My (already low) respect for Debian has just dropped to whole new lows...
Because the base system doesn't need it? Besides, who manually mucks with rc*.d files and links anyway? Why do you think Debian invented update-rc.d? (oh, and Gentoo fanboi, where do you think Gentoo stole most of its ideas from? oh that's right, Debian!)
 
Old 09-26-2003, 12:56 AM   #8
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Why doesn't the base system need it? Not all of us are stupid enough to install everything on offer. And update-rc.d is a pain, it doesn't work nearly as well (any tool where you have to use a --force switch to get things done sucks) as either rc-update on Debian or even Red Hat's ntsysv tool (which looking at it now looks suspiciously related to rcconf). If you want to adjust startup services on any Linux system you have to fiddle with the rc*.d files and a decent interface for that is a must.
 
  


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
Starting Mouse without Xwindows longnam Debian 2 03-22-2005 01:34 PM
Starting and stoping squid in Slackware 10 barjeesshees Linux - Networking 0 10-22-2004 06:19 AM
Stoping and starting apache tuly Linux - Networking 3 05-30-2001 12:05 PM
Starting/Stoping Deamons ejtbrown Linux - General 2 03-21-2001 05:22 PM
Starting xWindows in Mandrake 7.2 jwilson Linux - Newbie 2 02-26-2001 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:18 AM.

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
Open Source Consulting | Domain Registration