LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-30-2006, 07:26 AM   #1
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Rep: Reputation: 15
how boot in text-mode on Debian?


hello all..

I change /etc/inittab for 2,3,4,5 but my debian no boot in text-mode!!!

how do this work?

I am use:
-Debian 3.1r1 (kernel 2.4.27-2-386)
-Xfce4.0.5-1



thanks in advance!!!
 
Old 03-30-2006, 08:00 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Debian Boots into runmode 2 by default. runmodes 2-5 are set identically by default.

You need to set the system to NOT start gdm at boot, and you will get a text based login, after you login if you wish to start x you can simply startx

to change the startup of gdm you can simply run sysv-rc-conf and change which runlevels gdm starts up in. simply disabling it in runlevel 2 is the easiest method.

(note: instead of gdm your system may be using xdm or kdm, so if you don't find gdm in the list check for one of the others.. )
 
Old 03-30-2006, 09:13 AM   #3
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 15
I am use XDM.

how do in XDM?

thanks
 
Old 03-30-2006, 06:31 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
same way.. run the config tool sysv-rc-conf, find XDM in the list and uncheck the box for Runlevel 2...
 
Old 03-30-2006, 11:36 PM   #5
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 15
have other form without sysv-rc-conf?
 
Old 03-31-2006, 09:55 AM   #6
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
The scripts that are called when runlevel x starts are in the directory '/etc/rcx.d'. If you have a look in /etc/rc2.d, for example, you'll likely see a file (which will be a symlink) called S99xdm. The number might vary (I use kdm); it just tells the system what order to run the scripts, so for our current purpose it doesn't matter.

As I mentioned before, it's just a symlink to a file in /etc/init.d, as are all the other files in /etc/rc2.d. When the system boots into runlevel 2 it reads these files and executes them; so very simply, by removing the symlink, the script that launches xdm won't be called and X won't be started.

To summarise:
Code:
# rm /etc/rc2.d/S99xdm
Voila!
 
Old 03-31-2006, 10:50 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by xcore_on
I am use XDM.

how do in XDM?

thanks
Code:
#update-rc.d -f xdm remove
 
Old 03-31-2006, 07:27 PM   #8
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Try the Update tool redazz listed or simply rename the script from S99xdm to K99xdm S = Start K = Kill

mv /etc/rc2.d/S99xdm /etc/rc2.d/K99xdm
 
Old 04-01-2006, 02:15 PM   #9
dtcs
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware, Debian
Posts: 28

Rep: Reputation: 15
after you remove your login manager (xdm) with "update-rc.d -f xdm remove" it will remove the daemon from all runlevels.

Next time you want to start a window manager eg WindowMaker make a file ~/.xinitrc
and it should contain exec wmaker, for KDE its startkde, for gnome its gnome-wm?

now when you type startx it will read ~/.xinitrc
 
  


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
Boot in text mode Fredstar Linux - Newbie 7 01-17-2005 02:31 AM
HELP: boot up in text-mode only? kevingpo Linux - Hardware 4 12-12-2004 07:53 AM
Don't know how to boot in a non-text mode leefarrant Linux - Newbie 10 11-15-2003 07:35 AM
How to boot without X (Text mode)??? Jefklak Red Hat 5 10-16-2003 03:10 PM
How to boot into console (text) mode? dhsieh Linux - Hardware 2 10-02-2003 07:45 PM


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