I have set a custom font on my virtual console (vt1) using the following command:
shell> setfont ter-114f
If I switch to X (using Ctrl+Alt+F7) and come back to the virtual console (using Ctrl+Alt+F1), the display isn't proper. Looks like the screen size is getting reset (previously set to 28 rows before switching).
How can this be fixed?
Best Answer
It depends on your distribution.
Arch Linux
In Arch Linux, once you have selected the font from
/usr/share/kbd/keymaps/
that you would like to set, you need to add it to your/etc/rc.conf
like so:and then add the consolefont hook to your
/etc/mkinitcpio.conf
and regenerate the image:
Ubuntu/Debian
In Ubuntu/Debian, select your font from
/usr/share/consolefonts/
and then edit/etc/default/console-setup
and add an entry like:and to make it permanent:
Fedora
The available fonts are listed in
/lib/kbd/consolefonts/
.Specify the desired font in
/etc/sysconfig/i18n
file by modifying the SYSCONF entry.References