Home  >  Article  >  System Tutorial  >  Modify the method of adjusting the resolution of CentOS virtual machine

Modify the method of adjusting the resolution of CentOS virtual machine

WBOY
WBOYforward
2024-01-03 19:10:29573browse

Use a vmware virtual machine to install the centos system. The default resolution is very low. You can use the following method to modify the resolution of the centos system in the virtual machine. Come with me to see it!

1,# vi /boot/grub/grub.conf

2, find the line of kernel, For example: kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg_centos6-lv_root rd_NO_LUKS rd_NO_MD rd_LVM_LV=vg_centos6/lv_swap crashkernel=auto LANG=zh_CN.UTF-8 rd_LVM_LV=vg_centos6/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet

3, add vga=791

at the end of the line

kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/vg_centos6-lv_root rd_NO_LUKS rd_NO_MD rd_LVM_LV=vg_centos6/lv_swap crashkernel=auto LANG=zh_CN.UTF-8 rd_LVM_LV=vg_centos6/lv_root KEY BOARDTYPE =pc KEYTABLE=us rd_NO_DM rhgb quiet vga=791

4. After saving the file, restart the system

Attachment: Resolution reference table (for example, 791 is the resolution of 1024*768)

Modify the method of adjusting the resolution of CentOS virtual machine

The above is the detailed content of Modify the method of adjusting the resolution of CentOS virtual machine. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete