Find the answer to your Linux question:
Results 1 to 7 of 7
How do you go into command-line only mode anyway? Such that it does not show X?...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20

    go into command-line only

    How do you go into command-line only mode anyway? Such that it does not show X?

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,085
    Quote Originally Posted by alethiophile View Post
    How do you go into command-line only mode anyway? Such that it does not show X?
    You can edit the default runlevel line in /etc/inittab:

    Code:
    id:3:initdefault:
    Just change the number to whatever runlevel you want to boot into.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    20
    What are the runlevels? How do I change from one to another in-session?

  4. #4
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,085
    You can use telinit to change to different runlevels on the fly.

    Go to a terminal/konsole and run man telinit to get a better understanding of the command itself, and runlevels.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    How do you go into command-line only mode anyway? Such that it does not show X?
    First of all, Which distro are you using?

    You can boot up machine in command line mode by default in most of distros using method suggested by ozar.
    There is no inittab file in a few distros and one has to use alternative methods.

    Check runlevels here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    On Debian there is no need to change runlvels. All you simply do is
    Code:
    /etc/init.d/gdm stop
    If you want to always boot into the CLI by default you do
    Code:
    update-rc.d gdm remove
    In both examples, replace gdm with xdm or kdm if they are the login managers you use.

  7. #7
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    160

    go into command-line only at boot time

    You can also make a choice of runlevel at boot time.
    Both LILO and GRUB support this, here is some info.

    cheers, kai

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •