微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux怎么在开机时进入图形界面

编辑/etc/inittab文件

# 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 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:

找到这行代码id:3:initdefault:

它定义Linux进入系统后执行的init动作级别,共有以下6个级别:

级别0,挂起、关机模式;

级别1,单用户模式;

级别2,多用户模式,但没有网络功能;

级别3,全功能的单用户模式;

级别4,没用到;

级别5,X11模式,也就是图形化界面模式;

级别6,重起模式。

将原来的“3”修改成“5”,然后reboot重启系统即可。

推荐教程:linux教程

原文地址:https://www.jb51.cc/linux/1197303.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