4

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?

rubo77
  • 34,024
  • 52
  • 172
  • 299

2 Answers2

9

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.

rubo77
  • 34,024
  • 52
  • 172
  • 299
1

#1 - install the right font and size to the grub. (30 denotes the font size, which works for me. If you want it bigger, just increase it.).

sudo grub-mkfont -s 30 -o /boot/grub/DejaVuSansMono.pf2 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf

#2. Edit /etc/default/grub - use sudo nano /etc/default/grub and add GRUB_FONT=/boot/grub/DejaVuSansMono.pf2 while you're at it (and for good measure) also add your appropriate screen resolution on that same file too GRUB_GFXMODE="your screen resolutionx32" which will look something like GRUB_GFXMODE=3840x2160x32 . On the line below it add GRUB_GFXPAYLOAD_LINUX="keep". The "keep" command is important bc your grub can throw errors without it.

#3. Update your grub sudo update-grub Now reboot, sit back, and revel in the beauty of being able to actually read your grub screen!