linux设置tty终端字体,更改Ubuntu tty下字体方法

第一种就是网上大多数使用的方法,英文的教程,这里不翻译了,非常简单,一看就懂。但发现这种设置给出的字体不全,那如何来让控制台使用UbuntuMono字体呢?(第二种方法。)

第一种方法

To adjust the font/font-size used for the TTY, run sudo dpkg-reconfigure console-setup, which will guide you through the steps to choose a font and font-size:

1.Choose the default UTF-8, and press Tab to go highlight OK and then press Enter to go to the next step. (You can press it again and highlight Cancel to go back.)

57c983c7189519d248f36dd7828556aa.png

2.Choose the default Combined - Latin, ... option ("Latin" includes the English alphabet) and proceed to step 3:

7f28f2a9d6de4d41e343d58060cf8cb3.png

3.Select the font - be sure to read the notes above on the visual effect different fonts can have:

995c4eaa1f39e54033548fe6f8ee7e3b.png

4.Select the font size:

b22360f7894c02ef86ad08bc4898ddcb.png

5.Now you will exit console-setup; as the displayed message says, the new settings will be effective after reboot. To apply immediately, open a TTY and run setupcon.

第二种方法

如何设置tty使用UbuntuMono字体。

1.先安装tty下Ubuntu字体库

sudo apt install fonts-ubuntu-font-family-console

2.设置字体

sudo setfont /usr/share/consolefonts/UbuntuMono-R-8x16.psf

这两步就可成功!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值