Fedora boot into text mode method

  

In order to speed up Fedora startup speed, some will change Fedora startup default, will start into graphics mode to text mode, and will not take up too much resources, the following small series Let me introduce you to the way Fedora starts to enter the text mode.

Modify the /etc/inittab file:

vi /etc/inittab

Find out entry that read as follows:

id:5:initdefault:

Set the default runlevel to 3 (text mode)

id:3:initdefault:

Save and close the file

reboot

For the previous version of Fedora 15 (not including 15), the inittab file is actually configured, but the /etc/inittab file is not used in Fedora 15 and later. If you use vi to open it, you will get the following result:

In fact, the /etc/inittab file has been described very clearly, meaning:

# ln -s /lib/systemd/system/multi-user.target /etc/systemd/system /default.target #文字模式

# ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default.target #graphic mode

However, enter it as such The command will get the prompt file already exists, because the default.target file already exists in the /etc/systemd/system/directory and needs to be the ln command. The -f option forces writes, as follows:

# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target #文字模式

# ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target #graphic mode

If you continue to search for Fedora 15 and later versions, you will be Fedora Project Wiki document to obtain more detailed description:

perform a

according to the method described in this document #rm /etc/systemd/system/default.target

#ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

The above is the way Fedora starts the default text mode, use this The method can reduce the waste of resources, and can also speed up the system boot speed, why not.

Copyright © Windows knowledge All Rights Reserved