Home  >  Article  >  Operation and Maintenance  >  How to modify the linux system terminal font

How to modify the linux system terminal font

WBOY
WBOYforward
2023-05-24 11:46:061742browse

1. Set the console font through console-tools

1.1. Select and test the appropriate font and font file:

 # ls /usr/share/consolefonts/

1.2. Test and select your favorite font file:

# 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:

# vi /etc/console-tools/config

Set the appropriate font file as the default. If you select the lat2-16.psf.gz font file, You can set screen_font to:

screen_font=lat2-16

2. Set the console font through the console-setup service.

2.1. Install the console-setup service

apt-get install console-setup console-terminus

Among them: console-terminus is a fixed-width font that is easy to read quickly under the Linux console, and is also a font that many people prefer

2.2. Configure the console-setup service

# dpkg-reconfigure console-setup

If you want to use the terminus font, you can select the following in the set of characters that should be supported by the console font: dialog box One item:

combined - latin; slavic cyrillic; greek
combined - latin; slavic and non-slavic cyrillic

2.3.Loading and deactivating the console-setup service

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

The above is the detailed content of How to modify the linux system terminal font. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete