Modify the resolution of Linux text (command line) mode
In my system text mode, the default resolution is 800*600. when I use lynx to browse the webpage, I feel that the font is too large. if I want to adjust the resolution in this mode, I will go to google, the discovery is actually very simple.
Go to the/boot/grub/directory, and you will see a file named menu. lst in it. use vim to open it and you will see the following content:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/hda2
# Initrd-version.img/initrd
# Boot =/dev/hda
Default = 0
Timeout = 5
Gfxmenu (hd0, 0)/message
Title RedFlag (2.6.22.6-1)
Root (hd0, 0)
Kernel/vmlinuz-2.6.22.6-1 ro root = LABEL =/vga = 788 splash = silent
Initrd/initrd-2.6.22.6-1.img
This vga = 788 controls your resolution and color mode. you can change it to any mode that your monitor supports. The meanings of numbers are as follows:
Color depth
|
640 × 480 |
800 × 600 |
1024 × 768 |
1280 × 1024 |
256
|
769 |
771 |
773 |
775 |
15 digits |
784 |
787 |
790 |
793
|
16-bit |
785 |
788 |
791 |
794 |
24-bit |
786 |
789 |
792 |
795 |
Change the value, save it, and restart it again. is it more comfortable to work at the desired resolution ~~~