Skip to main content

Linux Shell Fonts

·157 words·1 min
Posts font shell
Table of Contents

Here is the step how I customize my shell font in Linux.

Download fonts
#

Download Noto Sans Mono font from Google Fonts

Then, download Cascadia Code font from Microsoft.

$ wget https://github.com/microsoft/cascadia-code/releases/download/v2111.01/CascadiaCode-2111.01.zip

Installing Fonts
#

$ cd /usr/share/fonts 
$ sudo mkdir microsoftfonts
$ cd microsoftfonts
$ sudo unzip -d . ~/CascadiaCode-2111.01.zip
$ sudo chmod -R --reference=/usr/share/fonts/opentype /usr/share/fonts/microsoftfonts 
$ cd /usr/share/fonts 
$ sudo mkdir googlefonts
$ cd googlefonts
$ sudo unzip -d . ~/Noto_Sans_Mono.zip
$ sudo chmod -R --reference=/usr/share/fonts/opentype /usr/share/fonts/googlefonts 

Register Fonts
#

$ sudo fc-cache -fv

Check Fonts Installed
#

$ fc-match NonoSansMono
NotoSansMono-VariableFont_wdth,wght.ttf: "Noto Sans Mono" "Regular"
$ fc-match CascadiaCode 
CascadiaCode.ttf: "Cascadia Code" "Regular"

Change Fonts
#

Debian/Ubuntu
#

$ sudo dpkg-reconfigure console-setup

Linux Console
#

Edit the file /etc/default/console-setup:

# CONFIGURATION FILE FOR SETUPCON

# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"

CHARMAP="UTF-8"

CODESET="Uni2"
#FONTFACE="Fixed"
FONTFACE="Noto Sans Mono"
FONTSIZE="8x16"

VIDEOMODE=

# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'

Related

My Firefox Anniversary
·70 words·1 min
Posts anniversary firefox
Remember my first download of Firefox browser 15 years ago.
Hands on Workshop: Container Security 101
·2204 words·11 mins
Posts YT sans workshop
Workshop on securing container.
The Myth of Cloud Agnosticism
·322 words·2 mins
Posts Simplify cloud sans iac webcast
Why securing multiple clouds using Terraform is harder than you think?