Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-03 00:27:27 09月22日 Update

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.

Tags: Level mode graphics interface method machine time function more article system single user good practical that is code content action file article user Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn OPPO Reno Docker MariaDB Xiaomi