CentOS7 terminal resolution Modification

Source: Internet
Author: User

CentOS7 terminal resolution Modification

RHEL7 has been out for a while, and finally ushered in CentOS7. It was installed last night when it was okay. Because it was installed in the VM, After completion, the terminal interface had a high resolution and was difficult to operate, there is no way to change it. RHEL7 uses grub2 instead of grub, so this article is available. If you have used Ubuntu, you should know that grub2 is used after 12.04.

Let's talk about it more. Let's modify the resolution first;

In grub, we modified/boot/grub. conf. In grub2, the file to be modified is/boot/grub2/grub. cfg; find

Linux16/vmlinuz-3.10.0-123.el7.x86_64 root = UUID = 881ac4e6-4a55-47b1-b864-555de7051763 ro rd. lvm. lv = centos/swap vconsole. font = latarcyrheb-sun16 rd. lvm. lv = centos/root crashkernel = auto vconsole. keymap = us rhgb quiet LANG = en_US.UTF-8

Add vga = 0x ??? (Question mark indicates the resolution code.) paste a corresponding table here to facilitate viewing.

The modification is as follows:

The second is to modify the running level. We all know that in grub, the/etc/inittab is modified, and the corresponding number is changed, but it also changed in grub2, when we open the/etc/inittab, the following occurs:

RHEL7 uses systemd to create a symbolic link pointing to the default running level. Remember to reboot when you finish.

# Ln-sf/lib/systemd/system/runlevel ?. Target/etc/systemd/system/default.tar get

For example, if I change the default running level to a character terminal, the command is used:

# Ln-sf/lib/systemd/system/runlevel13.target/etc/systemd/system/default.tar get

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.