OpenSUSE modify default running level

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.