LinuxQuestions.org
Help answer threads with 0 replies.
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 07-31-2005, 03:32 AM   #1
smartentity
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Rep: Reputation: 0
Question console colors


Hi,

Does anybody know how to change the linux default console color ? It is grey on black by default but I want it to be green on black.

Best Regards
 
Old 07-31-2005, 05:38 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Depends which console you're using. If you're running under Gnome then it's probably gnome-terminal, which you can change the colours by going to Edit > Profiles > Default > Edit > Colours. If you're under KDE then it's probably konsole and there's a similar option somewhere in the menus.
 
Old 08-01-2005, 06:02 AM   #3
smartentity
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you cdhgee,

but I mean none of them, I do not mean the terminal window, I mean the command ptompt mode console, that you access through Ctrl-Alt-F1.

Best for you
 
Old 08-01-2005, 07:51 AM   #4
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Hummm... Good question!!

I will look into it
 
Old 08-01-2005, 09:00 AM   #5
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Well there is a lot of places they mention about setterm... try

setterm -foreground black -background white -store

it didn't work for my distro (RH9) but maybe...

Another popular way is changing the background directely in the console.c file and recompiling...

more news if I find anything else

Last edited by LuggerHouse; 08-01-2005 at 09:01 AM.
 
Old 08-03-2005, 12:01 AM   #6
smartentity
LQ Newbie
 
Registered: Jul 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Dear LuggerHouse,

I added the following line to the end of .bashrc

export PS1="\\033[1;32m[\u@\h \W]\\$ "

and now I have the MATRIX console. (Green on Black).

have fun.

Last edited by smartentity; 08-03-2005 at 12:03 AM.
 
Old 08-03-2005, 08:34 AM   #7
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Thanks Smart

I already do that ;-) My problem start when I would like to change the "on black"...

I settled up my ssh program (Secure CRT) to display a white background with black writing for Production servers but I was never able to set this directely on the console...

Cheers!
 
  


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
icewm console no colors daspooky Slackware 2 11-25-2004 04:10 PM
colors in console??? alaios Linux - General 1 08-11-2004 08:11 PM
console colors ninadb Slackware 3 04-28-2004 03:31 AM
C and Console colors Gerardoj Programming 3 04-23-2004 12:47 AM
Console colors how-to? PaulBeton Linux - Newbie 5 11-12-2003 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 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