LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-21-2009, 03:53 PM   #1
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Rep: Reputation: 17
Text only system -- how to change console font?


I'm experimenting with a text-only (e.g. no X) squeeze box, just for the heck of it really, to see how much I can do with only the console.

Am wondering whether there is an easy way to adjust the fonts, etc in the console. Before I was using grub2, I was passing a "vga=790" line in to grub & that gave me a nice small font. At that time I was running lenny.

Now that I've upgraded to squeeze and am using grub2, the grub configuration files are, well, unfamiliar to me. The /boot/grub directory has loads of *.mod files in it, plus what appear to be three copies of my old menu.lst file.

Any hints would be much appreciated. Thanks,

GB
 
Old 11-21-2009, 09:48 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
You mean font size? Because you can change the actual font too if you want =)

The same vga=### option should work for the vesafb. Try grub.conf.
 
Old 11-21-2009, 10:33 PM   #3
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Does your system have a "setfont" command? In debian based distributions (maybe others?) there is usually /usr/share/consolefonts which can be set using the setfont command.
 
Old 11-22-2009, 09:38 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,598

Rep: Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516Reputation: 516
vga=### won't work in grub2.

In /etc/default/grub, edit/add the line
Code:
GRUB_GFXMODE=1280x800
where 1280x800 is your desired resolution. And/or in /etc/grub.d/40_custom, add the lines
Code:
insmod gfxterm
insmod vbe
set gfxpayload=1280x800
, then run
Code:
update-grub
.
 
Old 12-12-2009, 08:39 PM   #5
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-15 with Cinnamon & KDE
Posts: 1,319
Blog Entries: 3

Rep: Reputation: 86
what about for ALT-Fn consoles

How do I set the font and font size for
  • the non-graphic consoles available using ALT-Fn
  • the messages that appear during the early parts of the boot process

How do I add color highlights -- green for success, red for failure, amber for warnings -- during the early boot time messages?

Thanks,
~~~ 0;-Dan
 
Old 12-13-2009, 11:58 AM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,081

Rep: Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095
Quote:
Originally Posted by chexmix View Post
Am wondering whether there is an easy way to adjust the fonts, etc in the console. Before I was using grub2, I was passing a "vga=790" line in to grub & that gave me a nice small font. At that time I was running lenny.
Sounds like you are looking for the console-setup package. If you haven't installed it, do so! If it is already installed
Code:
dpkg-reconfigure console-setup
With this you can change your font.

Not related to fonts, (and partially not relevant for a box without X), but another nice thing about this package
is that you can also specify your keyboard layout for the console and as a bonus, by default X will use that layout too.

Evo2.
 
Old 12-11-2011, 09:26 AM   #7
qdinar
LQ Newbie
 
Registered: Sep 2008
Posts: 7

Rep: Reputation: 0
"setfont" works but font is lost after restart, when i tried it as user yesterday, i have not tried it as root.
"dpkg-reconfigure console-setup" has not changed font, i tried it as root today. and i have restarted, and when logged in as root i see correct font, and log in as user and also see correct font.
may be, setfont as root also would work.
i thought this commands change font only for one user, but seems they have changed for root and user together.
 
Old 12-11-2011, 04:24 PM   #8
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
If your distribution uses an /etc/default directory look for a file named /etc/default/console-setup.
 
Old 12-11-2011, 05:02 PM   #9
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
You might want to take a look at this: http://kmandla.wordpress.com/2010/05...r-the-console/

also this where i have a tread about frame buffer: http://www.linuxquestions.org/questi...62#post4546962

Regards !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
console session very large text font bobby_hawk Ubuntu 9 12-16-2007 02:49 PM
Change greeting text on console burninGpi Linux - General 11 08-01-2006 11:24 AM
Use X windows font in the console (text mode) rookworm Linux - Newbie 1 10-31-2005 04:25 PM
change the console font color minike Slackware 3 08-30-2004 05:11 PM
change console font size? andrewlkho Debian 4 07-07-2003 12:48 PM


All times are GMT -5. The time now is 03:39 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration