Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a Un*x OS installed without desktop, I wonder if it is possible to change the font of terminal.

share|improve this question

migrated from stackoverflow.com Oct 3 '12 at 15:41

This question came from our site for professional and enthusiast programmers.

2  

2 Answers 2

If you want to use nearly any X-compatible font you should have a look at David Herrman's work on kmscon. The name slightly belies the project, actually, as Kernel Mode Setting is not a requirement for it to work - it also works with with frame-buffer devices - for instance if you are using proprietary AMD or nvidia display drivers. With kmscon you get multi-seat session management, xterm like keyboard and UTF-8 font handling and session control. Changing the font can be done via the /etc/kmscon/kmscon.conf or via a command-line option.

share|improve this answer

If you use the Linux console, the best way I found is:

in

/etc/default/console-setup

put, for example

CHARMAP="UTF-8"
CODESET="Lat7"
FONTFACE="Terminus"
FONTSIZE="28x14"

Another way is to use setfont:

setfont /usr/share/consolefonts/Lat7-Terminus28x14.psf

This works for my Debian; it may be different for you.

In Debian, you can also run dpkg-reconfigure -plow console-setup to be prompted for the various console settings and pick them from menus.

Edit - I put together a small page how to setup the font colors. The section that is relevant for this post has the header "the Linux VTs" (= ttys, or "console").

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.