LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 07-21-2006, 01:17 AM   #1
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
boot colors in kernel ( text font and background)


I finally found where the boot logo is compiled into the kernel, but I was wondering what kind of options there are for font color or back ground. Is this something you can define in the kernel, or are we at the whims of Mr. Torvalds (not that I don't trust his judgemeant ).

I wasn't sure what to search for. Can anyone point me in the right direction?

Thanks!
...drkstr
 
Old 07-21-2006, 12:33 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Are you sure it's in the kernel?

In every GRUB booted system I've ever seen (primarily Debian based) the logo is supplied by the distro maker & the basic color selection, as well as the logo image used, is controlled by menu.lst.

Or do I misunderstand your Q?
 
Old 07-21-2006, 12:46 PM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
From what my understanding is, there are two different types of logo's, one displayed during the initial boot sequence ( I think loaded by the boot loader, I could be wrong ), the other is actually compiled into the kernel. In 2.6.X kernels, it's under Device Drivers-->Graphic Support-->Logo configuration

You would then preform the following to get your logo to boot with the kernel:
Code:
pngtopnm logo.png | pnmtoplainpnm > logo_linux_clut224.ppm 
cp logo_linux_clut224.ppm /usr/src/linux/drivers/video/logo/
This encodes the image into the proper format to be used by the kernel.

I really don't know much how this process works, I just ran into the information while browsing around the net.

regards,
...drkstr
 
Old 07-21-2006, 01:23 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
As I feared, I didn't fully understand your Q.

Hope someone who does can help.
 
Old 07-26-2006, 07:02 PM   #5
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Yeah, it would be great to know how one can change the background color and the text color of one's console.
BTW, I'm going to test the piece of code provided by drkstr above

Last edited by Vitalie Ciubotaru; 07-26-2006 at 07:04 PM.
 
Old 07-27-2006, 01:22 PM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
What do you mean by "console"?
TTY or x-term?
If x-term, which window manager or desktop environment?

Assuming you are already booted up:
If you are running X &, say, KDE & want to change the colors of your Konsole, then use "Settings > Schema".

If, on the other hand, there is no X & you are in that CLI world known variously as a "tty" or a "vc", then you change your colors by embedding special non-printed strings in your prompt. These strings are known as "terminal control sequences" or "ANSI color codes", also "ECMA-48" and "ISO 6429". The best short, i.e. least confusing, list/explanation (that I have found) is in the dir_colors man page. Then to read about the prompt itself, open the bash man page & search for "When executing interactively". This will take you directly to the PROMPTING section.

Some more complicated references:
http://www.linuxfocus.org/English/Ma...ticle335.shtml
http://rpmfind.net/linux/netwinder.o.../ansi_col.html
 
Old 07-27-2006, 01:55 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
Quote:
What do you mean by "console"?
TTY or x-term?
Actually I mean neither, sorry for the poor choice of terminoligy.

I am refering to the initial boot sequence when the kernel is loading, and before the initialization scripts kick in. I think maybe the boot loader is where I need to be looking, but I haven't found any options for lilo that do what I need.

Quote:
These strings are known as "terminal control sequences" or "ANSI color codes", also "ECMA-48" and "ISO 6429". The best short, i.e. least confusing, list/explanation (that I have found) is in the dir_colors man page. Then to read about the prompt itself, open the bash man page & search for "When executing interactively". This will take you directly to the PROMPTING section.
Thanks for the good info on how the colors work, this will give me a good starting point once I find out how to set them during the boot sequence.

regards,
...drkstr
 
Old 07-27-2006, 05:59 PM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
drkstr,
Sorry for the confusion, I was replying to Vitalie Ciubotaru's off topic, but related, Q. I hoped that that was clear from the fact my post immediately followed.

Glad the color info was of use to you too.
 
  


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
Gnome splash screen background colors wont change at bootup dreadknott Linux - Newbie 1 01-21-2006 01:57 PM
Background colors and Wallpaper wildcat22 Linux - General 3 07-29-2005 07:28 PM
kspread: background colors won't be printed Seppel Slackware 5 09-14-2004 11:35 AM
How do I customize background/foreground colors in Eclipse? wearetheborg Linux - Newbie 0 09-10-2004 03:48 PM
16 colors background console mode bretzeltux Programming 3 05-11-2004 09:46 PM


All times are GMT -5. The time now is 08:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration