how to change console text size

General discussion about PLUC and Linux in Pakistan.
Naib Subedar
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

how to change console text size

Postby kashif » Wed Aug 10, 2005 5:29 pm

I am using RHEL 4 . I want to change console Text size.
By default it shows 25 lines.

A shell builten variable LINES control this lines value.

I did try to chaged the the value of variable by LINES=30

But it value reset again to 25 when I execute any command on bash

bash manul tells

LINES Used by the select builtin command to determine the column length for printing selection lists. Automatically set upon receipt of a SIGWINCH.

How can I change text size ?

any idia???

As-Salaatu was-Salaamu Alaika Ya Sayyidi Ya Rasool ALLAH


Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore

Re: how to change console text size

Postby lambda » Wed Aug 10, 2005 7:33 pm

do you want to change the console text size, or do you want to change the number of lines on the console? for the latter, boot your kernel with the parameter vga=ask. it'll give you a few options, note down the menu number, and then change your boot loader to pass vga=4 (or whatever the number is) as a kernel parameter.

for the former, i have no idea. i don't use rhel. cd to /etc/init.d and grep for console, then read the file carefully.

Lieutenant Colonel
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

Postby jargon » Wed Aug 10, 2005 10:25 pm

If you want more lines of text on the screen, then try what lambda suggested but in case you're interested in changing the ugly default system console font what you can do is use 'consolechars' as root and test out some fonts that you might want to use. The fonts will be in the following directory or similar : /lib/kbd/consolefonts/

So you can do: #: consolechars -f fontname.psf.gz

Once you find a consolefont you like, you can edit the following file: /etc/sysconfig/i18n

and change the SYSFONT="latarcyrheb-sun16" line. Note: just put the name of the font not the filename, so for 'funnyfont.psf.gz' make it SYSFONT="funnyfont"


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests