zoukankan      html  css  js  c++  java
  • 修改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


    改变数值后保存,然后重启次,再进来时在想要的分辨率下工作是不是舒服多了呢~~~

  • 相关阅读:
    西安.NET俱乐部群 推广代码
    跟我学Makefile(六)
    跟我学Makefile(五)
    跟我学Makefile(四)
    跟我学Makefile(三)
    跟我学Makefile(二)
    Kconfig文件说明2
    Kconfig文件说明
    kernel内核配置说明
    makefile中ifeq与ifneq dev/null和dev/zero简介 dd命令
  • 原文地址:https://www.cnblogs.com/mazhuang/p/1645799.html
Copyright © 2011-2022 走看看