Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the boot steps of the Linux operating system

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you what the startup steps of the Linux operating system are, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. Read the information of MBR and start Boot Manager

Windows uses NTLDR as the Boot Manager, and if you have multiple versions of Windows installed on your system, you need to select the system you want to enter in NTLDR.

Linux usually uses the powerful and flexible configuration of GRUB as the Boot Manager, and we will show you how to use it in the startup management section.

2. Load the system kernel and start the init process

The init process is the root process of Linux, and all system processes are its child processes.

3. The init process reads the information in the "/ etc/inittab" file, enters the preset run level, and runs the scripts in the corresponding folder at that run level in sequence. Scripts are usually started with the "start" parameter and point to a program on a system.

Typically, startup scripts under the "/ etc/rcS.d/" directory are executed first, followed by the "/ etc/rcN.d/" directory. For example, if you set the run level to 3, then its corresponding startup directory is "/ etc/rc3.d/".

4. Start the Xwindow server "xorg" according to the corresponding script in the "/ etc/rcS.d/" folder

Xwindow is a graphical user interface system under Linux.

Start the login manager and wait for the user to log in

The Ubuntu system uses GDM as the login manager by default. After you enter your user name and password in the login manager interface, you can log in to the system. (you can find a link named "S13gdm" in the "/ etc/rc3.d/" folder)

If you want Ubuntu to boot to command prompt each time, you can enter the following instructions:

$echo "false" | sudo tee / etc/X11/default-display-manager

The next time you boot, it will start in instruction mode. If you want to change back to boot x window, you can type:

$echo "/ usr/bin/gdm" | sudo tee / etc/X11/default-display-manager

The above is what the boot steps of the Linux operating system are. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 240

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report