[RESOLVED] How to change Font size of Command Line

General support questions
jackson123
Posts: 5
Joined: 2012/09/18 01:17:58
Location: South China

[RESOLVED] How to change Font size of Command Line

Postby jackson123 » 2012/09/18 06:37:13

Hi, All.


My monitor is old, Samsung 750s,the font size is very small under "command line" mode,I try to chang grub.conf

kernel /vmlinuz-2.6.32-279.el6.i686 ro root=/dev/mapper/vg_hw-lv_root ... to


kernel /vmlinuz-2.6.32-279.el6.i686 ro root=/dev/mapper/vg_hw-lv_root vga=792...

but it does not work.

PLS help on it, tnks

User avatar
TrevorH
Forum Moderator
Posts: 21338
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to change Font size of Command Line

Postby TrevorH » 2012/09/18 07:44:24

Are you running in command line only mode or using a command line window inside a GUI?

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

Re: How to change Font size of Command Line

Postby scottro » 2012/09/18 11:39:00

You can add nomodeset to the kernel line in grub

That is, take the line that begins with something like kernel /vmlinuz-2.6-whatever and goes on with several other things, often ending with rhgb quiet and add

Code: Select all

nomodeset


at the end, so it will look something like

Code: Select all

kernel /vmlinuz-2.6-whatever ro root=/lots-of-numbers, KEYTABLE=us rhgb quet nomodeset


(I'm simplified it--the line has lots of things in it.)


You can also set fonts in /etc/sysconfig/i18n or change it on the command line with

setfont

If you mean set the font size in an xterm or gnome terminal, it can be done in $HOME/.Xdefaults for Xterm.

User avatar
toracat
Forum Moderator
Posts: 7230
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

[RESOLVED] How to change Font size of Command Line

Postby toracat » 2012/09/18 12:15:48

Use of "nomodeset" might have some side effects (it disables power management, for example). You can try the video= option. video=640x460 will give you 80x25 lines.

jackson123
Posts: 5
Joined: 2012/09/18 01:17:58
Location: South China

Re: [RESOLVED] How to change Font size of Command Line

Postby jackson123 » 2012/09/18 14:01:19

Thx a lot for the reply from 3 of you.

Yes, I am running in command line only mode.so that font size is a big problem because the font is so tiny.

With your instruction, it just took me several minutes to make it work:

kernel /vmlinuz-2.6... rhgb quiet nomodeset

Appreciate for your kind help,because it is my first visit to this forums.

:lol:

User avatar
toracat
Forum Moderator
Posts: 7230
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: [RESOLVED] How to change Font size of Command Line

Postby toracat » 2012/09/18 14:43:42

Good to hear you got it working.

But one other issue about nomodeset is (not an immediate issue but) that it will not be in CentOS 7 according to what I've read somewhere.