LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Thread Tools
Old 11-11-2009, 05:10 AM   #1
kumars.nitin123
LQ Newbie
 
Registered: Jun 2009
Location: Noida
Distribution: CentOS 5.3
Posts: 20
Thanked: 1
CentOS: How to set font size/ resolution on main console


[Log in to get rid of this advertisement]
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,
windows_xp_2003 kumars.nitin123 is offline     Reply With Quote
Old 11-11-2009, 09:02 AM   #2
arizonagroovejet
Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE 11.1
Posts: 431
Thanked: 12
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
linuxsuse arizonagroovejet is offline     Reply With Quote
Old 11-12-2009, 12:47 AM   #3
kumars.nitin123
LQ Newbie
 
Registered: Jun 2009
Location: Noida
Distribution: CentOS 5.3
Posts: 20
Thanked: 1

Original Poster
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
windows_xp_2003 kumars.nitin123 is offline     Reply With Quote
Old 11-12-2009, 08:02 AM   #4
arizonagroovejet
Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE 11.1
Posts: 431
Thanked: 12
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
linuxsuse arizonagroovejet is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Font size in console psyklops Linux - General 25 10-09-2006 01:22 PM
Changing font size in Console? stitchman Slackware 5 05-19-2006 12:16 PM
gnome main menu font size piyushiitk Linux - Newbie 2 11-19-2004 11:58 PM
change console font size? andrewlkho Debian 4 07-07-2003 01:48 PM
Changing console font size frankietomatoes Linux - General 5 06-11-2003 12:31 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration