Rover12421's Blog

The End.

修改Linux的默认登入模式

/etc/inittab
-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–
…….
# Default runlevel. The runlevels used by RHS 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:5:initdefault:
……..
-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–-–
将id和initdefault的5进行修改,3为命令行,5为X-Windows

Comments