LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2011, 05:30 AM   #1
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Rep: Reputation: 3
Exclamation Want to change the font color of booting messages


Hey,
I'm using Arch Linux 2.6.33 without X on VirtualBox. I want to set my font color to green. So i used setterm command and added the following code to /etc/rc.local
Code:
echo -en "\\033[32m\\033[8]" > /dev/tty1
echo -en "\\033[32m\\033[8]" > /dev/tty2
echo -en "\\033[32m\\033[8]" > /dev/tty3
echo -en "\\033[32m\\033[8]" > /dev/tty4
echo -en "\\033[32m\\033[8]" > /dev/tty5
echo -en "\\033[32m\\033[8]" > /dev/tty6
But i couldn't find a way to change font color of messages that come before login screen. More precisely i want to change the font color of messages that come at booting time.Any help will be appreciated !
TIA!

Last edited by konsolelover; 10-23-2011 at 05:34 AM.
 
Old 10-23-2011, 10:15 PM   #2
zootboy
Member
 
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
It's easy, and you don't even have to change any config files! All you have to do is pull out your monitor's VGA cable. Take a pair of wire cutters and clip off pins 1 and 3. Plug it back in and BAM! Green text!

...

OK, fine. I'll look past how superficial this request is and instead chide you on your poor googling skills.

http://www.linuxforums.org/forum/mis...ty-colors.html

Google search: "Grub TTY color"
Result #: 3
Time to Answer: 25 seconds
 
Old 10-24-2011, 01:52 AM   #3
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Original Poster
Rep: Reputation: 3
First of all, thanks for your reply,
Quote:
Originally Posted by zootboy View Post
It's easy, and you don't even have to change any config files! All you have to do is pull out your monitor's VGA cable. Take a pair of wire cutters and clip off pins 1 and 3. Plug it back in and BAM! Green text!
Maybe i should have told you that i use a laptop.
Quote:
how superficial this request is

Quote:
instead chide you on your poor googling skills.

http://www.linuxforums.org/forum/mis...ty-colors.html
I had already gone through this link and tried but it didn't help.
Quote:
Google search: "Grub TTY color"
Result #: 3
Time to Answer: 25 seconds
Oh no, Maybe you didn't understand what i meant. I just don't want to color grub menu. I want to color the fonts that come after grub menu and before the login screen.Correct me, if this noob is wrong anywhere.
TIA!
 
Old 10-24-2011, 08:45 AM   #4
zootboy
Member
 
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
Don't take offense, I posted all that in a joking manner. But if you look at that link a little more closely, there is info on how to change the tty colors (which refers to the boot commands, not GRUB menus). Specifically post #4.

Last edited by zootboy; 10-24-2011 at 08:47 AM.
 
Old 10-24-2011, 10:55 AM   #5
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by zootboy View Post
But if you look at that link a little more closely, there is info on how to change the tty colors (which refers to the boot commands, not GRUB menus). Specifically post #4.
Here is the screenshot of my inittab file,
But i couldn't understand the post #5.Where is this compiling-config file?
(1 side question)Also now when i thought to check it in my Ubuntu 11.04, which is my host OS, i couldn't find the inittab file.
Attached Thumbnails
Click image for larger version

Name:	inittab.png
Views:	89
Size:	13.1 KB
ID:	8235  
 
Old 10-24-2011, 11:02 AM   #6
zootboy
Member
 
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
inittab should be in /etc/inittab. I don't use Ubuntu, but that should be standard for most linux distros.

As for post #5, that's for if you want to recompile your kernel. I was assuming you didn't want to do that. If you do, you may want to google "compiling ubuntu kernel." Building your own kernel can be a...process.
 
Old 10-24-2011, 11:40 AM   #7
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Ubuntu has changed from using inittab (System V init) to upstart. There's no /etc/inittab on my system.

See man upstart (which shows man 8 init) and look in /etc/init.conf (if it exists) and /etc/init/*
 
Old 10-24-2011, 11:49 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Actually, I find that rather interesting. If anyone knows a solution for that, i would like my boot-messages in amber, like on those old monitors (had one with my first x86 computer).
 
Old 10-24-2011, 12:43 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
I found out that it is rather simple to change the color of the kernel messages (if you know how to compile a kernel). In your kernel source tree open the file drivers/tty/vt.c with a text editor and search for the function vc_init. inside it you will find the line
Code:
vc->vc_def_color       = 0x07;   /* white */
Change that to 0x02 instead, recompile the kernel and if you boot that kernel you will get green messages.
No I have to look if those colors can be customized, I want amber or at least something similar looking.
 
Old 10-24-2011, 01:44 PM   #10
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Original Poster
Rep: Reputation: 3
Unhappy

Quote:
Originally Posted by TobiSGD View Post
I found out that it is rather simple to change the color of the kernel messages (if you know how to compile a kernel). In your kernel source tree open the file drivers/tty/vt.c with a text editor and search for the function vc_init. inside it you will find the line
Code:
vc->vc_def_color       = 0x07;   /* white */
Change that to 0x02 instead, recompile the kernel and if you boot that kernel you will get green messages.
No I have to look if those colors can be customized, I want amber or at least something similar looking.
It really sounds like rocket science to a newbie with 3-4 months experience in Linux.
Quote:
See man upstart (which shows man 8 init) and look in /etc/init.conf (if it exists) and /etc/init/*
There is no init.conf file either. I tried to change tty1.conf(thought maybe ....) but it didn't work.Don't know how to use upstart.
Is there any other way to do it?
 
Old 10-24-2011, 02:21 PM   #11
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I'm pretty sure changing tty1.conf would fix the colour on tty1, which you get to using Ctrl-Alt-F1 (after booting).

Despite zootboy's confidence the thread he linked to also said this technique does not work for boot messages. So far the only solution presented is to recompile the kernel - which I don't recommend you try at this stage!
 
Old 10-24-2011, 04:17 PM   #12
zootboy
Member
 
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
My confidence is merely a fašade. =P I'm no expert on anything, but I try to help as best I can.

I've never mucked about in the land of compiling kernels. I still think my VGA cable modification is the best solution =D
 
Old 10-25-2011, 01:42 AM   #13
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by zootboy View Post
I'm no expert on anything, but I try to help as best I can.
Yes, you did.
Quote:
So far the only solution presented is to recompile the kernel - which I don't recommend you try at this stage!
Oops!
Found z-vet's profile(http://www.linuxquestions.org/questi.../z-vet-131593/) on LQ. Maybe he could explain his code, but he seems like inactive these days. :x
 
Old 10-25-2011, 02:04 AM   #14
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
What if he has DVI cable, is he out of luck?

I would try to pass the change that you suppose to do before recompiling the kernel to the kernel at the GRUB menu, try that.
 
Old 10-26-2011, 01:47 AM   #15
konsolelover
Member
 
Registered: Jul 2011
Location: 127.0.0.1
Distribution: Arch, Ubuntu 11.04
Posts: 78

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by hen770 View Post
What if he has DVI cable, is he out of luck?

I would try to pass the change that you suppose to do before recompiling the kernel to the kernel at the GRUB menu, try that.
Thanks for your reply,
Can you illustrate your solution in detail?
 
  


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
change mrxvt font color GlupFire Linux - Newbie 2 09-26-2009 02:28 PM
why gcc make error/warning messages dont show color font wwqly12 Linux - Software 1 03-18-2009 02:48 PM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 09:57 PM
change the font color Drunkalot Linux - General 2 08-09-2005 11:37 PM
change font color...no NOT in X centr0 Slackware 4 05-01-2003 04:29 AM


All times are GMT -5. The time now is 05:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration