修改Linux终端界面分辨率的方法
脚本之家
我的系统文本模式下默认的分辨率是800*600,用lynx浏览网页的时候感觉字体太大了,想把这种模式下的分辨率调整下,就google了下,发现其实很简单。
进入到/boot/grub/目录下,然后就可以看到里面有个名为menu.lst的文件,用vim将其打开,可以看到以下内容:
# 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 /initrd-version.img
#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
#
# 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 /initrd-version.img
#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
其中这个vga=788就是控制你的分辨率与色彩模式的,你可以把它改成你的显示器支持的你喜欢的任意模式。数字对应的含义如下:
改变数值后保存,然后重启次,再进来时在想要的分辨率下工作是不是舒服多了呢~~~