How to Increase the Size of Characters in a Terminal?

General support questions
Seokhyun Jeong
Posts: 8
Joined: 2018/12/08 22:10:40

How to Increase the Size of Characters in a Terminal?

Post by Seokhyun Jeong » 2018/12/15 10:16:51

hi.

I am using CentOS 7.6. The question is, I want to enlarge the letters printed on the terminal.
The terminal means to enter single mode or ctrl + alt + F1 ~ F7.

have a nice day!

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How to Increase the Size of Characters in a Terminal?

Post by scottro » 2018/12/15 14:43:41

There is a file /etc/vconsole.conf. It shows the default console font, latarcyrheb-sun16 on a US keyboard. You can replace that with a larger font. For example, I use the terminus fonts, and so, on a hi-res laptop that shows tiny console fonts, I used terminus, replacing the latarcyrheb-sun16 with ter-v32n, in Fedora. In CentOS that should be stored in $HOME/storage/lib/kbd/consolefonts. You can probably choose something from there, for installed fonts, but if it doesn't work, try something from /usr/lib/kbd/consolefonts.
New users should check the FAQ and Read Me First pages

Seokhyun Jeong
Posts: 8
Joined: 2018/12/08 22:10:40

Re: How to Increase the Size of Characters in a Terminal?

Post by Seokhyun Jeong » 2018/12/16 03:01:20

hi.

I installed a terminus. ---> yum install terminus*

And I edited /etc/vconsole.conf.

KEYMAP="us"
FONT="ter-v32n"

I have rebooted but there is no change.

Is it necessary to change the video resolution, not the font size?

have a nice day!

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: How to Increase the Size of Characters in a Terminal?

Post by scottro » 2018/12/16 12:54:05

Were there any messages about being unable to load the font? I've only done this with Fedora, not CentOS, so not sure why it didn't work for you.
New users should check the FAQ and Read Me First pages

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to Increase the Size of Characters in a Terminal?

Post by TrevorH » 2018/12/16 13:16:05

The font is not in a package called 'terminus'. It's called terminus-fonts-console and is in the EPEL repo not in CentOS so you would need to first yum --enablerepo=extras install epel-release if you haven't already done so.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: How to Increase the Size of Characters in a Terminal?

Post by poky » 2018/12/16 13:26:52

1. Install terminus console font: :-)
Terminus console font is in EPEL repository.

yum install epel-release
yum install terminus-fonts-console.noarch



2. Directly in a Terminal (tty x):

Displays usable fonts for the terminal:
ls /usr/lib/kbd/consolefonts

Changes the font directly in the terminal:
setfont sun12x22

if you are using Bash, you could get the following line to .bash_profile:
if [ $TERM = linux ]
then
setfont sun12x22
fi


3. Resolution - to /etc/default/grub:

video=800x600

4. Systemd
Edit /etc/vconsole.conf:
FONT="ter-v32n"

Edit /usr/lib/systemd/system/systemd-vconsole-setup.service
systemctl status systemd-vconsole-setup.service
systemctl cat systemd-vconsole-setup.service
systemctl edit systemd-vconsole-setup.service

Change the After= and Before= lines to:

After=sysinit.target
Before=shutdown.target

5. Check /boot/grub2/grub.cfg and/or /etc/default/grub.
If grub.cfg contains a vconsole.font parameter, delete that parameter.

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: How to Increase the Size of Characters in a Terminal?

Post by desertcat » 2018/12/17 09:10:32

Seokhyun Jeong wrote:
2018/12/15 10:16:51
hi.

I am using CentOS 7.6. The question is, I want to enlarge the letters printed on the terminal.
The terminal means to enter single mode or ctrl + alt + F1 ~ F7.

have a nice day!
I must be missing something here: OK at the top of the terminal or konsole or... you should see something that says:

File Edit View Bookmarks Settings Help

Click on Settings

This will give you a drop down Menu. The first item says "Edit Current Profile". Click on it.

You will now be given a sub-menu that give you:

General Tabs Appearance Scrolling Keyboard Mouse Advanced

