Ways to modify fonts for Linux system terminals _linux

Source: Internet
Author: User

1. Set the console font by Console-tools

1.1. Select and test the appropriate fonts and font files:

Copy Code code as follows:

# ls/usr/share/consolefonts/

1.2. The test chooses the favorite font file:

Copy Code code as follows:

# consolechars-f/usr/share/consolefonts/lat9w-16.psf.gz
# consolechars-f/usr/share/consolefonts/lat2-16.psf.gz

1.3. Save the console default font configuration:

Copy Code code as follows:

# 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

Copy Code code as follows:

Apt-get Install Console-setup Console-terminus

Where: Console-terminus is in the Linux console for fast reading of the same wide font, but also many people prefer the font

2.2. Configure the Console-setup service

Copy Code code as follows:

# dpkg-reconfigure Console-setup

If you choose the terminus font, you can select one of the following in the dialog box for the set of characters that should is supported by the console font:
Copy Code code as follows:

Combined-latin; Slavic Cyrillic; Greek
Combined-latin; Slavic and Non-slavic Cyrillic

Loading and deactivation of 2.3.console-setup services

Copy Code code as follows:

/etc/init.d/console-setup {Start|reload|restart|force-reload|stop}

Related Article

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.