How to setup fonts in Linux subsystem?



The Linux Subsystem for Windows is an incredibly powerful tool for IT administrators that allows for the integration of the Linux command line into a Windows environment. It provides an easy way to manage software, applications, and other tasks that would otherwise need to be done on a separate Linux system.

In order to make the most of the Linux Subsystem for Windows, it is important for administrators to set up fonts correctly. While it is possible to use the same fonts as Windows, the configuration process can be complex and time-consuming.

Fortunately, setting up fonts in the Linux Subsystem for Windows is actually quite straightforward. The first step is to install the font packages you need. This can be done by running the apt-get command in the Linux terminal. For example, if you need the DejaVu Sans Mono font, you can install it by running the following command:

sudo apt-get install fonts-dejavu

Once the font packages have been installed, you will need to configure them to work with the Linux Subsystem for Windows. This is done by editing the fonts.conf file, which is located in the /etc/fonts/ directory.

Open the fonts.conf file in a text editor and add the following lines:









DejaVu Sans Mono



DejaVu Sans Mono







This will instruct the Linux Subsystem for Windows to use the DejaVu Sans Mono font whenever it needs to display text. You can repeat this process for any other fonts you need to install, such as DejaVu Serif, DejaVu Sans, and so on.

Once all of the fonts have been installed, you will need to update the font cache. This can be done by running the following command in the terminal:

sudo fc-cache -f -v

This will update the font cache so that the Linux Subsystem for Windows can use the newly installed fonts.

Once you have finished setting up the fonts, you can use them in any application that supports them. For example, you could use the DejaVu Sans Mono font in a text editor or a web browser to display text. You can even use the installed fonts in the Linux terminal itself.

Setting up fonts in the Linux Subsystem for Windows is an incredibly powerful tool for IT administrators. It provides an easy way to manage software, applications, and other tasks that would otherwise need to be done on a separate Linux system. By following the steps outlined above, you can quickly and easily configure fonts in the Linux Subsystem for Windows.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo