Ubuntu – Resize font on boot message screen and console

consolefonts

I have a high resolution screen on my laptop (3200x1800px) and I disabled the boot-image
( How do I disable the boot splash screen, and only show kernel and boot text instead? )

I also managed to enlarge the font in grub by uncommenting the line

GRUB_GFXMODE=640x480

in /etc/default/grub

But the boot messages during startup are still really tiny and hardly readeable. The same as if I change to a console screen by pressing Ctrl+Alt+F1.

How can I enlarge the font on the console too?

Best Answer

You can configure the font on tty console with

sudo dpkg-reconfigure console-setup

leave all settings as they are but the last one, where you can chose the size.

(You have to reboot to get the new font on your console.)


Update:

This doesn't seem to work anymore on 15.04, but you can install the custom Ubuntu fonts for your console:

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

And create a script /usr/local/bin/fontset with this command:

#!/bin/sh
setfont /usr/share/consolefonts/Uni3-TerminusBold32x16.psf.gz

(choose the desired font out of the folder /usr/share/consolefonts/)

You can either call fontset each time on your console after using Ctrl+Alt+F1

or add these lines to your ~/.profile:

#load larger font on tty
if [ "$TERM" == "linux" ]; then 
 #sleep 1 # add this if you have problems
 /usr/local/bin/fontset
fi

This starts your script only if you are on a tty console.

Related Question