Click on Appearance

This will give you a drop down Menu. At the very bottom you will see something that says FONT

The first one says Preview Below that is something that says Text Size and you have up and down arrows to either increase or decrease the size of the font. to the right of that is something that says Select Font. Here you can select the type of font you want as well as if you want to make it BOLD Italic, Oblique, etc. and shows you what it looks like at the bottom of that drop down page.

Once you have picked the font, style, etc., all you have to do is say, Click on Apply, and then Click on OK.

Kill the terminal and then re-start it, and it will now come up in the size and style you selected.

What am I missing?? This seemed way to easy.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to Increase the Size of Characters in a Terminal?

Post by TrevorH » 2018/12/17 09:16:03

What am I missing?? This seemed way to easy.
I think we're talking about the console, not a GUI.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Seokhyun Jeong
Posts: 8
Joined: 2018/12/08 22:10:40

Re: How to Increase the Size of Characters in a Terminal?

Post by Seokhyun Jeong » 2018/12/18 10:18:06

hi.

Thank you for your answers. I still have a lot of strength that I can not solve my problems with. And the question has been resolved. On this occasion I found "terminus-fonts-console", "systemd-vconsole-setup.service".

I used setfont in gnome-terminal. There is no response. This should be used in single mode or ctrl + alt + F1 ~ F6. Once, it is fixed after that. Thank you for answer.

I'm sorry, but there is one more question. I have not used "systemd-vconsole-setup.service" yet. (I do not want to change the font of gnome-terminal.)

How do I make the grub screen larger at boot time?

3. Resolution - to / etc / default / grub:
video = 800x600

I do not know this. My /etc/default/grub looks like this:

GRUB_TIMEOUT = 5
GRUB_DISTRIBUTOR = "$ (sed 's, release. * $ ,, g' / etc / system-release)"
GRUB_DEFAULT = saved
GRUB_DISABLE_SUBMENU = true
GRUB_TERMINAL_OUTPUT = "console"
GRUB_CMDLINE_LINUX = "crashkernel = auto rd.lvm.lv = centos_evader / root rd.lvm.lv = centos_evader / swap rhgb quiet"
GRUB_DISABLE_RECOVERY = "true"

There are no video-related items anywhere. So I do not know.

have a nice day!

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: How to Increase the Size of Characters in a Terminal?

Post by desertcat » 2018/12/20 07:53:32

Seokhyun Jeong wrote:
2018/12/18 10:18:06


How do I make the grub screen larger at boot time?

3. Resolution - to / etc / default / grub:
video = 800x600

I do not know this. My /etc/default/grub looks like this:

GRUB_TIMEOUT = 5
GRUB_DISTRIBUTOR = "$ (sed 's, release. * $ ,, g' / etc / system-release)"
GRUB_DEFAULT = saved
GRUB_DISABLE_SUBMENU = true
GRUB_TERMINAL_OUTPUT = "console"
GRUB_CMDLINE_LINUX = "crashkernel = auto rd.lvm.lv = centos_evader / root rd.lvm.lv = centos_evader / swap rhgb quiet"
GRUB_DISABLE_RECOVERY = "true"

There are no video-related items anywhere. So I do not know.

have a nice day!
There is a great utility that everyone should should have, and has saved a couple times since I first installed it -- it is called Grub Customizer ( to install run as root from a CLI yum install grub-customizer ) this will allow you to do set set font sizes and other cool things. Here is my /etc/default/ grub file:

GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="0"
GRUB_DISABLE_SUBMENU="true"
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"

export GRUB_COLOR_NORMAL="light-magenta/black"
export GRUB_COLOR_HIGHLIGHT="light-green/black"
GRUB_BACKGROUND="/boot/grub/73264-wallpaper1.png"
#GRUB_GFXMODE="saved"
GRUB_SAVEDEFAULT="false"
GRUB_FONT="/boot/grub2/unicode.pf2"

The second half comes from Grub Customizer. The last line that reads GRUB_FONT="/boot/grub2/unicode.pf2" allows you to select the font as well as the size.

Post Reply