LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-26-2011, 09:18 PM   #1
ThorQuest
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Booting Directly Into CLI?


Hi searched all over the net to see if it's possible and nothing yet. It's good to be here at LQ.O
 
Old 06-26-2011, 09:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

Which distro, and what do you mean by "directly into CLI"?
Not to see a GUI, or being logged into a full-screen console
automatically?


Cheers,
Tink
 
Old 06-26-2011, 09:24 PM   #3
Cultist
Member
 
Registered: Feb 2010
Location: Chicago, IL
Distribution: Slackware64 14.1
Posts: 777

Rep: Reputation: 102Reputation: 102
You just have to change the runlevel you boot into.

To do this, edit /etc/inittab and find the line
Code:
id:#:initdefault
(the # will be a number 1 through 6)
Change it to
Code:
id:3:initdefault
to boot directly into CLI.
 
Old 06-26-2011, 09:37 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Cultist View Post
You just have to change the runlevel you boot into.

To do this, edit /etc/inittab and find the line
Code:
id:#:initdefault
(the # will be a number 1 through 6)
Change it to
Code:
id:3:initdefault
to boot directly into CLI.

Not true for debian, *buntu and their derivatives. They fire up X (by
default) in all runlevels from 2-5.


Cheers,
Tink
 
Old 06-26-2011, 09:37 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
Quote:
Originally Posted by Cultist View Post
You just have to change the runlevel you boot into.
This is generally true, but not always. For example, my understanding is that, for Debian, runlevels 3-5 all invoke the GUI if a Graphical Display Manager (GUI Log in screen) is installed. I think Ubuntu works the same way.

It will help if you tell us what distro you are using.
 
Old 06-26-2011, 09:40 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Quote:
Q: [Can you] boot directly Into CLI?
A: Sure. It's called "init 3"

http://linux.die.net/man/5/inittab

One way is to manually edit /etc/inittab:
Code:
id:3:initdefault:
The "runlevels" for most *nix systems (including most Linux distros) are broken down like this:
Code:
http://www.linuxtopia.org/HowToGuides/runlevel.html

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
The basic idea is this:
* The GUI "look and feel" (e.g. Gnome, KDE or XFCE) sit on top of X Windows
* X Windows sits on top of the multi-user OS
* Basic kernel capabilities are available in either Single-user or Multi-user modes

'Hope that helps .. PSM

PS:
Note: for some distros, like Ubuntu, you might have to do slightly different things:

http://nixcraft.com/linux-software/2...c-inittab.html

Last edited by paulsm4; 06-26-2011 at 09:44 PM.
 
Old 06-27-2011, 04:35 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Many do have terminals up at start. Usually you can press a key combo to access them. Like alt+F2 or some set of keys.
 
  


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
Ubuntu 8.04 Alpha6 booting into busybox CLI dotancohen Linux - Laptop and Netbook 1 03-09-2008 07:48 PM
booting an .ISO directly from GRUB lostinvietnam Linux - General 1 01-29-2007 11:45 PM
Booting directly into fc5 with ntldr revoked Linux - Newbie 5 09-01-2006 08:59 AM
booting directly into desktop streetmagic Mandriva 11 07-14-2005 09:42 PM
Booting NT and XP directly--???? ur-unholyness Linux - Newbie 5 10-22-2004 11:00 AM


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