PDA

View Full Version : Text boot colors...



rrfish72
11-19-2004, 08:10 PM
How do you change the text colors on the boot screen when all the info is rolling by the screen?

UnderScore
11-19-2004, 10:47 PM
How do you change the text colors on the boot screen when all the info is rolling by the screen?
I don't know exactly how you, rrfish72, might use this information to change a running HD install of Knoppix/Debian but here goes ....

I boot with Knoppix 3.6. I used cheatcodes to being me to a runlevel 2 prompt:
knoppix 2 nodma vga=normal
Once it brought me to a prompt, I copied the minirt24.gz file from /cdrom/boot/isolinux to /home/knoppix

cp /cdrom/boot/isolinux/minirt24.gz /home/knoppix
I changed to the /home/knoppix directory and extracted the minirt24 file.

cd /home/knoppix
gunzip minirt24.gz
Then I made a temporary directory and then I mounted the minirt24 file on top of that directory.

mkdir temp
mount -t ext2 -o loop /home/knoppix/minirt24 /home/knoppix/temp
Once that is complete, I entered the temp directory and noticed that it contained a script named linuxrc. I used a text editor (I use vim) and took a look at the file. I found that it is the script that outputs and colorizes the bootup messages. It uses the bash shell color codes (http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html) to give each line a color.

I hope this helps.
James