Visit Jeremy's Blog.
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 03-19-2011, 07:54 PM   #1
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Question Debian 6 - Run Level - Boot to Command LIne

I have Debian 6 installed on my netbook which I tend to spend more time at a command prompt then gnome so I would like it to boot to the command line with the same services as the default with the option to "startx"

I tried ->


1. update-rc.d -f gdm remove
2, Updated inittab
id:3:initdefault: --> from default of 2

No luck. Any advice ?
Old 03-19-2011, 09:54 PM   #2
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
You've set your initdefault to 3. So if gdm is still starting, you need a way to turn it off on runlevel 3. Best way i found is to install & use the package sysv-rc-conf.

Run sysv-rc-conf, locate in the column for runlevel 3 the line for your login manager: either gdm or kdm or whatever, uncheck the box for it to start. Now at runlevel 3 gdm won't be started.

You will have console mode. If you want to start X, simply launch startx or telinit 2.
1 members found this post helpful.
Old 03-19-2011, 10:02 PM   #3
Senior Member
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 15 , Linux-Lite 2.4, Slackel 14.1, ChromeOS
Posts: 3,794
Blog Entries: 19

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
My single user mode grub entry (/boot/grub/menu.lst) to keep slim (I don;t use GDM) from starting.

title		Debian GNU/Linux, kernel 2.6.34-stevo (single-user mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.34-stevo root=UUID=33d2cb14-08cc-4db8-80c6-771828e68200 ro single
initrd		/boot/initrd.img-2.6.34-stevo
single at the end of kernel line keeps slim from opening.

OOOPs. I run Grub Legacy instead of Grub2. I forgot most folks now run Grub2 in Debian 6,

Last edited by rokytnji; 03-19-2011 at 10:12 PM.
Old 03-20-2011, 07:00 AM   #4
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103

I install sysv removed GDM3 from the set run level & viola I am all set. I am actually answering from e-links.... .. a little clumsy but that is a different post.

Thank You very much for your advice !!!!


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
Nvidia won't load no KDE forced back to command line run level 1 nickcommandlinenewbie Mandriva 25 04-16-2010 06:23 PM
How to enter graphical mode (run level 5) command line (run lenel 3) edmondgyampoh Linux - Newbie 3 05-15-2009 07:33 PM
run command on debian boot? aktivemac Debian 12 02-29-2008 08:59 PM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 05:55 PM
How can I go to the windows screen from the command line on suse, on run level 3? abefroman SUSE / openSUSE 1 05-08-2005 08:00 PM

All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration