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

How to modify the linux system terminal font

WBOY
Release: 2023-05-24 11:46:06
forward
1850 people have browsed it

1. Set the console font through console-tools

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

 # ls /usr/share/consolefonts/
Copy after login

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
Copy after login

1.3. Save the console default font configuration:

# vi /etc/console-tools/config
Copy after login

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
Copy after login

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

2.1. Install the console-setup service

apt-get install console-setup console-terminus
Copy after login

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
Copy after login

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
Copy after login

2.3.Loading and deactivating the console-setup service

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

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template