LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-09-2006, 01:46 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Change RunLevel


I am wanting to change the run level on my Etch box and found this page:

http://www.debian.org/doc/FAQ/ch-customizing.en.html

You can see in section 10.5 there are many user modes but which do I swap if I just want the machine to boot in "non-graphical" mode? I just don't want Gnome to load yet which I assume is level 5.

Can I change to level 2 or does it need to be 1? It is not very specific.

Thanks!
 
Old 05-09-2006, 02:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964
1 is for single user mode, or "rescue" mode. mode good distributions use runlevel 3 as the standard non-X login runlevel, but afaik debian hads to be smug and different and use level 2. so you'd edit /etc/inittab and change the default from 5 to 2 and the next reboot you won't get X.
 
Old 05-09-2006, 02:55 PM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Welcome to Debian where everything gets started in Run level 2.. and run levels 2-5 are all identical.

If you don't want to boot into the GUI simply disable gdm in run level 2..

mv /etc/rc2.d/S99gdm /etc/rc2.d/K99gdm

Alternaltely you can run sysv-rc-conf and unselect the box for gdm in runlevel 2

Last edited by farslayer; 05-09-2006 at 02:57 PM.
 
Old 05-09-2006, 04:19 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by farslayer
Welcome to Debian where everything gets started in Run level 2.. and run levels 2-5 are all identical.

If you don't want to boot into the GUI simply disable gdm in run level 2..

mv /etc/rc2.d/S99gdm /etc/rc2.d/K99gdm

Alternaltely you can run sysv-rc-conf and unselect the box for gdm in runlevel 2

How is this complex suggestion different from what Acid suggested? I don't see the difference.
 
Old 05-09-2006, 04:33 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964Reputation: 1964
he's saying all the level's are the same, so that move would essentailly convert runlevel 2 into the equivalent of 5 - X. I'd not seen anythign before saying 2 to 5 inclusive were absolutely identical. I know various things about debian, but not that is was *that* erm... unique.
 
Old 05-09-2006, 04:43 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
When I tinker with Debian, I disable graphical login by doing
Code:
#update-rc.d -f kdm remove
To enable graphical login, I do
Code:
#update-rc.d -f kdm defaults
You can substitute "kdm" with whatever login manager you use.
 
Old 05-09-2006, 07:00 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Simply running the command sysv-rc-conf will show you all the services in all the runlevels. it's a very visual indication of how levels 2-5 are identical by default
 
  


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
Change runlevel jstephens84 Debian 4 01-02-2006 05:25 PM
Change runlevel in FC3 FinalFlash Linux - Newbie 3 05-15-2005 11:01 AM
Change runlevel Quiber Linux - Software 1 01-10-2005 11:27 PM
how do i change my runlevel pguru Linux - Newbie 5 08-13-2004 01:51 PM
some services down after a change of runlevel zovres Linux - Newbie 5 10-15-2003 07:48 PM


All times are GMT -5. The time now is 09:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration