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