Debian RunLevel enters the character interface by default

Source: Internet
Author: User

This article briefly introduces the concept of Debian RunLevel, describes the changes to the RunLevel runtime, so that RunLevel 3 does not enter the graphical interface by default, but enters the character interface. Set RunLevel 3 as the default startup after modifying RunLevel.

1.runlevel Introduction

Debian consists of 0-6 runlevel:

0:halt; IE shutdown

1: Single-user mode

2-5: Multi-user mode

6: restart

Note: Redhat is started by default at runlevel 5 (server default 3), Debian/ubuntu starts with RunLevel 2 by default. The runlevel3-5 here are all entered into the graphical interface. This is not consistent with other Linux distributions, typically RunLevel 3 is multi user mode, which is directly logged into the character interface, while RunLevel 5 is the multi user mode with GUI, which is the login to the graphical interface.

To view the currently used RunLevel, you can use the command

# RunLevel

You can view the system default runlevel in the/etc/inittab file:

#The Default RunLevel

Id:2:initdefault:

2. Modify RunLevel 3

in the /etc/rc3.d in You can view multiple K and the S the beginning of the file, they are some symbolic links (equivalent to shortcuts) when the system starts RunLevel , it will start automatically. S start file (similar to boot). Set RunLevel 3 to automatically enter the character interface step as follows:

    • Enter/ETC/RC3.D

    • Locate the S**GDM3 entry and modify it to K**GDM3

      # MV S**GDM3 K**GDM3

    • Run the following command to have the system re-order the startup scripts based on dependencies

      # UPDATE-RC.D GDM3 Defaults

3. Modify the system default run level

Open a/etc/inittab file and find "#The default RunLevel":

#The default RunLevel

Id:2:initdefault:

Revision changed to

Id:3:initdefault:

4. Rebooting the system

# reboot


Debian RunLevel enters the character interface by default

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.