Adjust TTY text mode terminal font size

Source: Internet
Author: User

Take Debian as an example and introduce two sets of methods.
1. Set the console font by Console-tools
1.1. Select and test the appropriate fonts and font files:
dell:~# ls/usr/share/consolefonts/
1.2. The test chooses the favorite font file:
dell:~# consolechars-f/usr/share/consolefonts/lat9w-16.psf.gz
dell:~# consolechars-f/usr/share/consolefonts/lat2-16.psf.gz
1.3. Save the console default font configuration:
dell:~# Vi/etc/console-tools/config
Set the appropriate font file to default, if you choose lat2-16.psf.gz font file, you can set the Screen_font to:
Screen_font=lat2-16


2. Set the console font through the Console-setup service.
2.1. Installation of Console-setup Service

Apt-get Install Console-setup console-terminus
Where: Console-terminus is an equal-width font for fast reading under the Linux console and is a favorite font for many people
2.2. Configure the Console-setup service
dell:~# dpkg-reconfigure console-setup
If you want to select a terminus font, in the set of characters that should is Supported by the console font: In the dialog box, you can select one of the following:
. Combined-latin; Slavic Cyrillic; Greek
. Combined-latin; Slavic and Non-slavic Cyrillic
2.3.console-setup Service mount and deactivate
/etc/init.d/console-setup {start|reload|restart| Force-reload|stop} in Ubuntu Linux operating system to adjust the terminal font method: sudo vim/etc/default/console-setup will be one of the CodeSet fontface FontSize changed on the line. General recommendation: codeset= "Hebrew" fontface= "VGA" fontsize= "16" method two: sudo dpkg-reconfigure console-setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.