Setting a larger console font on Ubuntu 12.04.

Setting a larger console font on Ubuntu Linux 12.04.

To do this first get to a text console by pressing Ctrl-Alt-F2 and login with your username ↦ password, then type this command to set a larger font.

setfont /usr/share/consolefonts/Lat7-TerminusBold28x14.psf.gz

This is a nice large font and is more readable if you are on a 1920*1080 or higher screen and the default console font is too small. If that is still too small and you want something larger, then this command below will set a larger font.

setfont /usr/share/consolefonts/Lat7-TerminusBold32x16.psf.gz

This is a copy of my /etc/default/console-setup file. This defines the properties of the text console and custom fonts may be defined here.

# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT="no"

# Setup these consoles.  Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"

# Put here your encoding.  Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
CHARMAP="UTF-8"

# The codeset determines which symbols are supported by the font.
# Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# Vietnamese.  Read README.fonts for explanation.
CODESET="Lat15"

# Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# and 16) and Fixed (sizes 13, 14, 15, 16 and 18).  Only when
# CODESET=Ethiopian: Goha (sizes 12, 14 and 16) and 
# GohaClassic (sizes 12, 14 and 16).
# Set FONTFACE and FONTSIZE to empty strings if you want setupcon to
# set up the keyboard but to leave the console font unchanged.
#FONTFACE="VGA"
#FONTSIZE="16"

# You can also directly specify nonstandard font or console map to load.
# Use space as separator if you want to load more than one font.
# You can use FONT_MAP in order to specify the Unicode map of the font
# in case the font doesn't have it embedded.

FONT='Lat7-TerminusBold-28x14.psf.gz brl-8x8.psf'
# FONT_MAP=/usr/share/consoletrans/lat9u.uni
# CONSOLE_MAP=/usr/local/share/consoletrans/my_special_encoding.acm

# You can also specify a screen size that setupcon will enforce.  This can not
# exceed what the current screen resolution can display according to the size of
# the loaded font.
#
# SCREEN_WIDTH=80
# SCREEN_HEIGHT=25

if [ -f /etc/default/keyboard ]; then
    . /etc/default/keyboard
fi
######################################################################
# You can remove the lines that follow.  They contain the contents of
# this file before version 1.47 of console-setup.
######################################################################
# # A configuration file for setupcon
# 
# # Change to "yes" and setupcon will explain what is being doing
# VERBOSE_OUTPUT=no
# 
# # Setup these consoles.  Most people do not need to change this.
# ACTIVE_CONSOLES="/dev/tty[1-6]"
# 
# # Put here your encoding.  Valid charmaps are: UTF-8 ARMSCII-8 CP1251
# # CP1255 CP1256 GEORGIAN-ACADEMY GEORGIAN-PS IBM1133 ISIRI-3342
# # ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-6
# # ISO-8859-7 ISO-8859-8 ISO-8859-9 ISO-8859-10 ISO-8859-11 ISO-8859-13
# # ISO-8859-14 ISO-8859-15 ISO-8859-16 KOI8-R KOI8-U TIS-620 VISCII
# CHARMAP="UTF-8"
# 
# # The codeset determines which symbols are supported by the font.
# # Valid codesets are: Arabic Armenian CyrAsia CyrKoi CyrSlav Ethiopian
# # Georgian Greek Hebrew Lao Lat15 Lat2 Lat38 Lat7 Thai Uni1 Uni2 Uni3
# # Vietnamese.  Read README.fonts for explanation.
# CODESET="Lat15"
# 
# # Valid font faces are: VGA (sizes 8, 14 and 16), Terminus (sizes
# # 12x6, 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBold (sizes
# # 14, 16, 20x10, 24x12, 28x14 and 32x16), TerminusBoldVGA (sizes 14
# # and 16), Fixed (sizes 13, 14, 15, 16 and 18), Goha (sizes 12, 14 and
# # 16), GohaClassic (sizes 12, 14 and 16).
# FONTFACE="VGA"
# FONTSIZE="16"
# 
# # You can also directly specify nonstandard font and ACM to load.
# # Use space as separator if you want to load more than one font.
# # FONT='lat9w-08.psf.gz /usr/local/share/brailefonts/brl-08.psf'
# # ACM=/usr/local/share/consoletrans/my_special_encoding.acm
# 
# 
# # The following variables describe your keyboard and can have the same
# # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# # in /etc/X11/xorg.conf.
# XKBMODEL="pc105"
# XKBLAYOUT="us"
# XKBVARIANT=""
# XKBOPTIONS=""
# 

No comments have been made. Use this form to start the conversation :)

Leave a Reply