LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-11-2007, 12:32 PM   #1
htamayo
Member
 
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?

thanks
 
Old 04-11-2007, 01:04 PM   #2
svenwinkle
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:

id:3:initdefault:

Otherwise you can try using the new Upstart program. Some documentation on that can be found at http://upstart.ubuntu.com/.
 
Old 04-11-2007, 01:04 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

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

sysv-rc-conf
sysvconfig

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


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


All times are GMT -5. The time now is 04:21 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