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

The method of entering the graphical Interface when linux is powered on

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

Share

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

This article will explain in detail the method of entering the graphical interface when linux is booted. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Edit / etc/inittab file

# inittab is only used by upstart for the default runlevel.## ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## System initialization is started by / etc/init/rcS.conf## Individual runlevels are started by / etc/init/rc.conf## Ctrl-Alt-Delete is handled by / etc/init/control-alt-delete.conf## Terminal gettys are handled by / etc/init/tty.conf and / etc/init/serial.conf,# with configuration in / etc/sysconfig/init.## For information on how to write upstart event handlers, or how# upstart works See init (5), init (8), and initctl (8). # # Default runlevel. The runlevels used are:# 0-halt (Do NOT set initdefault to this) # 1-Single user mode# 2-Multiuser, without NFS (The same as 3, if you do not have networking) # 3-Full multiuser mode# 4-unused# 5-X1room6-reboot (Do NOT set initdefault to this) # id:3:initdefault:

Find this line of code: id:3:initdefault:

It defines the level of init action performed after Linux enters the system, with the following six levels:

Level 0, suspend, shutdown mode

Level 1, single user mode

Level 2, multi-user mode, but no network functionality

Level 3, full-featured single user mode

Level 4, not needed.

Level 5PowerX11 mode, that is, graphical interface mode

Level 6, restart mode.

Change the original "3" to "5", and then reboot can restart the system.

This is the end of the method of entering the graphical interface when linux is booted. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.

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: 0

*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