LinuxQuestions.org
Review your favorite Linux distribution.
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 01-27-2005, 06:59 PM   #1
kram
Member
 
Registered: Nov 2004
Distribution: Gentoo
Posts: 33

Rep: Reputation: 15
Boot into console


Hello,
I need to set my default run level so I will boot to a vga console and not boot directly into X so I can install the Nvidia drivers.

Run level 1 is bad because that is what the installer said when I tried installing it their.

Thankxs
 
Old 01-28-2005, 03:16 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If Debian is like most linux's you can enter 'init 3' as root to enter init level 3.

Check out the contents of /etc/inittab to make certain.
Mine contains these lines (among others):
Code:
# The default runlevel is defined here
id:3:initdefault:

# First script to be executed, if not booting in emergency (-b) mode
si::bootwait:/etc/init.d/boot

# /etc/init.d/rc takes care of runlevel handling
#
# runlevel 0  is  System halt   (Do not use this for initdefault!)
# runlevel 1  is  Single user mode
# runlevel 2  is  Local multiuser without remote network (e.g. NFS)
# runlevel 3  is  Full multiuser with network
# runlevel 4  is  Not used
# runlevel 5  is  Full multiuser with network and xdm
# runlevel 6  is  System reboot (Do not use this for initdefault!)
#
The 'id:3:initdefault' is where the default level is determined. On my system, to boot into xwindows, I would change the line to read: id:5:initdefault

There may also be an 'init s' for single on your system. Remember that some distro's use slightly different runlevel values, so be sure to check the file.

Last edited by jschiwal; 01-28-2005 at 03:19 AM.
 
Old 01-28-2005, 10:31 AM   #3
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
Quote:
Originally posted by jschiwal
[B]If Debian is like most linux's you can enter 'init 3' as root to enter init level 3.

Check out the contents of /etc/inittab to make certain.
Mine contains these lines (among others):
This is true in most linux distributions, but not with Debian. Debian ships by default with runtime level 3. The way that you can get it to boot without the graphical login is to remove the link to gdm in /etc/rc3.d, typically S99gdm.
 
Old 01-28-2005, 03:10 PM   #4
kram
Member
 
Registered: Nov 2004
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
Yeah, that works.
I tried changing the inittab file before posting the question, but the only one that didn't boot into X was runlevel 1.

 
Old 01-29-2005, 05:38 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
OK, i meant to read the comments in the /etc/crontab file. They should provide you with a description of what the various run levels are used for.

On some distro's such as SuSE and Mandrake, init level 3 is for multiuser, networked, console and init level 5 is for logging in graphically to KDE, Gnome or another windows manager session. However, some distro's use a different run level instead of 5.

You can also try the boot option 'single' to boot into the console. This is a console single-user mode, where you could run the nvidia installer program.
 
  


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
How to boot to standard console (not X)? jdupre Fedora 1 04-20-2005 02:42 PM
console boot xamdbz01 Fedora 6 01-09-2005 11:09 AM
Blank console on boot?? em00guy Slackware 4 10-20-2004 01:22 PM
console resolution on boot ixefs Linux - General 1 12-21-2003 03:10 PM
Console Errors on boot Michael Ellis Programming 2 09-30-2002 02:48 PM


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