LinuxQuestions.org
Visit Jeremy's Blog.
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 08-17-2005, 02:50 PM   #1
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
How do I get debian to start in console mode?


I thought changing /ect/inittab

id:2:initdefault:

to

id:3:initdefault:

Would do this?

But no joy

What should I do?
 
Old 08-17-2005, 02:57 PM   #2
towjamb
Member
 
Registered: Aug 2004
Location: Canada
Distribution: Debian
Posts: 87

Rep: Reputation: 15
Try init1.
 
Old 08-17-2005, 02:59 PM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
You could add "exit 0" to the top of the xdm/kdm/gdm script to stop executing it (without the quotes).
 
Old 08-17-2005, 03:03 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Which login manager do you use? For kdm do:
update-rc.d -f kdm remove
update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .
That would make kdm start only in runlevel 5. You can of course change the levels according to needs. Then you can start it with: init 5
First perhaps check in which runlevels it starts:
ls -l /etc/rc* |grep kdm

Last edited by makuyl; 08-17-2005 at 03:04 PM.
 
Old 08-17-2005, 03:06 PM   #5
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by towjamb
Try init1.
Thats single user mode aint it?

Not what I want but ta
 
Old 08-17-2005, 03:07 PM   #6
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Moloko
You could add "exit 0" to the top of the xdm/kdm/gdm script to stop executing it (without the quotes).
OK could but the init levels on other systems worked

???
 
Old 08-17-2005, 03:09 PM   #7
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by makuyl
Which login manager do you use? For kdm do:
update-rc.d -f kdm remove
update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .
That would make kdm start only in runlevel 5. You can of course change the levels according to needs. Then you can start it with: init 5
First perhaps check in which runlevels it starts:
ls -l /etc/rc* |grep kdm

Seems a bit drastic the remove and install

I would like to sometimes use x but mostly use as a server and console mode

I would love just to change the init

Am I on a road to no go

Last edited by nebdy; 08-17-2005 at 03:10 PM.
 
Old 08-17-2005, 03:14 PM   #8
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You wouldn't remove and install any package. Just remaking the symlinks that tell init in which runlevels to start kdm. If you use kdm just paste in the two lines with update-rc.d and run them. Replace kdm with xdm or gdm if you use one of those. Then change default in inittab to 3.
 
Old 08-17-2005, 03:14 PM   #9
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Debian runs X from init 2, http://lists.debian.org/debian-lapto.../msg00235.html

...still looking for ye...
 
Old 08-17-2005, 03:24 PM   #10
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
update-rc.d -f kdm remove
OK

update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .

gave me

/etc/init.d/kdm: file does not exist

Doh!
 
Old 08-17-2005, 03:25 PM   #11
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Here's some ease of mind to you
Code:
root@mrk-fujibox:~# update-rc.d -f kdm remove
update-rc.d: /etc/init.d/kdm exists during rc.d purge (continuing)
 Removing any system startup links for /etc/init.d/kdm ...
   /etc/rc0.d/K01kdm
   /etc/rc1.d/K01kdm
   /etc/rc2.d/K01kdm
   /etc/rc3.d/K01kdm
   /etc/rc4.d/K01kdm
   /etc/rc5.d/S99kdm
   /etc/rc6.d/K01kdm
root@mrk-fujibox:~# update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .
 Adding system startup for /etc/init.d/kdm ...
   /etc/rc0.d/K01kdm -> ../init.d/kdm
   /etc/rc1.d/K01kdm -> ../init.d/kdm
   /etc/rc2.d/K01kdm -> ../init.d/kdm
   /etc/rc3.d/K01kdm -> ../init.d/kdm
   /etc/rc4.d/K01kdm -> ../init.d/kdm
   /etc/rc6.d/K01kdm -> ../init.d/kdm
   /etc/rc5.d/S99kdm -> ../init.d/kdm
root@mrk-fujibox:~#
And don't forget the dot at the end.
 
Old 08-17-2005, 03:26 PM   #12
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Quote:
Originally posted by nebdy
update-rc.d -f kdm remove
OK

update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .

gave me

/etc/init.d/kdm: file does not exist

Doh!
You are doing this as root and actually use kdm?
 
Old 08-17-2005, 03:30 PM   #13
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Code:
ben@debian:~# update-rc.d -f kdm remove
update-rc.d: /etc/init.d/kdm exists during rc.d purge (continuing)
 Removing any system startup links for /etc/init.d/kdm ...
ben@debian:~# update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .
update-rc.d: /etc/init.d/kdm: file does not exist


ben@debian:~#
And i did not forget the dot at the end!!
 
Old 08-17-2005, 03:32 PM   #14
nebdy
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by makuyl
You are doing this as root and actually use kdm?

Definately worth asking

And yes to both
 
Old 08-17-2005, 03:35 PM   #15
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Well, are you using kdm, gmd, xdm or some other way to start x?
Code:
root@mrk-fujibox:~# ls -l /etc/rc* |grep [gkx]dm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 S99kdm -> ../init.d/kdm
lrwxrwxrwx  1 root root 13 Aug 17 23:23 K01kdm -> ../init.d/kdm
root@mrk-fujibox:~# dpkg -l [gkx]dm |grep ii
ii  kdm            3.3.2-1        KDE Display Manager
ii  xdm            6.8.2.dfsg.1-5 X display manager
root@mrk-fujibox:~#
Note that xdm gets installed with X even if you want to use gdm or kdm.
 
  


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
SuSe 9.0 --> Start without Xserver? (in console mode?) DATA_OK Linux - Newbie 4 08-26-2004 04:39 AM
Mandrake 9.2's boot process entirely done in console mode before loading in X mode... mishmash Mandriva 6 02-17-2004 09:19 PM
Debian console video mode Radicalm16 Linux - Software 1 03-24-2003 09:57 PM
Boot in console mode or Launch X at start, how to config.? nutshell Linux - General 4 06-01-2002 10:54 PM
Start up in console mode omarswan Linux - General 3 05-21-2002 03:12 PM

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

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