-
Changing the boot text color
I want to change the text displayed during boot to green. Everything after the boot loader, and prior to x.
I havent found any info on it, but it was done on knoppix I recall.
Can someone point me in the right direction?
i am running Debian Etch 2.6.15
-
You need to play with linuxrc, inside minirt.gz.
-
thanks, anything more specific?
-
Senior Member
registered user

Originally Posted by
hyperlife
thanks, anything more specific?

search this forum for linuxrc and then google search for bash shell and colors.
-

Originally Posted by
UnderScore

Originally Posted by
hyperlife
thanks, anything more specific?

search this forum for linuxrc and then google search for bash shell and colors.
I did that and found next to nothing. After playing around with it for an hour or two I discovered it's pretty easy. I'm sure UnderScore and other could have answered this off the top of thier heads - I'm not sure why they don't. Anyway here it is, so we can check it off the list as something that's now well documented:
1) find minirt.gz (or minirt24.gz, etc depending on your version) in your boot directory
2) Bash commands:
gunzip minirt.gz (or minirt24.gz, etc) # extract the contents, it will extract as a single file
mkdir temp # create a temporary directory as a mount point for the file
mount -o loop minirt temp # mount the extracted contents into the 'temp' directory
vi temp/linuxrc # edit the bash script containing the boot sequence
3) while editing linuxrc (last step above) you should be able to easily locate the part you want to change. Save your changes.
4) umount temp
5) gzip -9 minirt (or minirt24, etc. - whatever the filename is)
6) You're done. If you were smart you did this to a copy of the original. Rename the original something else as a backup.
-
Senior Member
registered user
Frankly I've extracted the 'linuxrc' from my 3.8.2 install and it looks like something poor:
Code:
#!/bin/sh
#
# $Id: linuxrc,v 1.11 2004/04/26 12:04:46 herbert Exp $
export PATH=/sbin:/bin
mount -nt proc proc proc
root=$(cat proc/sys/kernel/real-root-dev)
echo 256 > proc/sys/kernel/real-root-dev
mount -nt tmpfs tmpfs bin ||
mount -nt ramfs ramfs bin
echo $root > bin/root
Maybe a useful file to hack is '/etc/init.d/knoppix-autoconfig'.
In it there is stuff like the colored kernel version prompt at boot:
Code:
KERNEL="$(uname -r)"
echo "${GREEN}Running Linux Kernel ${YELLOW}$KERNEL${GREEN}.${NORMAL}"
Similar Threads
-
By Dr4k3 in forum Customising & Remastering
Replies: 1
Last Post: 10-17-2004, 07:52 PM
-
By jwh7 in forum General Support
Replies: 1
Last Post: 10-13-2004, 11:06 PM
-
By garyng in forum General Support
Replies: 5
Last Post: 04-06-2003, 10:15 AM
-
By mda in forum General Support
Replies: 5
Last Post: 04-01-2003, 02:05 AM
-
By johncarlson21 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 01-22-2003, 08:23 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor
$79.00

CPU-RAM-MOBO COMBO- 32gb DDR4 3600MHz, i5 CPU, Asus Prime Motherboard
$370.00

HP ProDesk 405 G8 Desktop AMD Ryzen 5 PRO 5650GE 16GB RAM 512GB SSD W11P
$319.99

Intel SRG17 Core i7-9700T Desktop Processor CPU
$74.99

Intel Core i7-9700 SRG13 3.0 GHz Desktop CPU
$80.00

Intel Xeon E3-1230 v3 SR153 3.3GHz Quad Core LGA 1150 CPU Processor
$14.49

Intel Core i5-14600KF Unlocked Desktop Processor
$259.99

Intel Core i5-4590T 2 GHz 5 GT/s LGA 1150 Desktop CPU Processor SR1S6
$14.99

GAMING COMBO: ASUS Prime H470M-PLUS MOTHERBOARD + i5-10600KF CPU + 16GB DDR4
$229.95