Latest LQ Deal: Latest LQ Deals
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 04-11-2007, 11:32 AM   #1
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
log in console mode in debian etch

Hi, after I installed etch, automatically gnome starts as my default session, but I don't want this, neither I want to use "the session button" and use "console failsafe session", I want to "log in console mode" and if I decide run startx or stay in console mode, in the web I just find that I need to deactivate "gdm", but question is:

from what file I have to "deactivate" this line? can you explain me this process?

Old 04-11-2007, 12:04 PM   #2
LQ Newbie
Registered: Sep 2005
Location: north
Distribution: gentoo
Posts: 23

Rep: Reputation: 15
Ok, here's my understanding of things. In Linux you have runlevels. Different distributions handle runlevels differently (imagine that). Ubuntu (I haven't tried debian etch yet, but I would guess it's similar) has runlevels 1-5, but runlevels 3-5 are almost identical and X will start in any of them. Back in the old days, runlevel 3 always meant multi-user with no X and runlevel 5 meant multi-user with X. These days it seems everyone wants X so they put it in all the multi-user runlevels. To get around this you need to go into the runlevel that you want to designate as the non-X runlevel and remove the link to gdm. In Ubuntu Edgy, and assuming that you want the runlevel with no X to be 3, you would go to the folder /etc/rc3.d and remove the link S13gdm.

The second part of this was something I was not aware of until today. Ubuntu has moved away from the /etc/inittab model and is using something called Upstart to handle the way runlevels are handled. A nice caveat is that Upstart still respects /etc/inittab, so you can use the good-old-fashioned way of doing things and just create a file called /etc/inittab (if one doesn't already exist) and add the line:


Otherwise you can try using the new Upstart program. Some documentation on that can be found at
Old 04-11-2007, 12:04 PM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Keep in mind Debian Starts EVERYTHING in run level 2
in Debian ALL runlevels from 2-5 are the SAME by default

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

Just rename that symlink and gdm will not start at boot time.
/etc/rc2.d contains links to scripts that start services at boot time.

S means Start
K means Kill
The higher the number the later it will start or stop.

There are also utilities for managing your runlevels.


Last edited by farslayer; 04-11-2007 at 12:05 PM.


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
update Debian testing etch RC1 to etch stable cccc Debian 11 01-08-2007 10:02 PM
How to have a keyboard correctly mapped in gnome and in console mode (DEBIAN ETCH) baudouin Linux - Hardware 0 10-26-2006 10:21 AM
LXer: Debian etch beta 3 graphical mode installation with screenshots LXer Syndicated Linux News 0 09-11-2006 02:21 PM
How do I get debian to start in console mode? nebdy Debian 17 08-17-2005 05:42 PM
Debian console video mode Radicalm16 Linux - Software 1 03-24-2003 09:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 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
Open Source Consulting | Domain Registration