Users who are familiar with Linux know that most Linux systems only need to directly edit the/etc/inittab file to modify the startup interface. However, after I modify the iniitab file in OpenSUSE today, the graphic interface is displayed by default after I start the system. Check the notes in the inittab file and find the following lines:
# The default runlevel for SysVinit is defined here# please note that for systemd the symbolic link# /etc/systemd/system/default.target has to relinked# to e.g. /lib/systemd/system/runlevel3.target#id:5:initdefault:
View the attributes of the "/etc/systemd/system/default.tar get" File
$ l /etc/systemd/system/default.targetlrwxrwxrwx /etc/systemd/system/default.target -> /usr/lib/systemd/system/runlevel5.target
The following files are generated in the/usr/lib/systemed/system/folder:
Runlevel0.target
Runlevel1.target
Runlevel2.target
Runlevel3.target
Runlevel4.target
Runlevel5.target
Runlevel6.target
It is enough to see that SUSE uses these link files to set the startup interface (you can view the file content on your own, each of which is slightly different and will not be listed one by one)
Therefore, to modify the default runlevel in SUSE, follow these two steps:
1. Modify/etc/inittab
id:3:initdefault:
2. Delete the original link file and recreate the link file.
rm /etc/systemd/system/default.targetln -s /usr/lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
Suse
This article is from the "Jerry's zone" blog, please be sure to keep this source http://jerryxbao.blog.51cto.com/6176981/1242047