zoukankan      html  css  js  c++  java
  • runlevel 3 设置显示参数

    Linux: How to change the text size or character size in runlevel 3 (text mode)

    by LinuxTitli on September 6, 2006 · 0 comments

    If you have large size (21") or small size (14") monitor, it is better to use large/small character size. But how do you setup character size in runlevel 3 under Linux?

    The answer is simple, use the kernel framebuffer. It allows you to set the Linux text scree (console) to higher or lower resolution. The Linux framebuffer (fbdev) is a graphic hardware-independent abstraction layer to show graphics on a console without relying on system-specific libraries such as SVGALib or the heavy overhead of the X Window System.

    Open GRUB configuration file grub.conf
    # vi grub.conf

    Append line vga=0x318 (a 24-bit color depth @ 1024x768 display) to kernel line. At the end your modification should look like as follows:
    title Debian Linux, AMD-VSNL (VMWARE)
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.17.11-ROCKY-DEV-AMD root=/dev/hdb1 ro vga=0x318
    initrd /boot/initrd.img-2.6.17.11-ROCKY-DEV-AMD
    savedefault
    boot

    Save and close the file. Reboot the system:
    # reboot

    0x318 (hex) is a mode. Here are common modes:

  • 相关阅读:
    字符串逆序输出
    格式化输出
    redis的使用
    redis介绍
    虚拟机间的网络配置+远程访问数据库
    django之contenttype组件
    http请求
    cookie和session
    Django视图解决csrftoken认证
    Django视图解析
  • 原文地址:https://www.cnblogs.com/liujiahi/p/2196412.html
Copyright © 2011-2022 走看看