Get the App
SLTechnology News&Howtos  ›  Development  › 

How to modify Font in linux system Terminal

Shulou Source: shulou.com Published: 2022-06-01 03:59:58 09月22日 Update

This article mainly introduces the linux system terminal how to modify the font related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe we read this linux system terminal how to modify the font article will have some harvest, let's take a look at it.

1. Set console fonts via console-tools

1.1. Select and test appropriate fonts and font files:

The copy code is as follows:

# ls /usr/share/consolefonts/

1.2. Test your favorite font file:

The copy code is as follows:

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

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

1.3. Save console default font configuration:

The copy code is as follows:

# vi /etc/console-tools/config

Set the appropriate font file as default. If lat2 -16.psf.gz font file is selected, screen_font can be set to:

screen_font=lat2-16

2. Set console fonts via console-setup service.

2.1. Install console-setup service

The copy code is as follows:

apt-get install console-setup console-terminus

Among them: console-terminal is easy to read under the linux console mono-wide font, but also a lot of people prefer fonts

2.2. Configure console-setup service

The copy code is as follows:

# dpkg-reconfigure console-setup

If you want to select the terminal font, select one of the following in the dialog box for set of characters that should be supported by the console font: :

The copy code is as follows:

combined - latin; slavic cyrillic; greek

combined - latin; slavic and non-slavic cyrillic

2.3. Loading and deactivation of console-setup service

The copy code is as follows:

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

About "linux system terminal how to modify fonts" the content of this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to modify fonts in linux system terminals." If you still want to learn more knowledge, please pay attention to the industry information channel.

Tags: Code font system terminal font file control service console knowledge appropriateness content article test selection configuration value dialog box simple operation article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker NVidia Linux Shulou Technology