修改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
 
其中這個vga=788就是控制你的分辨率與色彩模式的,你可以把它改成你的顯示器支持的你喜歡的任意模式。數字對應的含義如下:
色深 640×480 800×600 1024×768 1280×1024
256 769 771 773 775
15位 784 787 790 793
16位 785 788 791 794
24位 786 789 792 795
 

 

改變數值後保存,然後重啓次,再進來時在想要的分辨率下工作是不是舒服多了呢~~~

 

轉載:http://www.cnblogs.com/mazhuang/archive/2008/10/16/1645799.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章