Linux Newbie help
 help / color / mirror / Atom feed
From: Amin <raihan@citech-bd.com>
To: linux-newbie@vger.kernel.org
Subject: Re: How do I stop GUI from autoloading?
Date: Sat, 10 May 2003 16:09:03 +0600	[thread overview]
Message-ID: <20030510100903.GA1586@localhost.localdomain> (raw)

Hi,

Basically, you need to edit your ``/etc/inittab'' file, and
change your default runlevel to 3 (it's currently 5).  What
this means to you is: change the line that says

id:5:initdefault:

to

id:3:initdefault:

This will be a simple search-and-replace operation from any
text editor.

But you need to be able to access the file to be able to
edit it, and you can't do that when you're stuck in a messy
GUI.  You need to access it from a text-based command
prompt.  This is actually quite possible, and it gets easier
each time you do it:

1.  Boot from your Linux installation CD.  Go through the
    preliminary steps of the installation (nothing that
    involves overwriting anything), then press [Alt]-[F3].
    I think you need to press the [Alt] button that's on the
    left side of your keyboard.  This will put you into a
    command prompt (probably ``bash'') with full system
    access.

2.  Mount the filesystem that contains your Linux
    installation's ``/etc/inittab'' file.  To do this, you
    need to determine two things: where to mount the
    filesystem, and what partition to mount.  Don't get
    disheartened!  The first requirement is very easy: make
    a directory ``/mnt'':

    cd /
    mkdir mnt
    cd mnt

    So now you're in the directory ``/mnt''.  Now you need
    to find out the partition your Linux installation is in;
    probably ``/dev/hda1'' (since you implied that Linux is the
    only OS on the PC).  So mount it:

    mount -t auto /dev/hda1 .

    Notice that there actually was a space followed by a dot
    on the command line above.  Now you should be able to
    access all the files in your installation, including
    ``/etc/inittab''.  Note that because you've mounted it
    onto a temporary Linux system right now, this file will,
    for you, actually be ``/mnt/etc/inittab''.

3.  Now edit said file.  Most likely you'll only have the
    ``vi'' editor available to you, so invoke it thusly
    (assuming that you're still in /mnt):

    vi etc/inittab

    You should see the critical line I mentioned earlier
    somewhere near the top of the screen.  Move the text
    editing cursor to it using the arrow keys, and move the
    cursor so that it covers the ``5'' in that line.  Now,
    to replace the ``5'' with a ``3''.  Type

    r3

    and the replacement takes place.  Now to save and exit.
    Type

    ZZ

    and you are returned to the command prompt.

4.  Now you must unmount your Linux installation's
    filesystem and restart the computer.  Type these
    commands:

    cd /
    umount /mnt

    Then take out your installation CD and simply hit your
    system unit's reset button.

HTH,
Yawar Amin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

             reply	other threads:[~2003-05-10 10:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10 10:09 Amin [this message]
2003-05-10 13:29 ` How do I stop GUI from autoloading? Charlotte Miller
2003-05-10 15:09   ` Chuck Gelm
2003-05-10 15:42   ` Ray Olszewski
2003-05-10 16:09     ` Amin
2003-05-10 16:39       ` Ray Olszewski
2003-05-11 13:51         ` sean
2003-05-11 21:14         ` renaming really long filenames Chuck Gelm
2003-05-11 21:44           ` Ray Olszewski
2003-05-19 16:11           ` Stephen Samuel
2003-05-20 22:16             ` Chuck Gelm
2003-05-19 17:51       ` How do I stop GUI from autoloading? Stephen Samuel
2003-05-19 18:49         ` Richard Adams
2003-05-19 19:07           ` Stephen Samuel
2003-05-19 19:55             ` Richard Adams
2003-05-19 20:39               ` Stephen Samuel
2003-05-19 21:06                 ` Richard Adams
2003-05-19 21:14               ` Ray Olszewski
2003-05-20  5:23                 ` Richard Adams
2003-05-20  6:19                   ` Ray Olszewski
2003-05-20 22:26                     ` Chuck Gelm
2003-05-21 22:47                       ` Riley Williams
2003-05-10 15:43   ` Amin
2003-05-10 15:50     ` Brian P. Bilbrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030510100903.GA1586@localhost.localdomain \
    --to=raihan@citech-bd.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox