LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-11-2009, 04:10 AM   #1
kumars.nitin123
LQ Newbie
 
Registered: Jun 2009
Location: Noida
Distribution: CentOS 5.3
Posts: 22

Rep: Reputation: 16
CentOS: How to set font size/ resolution on main console


Hi All,
I use CentOS and i need to set resolution or font size so that i can see more lines of logs at a time on the main console of my CentOS box.

Thanks,
 
Old 11-11-2009, 08:02 AM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
What do you mean by 'main console'? Are you talk about a screen where you just see some white text on back with something like

Code:
CentOS blah blah

mymachine login:
If so you need to play around with the vga option passed to the kernel in the grub config. The grub config is probably at /boot/grub/menu.lst I use vga=0x31a. For a list of available modes use

Code:
$ hwinfo --framebuffer
 
Old 11-11-2009, 11:47 PM   #3
kumars.nitin123
LQ Newbie
 
Registered: Jun 2009
Location: Noida
Distribution: CentOS 5.3
Posts: 22

Original Poster
Rep: Reputation: 16
Yes, i meant by the same thing u replied for.

cat /boot/grub/menu.lst shows :

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda1
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/
initrd /initrd-2.6.18-8.el5.img

And,
hwinfo --framebuffer shows:
-bash: hwinfo: command not found
 
Old 11-12-2009, 07:02 AM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
hwinfo is probably available in your repositories but it's not essential, it just gives you a list of what modes your card supports. You can just try codes to see if they work.


You need to modify the kernel line like so
Code:
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ vga=0x31A
That will set the resolution to 1280x1024. For a list of possible vga codes see http://wiki.antlinux.com/pmwiki.php?n=HowTos.VgaModes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font size in Console? stitchman Slackware 6 02-21-2021 06:48 PM
Font size in console psyklops Linux - General 25 10-09-2006 12:22 PM
gnome main menu font size piyushiitk Linux - Newbie 2 11-19-2004 10:58 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM
Changing console font size frankietomatoes Linux - General 5 06-11-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration