Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-05-2010, 05:03 PM   #1
Registered: Apr 2006
Location: MA
Distribution: Slackware 13
Posts: 67

Rep: Reputation: 15
Change base console text color

Hi guys,

I'm interested in changing the console text color. I can change the console color easily in X, but I'd also like to change the color of the text when my computer first boots up (like right after LILO).

Is this something I can modify without rebuilding the kernel? If not, does anyone know where in the source I could make a change like this?
Old 09-05-2010, 05:12 PM   #2
Hannes Worst
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Fedora, Slackware, NetBSD
Posts: 126

Rep: Reputation: 57
In my Slackware 12.2 install I achieved this with the use of this site. Maybe it can be of help for you too!

Last edited by Hannes Worst; 09-05-2010 at 05:15 PM.
Old 09-05-2010, 05:15 PM   #3
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 33
The site is good. Also you have .bashrc or .history_bash or .profilerc file in ~ dir(. mean files are hidden). I didn't remember well the name. There you can save some custom commands and tweaks for terminal or whatever program you use.
Old 09-05-2010, 05:26 PM   #4
Registered: Apr 2006
Location: MA
Distribution: Slackware 13
Posts: 67

Original Poster
Rep: Reputation: 15

I was kind of expecting there to be some configuration file for this somewhere where I could also change the screen resolution while booting-- it's extremely low atm.

Does anyone know where I can change this?
Old 09-05-2010, 06:34 PM   #5
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
Change screen resolution at boot using pkgtool.Go into setup and select liloconfig.You will see a selection of setting for the resolution/font size.
Old 09-05-2010, 06:42 PM   #6
Senior Member
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Originally Posted by hoodooman View Post
Change screen resolution at boot using pkgtool.Go into setup and select liloconfig.You will see a selection of setting for the resolution/font size.
Unless you are an intel GPU user, in which case your kernel us using KMS by default, and you change the resolution by passing a 'video=XRESxYRES' argument to the kernel.

Old 09-07-2010, 11:03 PM   #7
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
Thumbs up

I forget just where I picked this up, it could very well have been "Advanced Bash Scripting"

I place this in "/etc/profile" to change the bash prompt to dark green.

	export PS1="\033[0;32m\u@\h:\w# \033[0m"

# \033[0;32m     sets the colour to dark green
# \033[0m        returns the console to "normal" text
There are 14 colours available (black is not generally a good idea)

    # the normal/dark shades
	"\033[0;30m" # Black
	"\033[0;31m" # Dark Red
	"\033[0;32m" # Dark Green
	"\033[0;33m" # Brown    	(muddy orange)
	"\033[0;34m" # Navy Blue        (dark)
	"\033[0;35m" # Magenta/dark Purple
	"\033[0;36m" # Cyan (dark dusty-blue)
	"\033[0;37m" # White/Grey	(default)
    # the bright colours
	"\033[1;30m" # Black
	"\033[1;31m" # Bright Red  	(pinky-red)
	"\033[1;32m" # Bright Lime Green
	"\033[1;33m" # Bright Yellow
	"\033[1;34m" # Blue 		(brighter)
	"\033[1;35m" # Violet/bright Purple
	"\033[1;36m" # Bright Cyan  	(sky blue)
	"\033[1;37m" # Bright White

To change your boot resolution, you might change the "vga=" line in "/etc/lilo.conf". Do not forget to run "lilo" (as root) after any change.

It is probably a good idea, but not absolutely required, to boot your system to the same resolution you use for X.

A list of the available resolutions for vesa framebuffers: adapted from the Slackware "lilo.conf":

	# Normal (default) VGA console          # vga=normal
	# vesa framebuffers:   640x480 @256	# vga=769
	# vesa framebuffers:   800x600 @256	# vga=771
	# vesa framebuffers:  1024x768 @256	# vga=773
	# vesa framebuffers:   640x480 @32k	# vga=784
	# vesa framebuffers:   640x480 @64k	# vga=785
	# vesa framebuffers:   800x600 @32k	# vga=787
	# vesa framebuffers:   800x600 @64k	# vga=788

	# vesa framebuffers:  1024x768 @32k	# vga=790
	# vesa framebuffers:  1024x768 @64k	# vga=791

# undocumented resolutions:
	# vesa framebuffers:  1280x1024 @32k	# vga=793
	# vesa framebuffers:  1280x1024 @64k	# vga=794
Alternatively you may add an append line to lilo.conf for "vesafb" (covers most vga cards) or load a driver specific to your card if supported.

I always found the "intelfb" driver to be unpredictable and difficult to configure.
The "intelDRMfb" driver seems to be immune to any options and boots to the highest available resolution. Others may have had better luck with this than I, and hopefully this will change with future kernels.

If there is no framebuffer support in your kernel for your specific card, you will have to be satisfied with the generic (vesa) framebuffers.

This is what I use for my Matrox g450 ("matroxfb"), which sets the resolution to 1280x1024 at 32 bit colour depth (equivalent to 24 bits in X and 64k from the vga= options in lilo). This also works for the Matrox g550 but not the p690:

The comparable vesa framebuffer setting would be "vga=794"

An append line for supported ATI Radeon cards ("radeonfb") might be similar.

Although the entry for any framebuffer device can become quite complex, it pays to keep it as simple as possible. Do not force any option unless you must.


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
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 03:19 AM
Output Text in color, in console skyknight Linux - Newbie 2 11-21-2008 02:39 AM
Constantly changing text color on the console jpanski Linux - Newbie 2 01-09-2008 03:35 PM
Console Text Color Change Mercurius Slackware 6 05-16-2006 08:35 AM
How to get a color text console? dejavu_01 Debian 1 08-30-2005 12:38 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration