LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change Grub menu.lst text color? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-grub-menu-lst-text-color-730254/)

linus72 06-02-2009 04:58 PM

How to change Grub menu.lst text color?
 
OK, I tried changing my grub menu.lst from
the standard colors to-

Code:

# Pretty colours
color magenta/blue black/magenta

But, the text is still white and black background....
Any ideas?
I tried googling, etc but no dice..
Thanks.

billymayday 06-02-2009 05:06 PM

Looks like they are used below title - that's all I can see

http://www.linuxselfhelp.com/gnu/gru..._12.html#SEC48

repo 06-02-2009 05:18 PM

Perhaps you can install a splash screen ?
http://ruslug.rutgers.edu/~mcgrof/grub-images/
http://schragehome.de/splash/

linus72 06-02-2009 05:48 PM

Installing the splashscreen may be the issue-

I installed a splashscreen I found on the web-
I then tried to change the colors, as the splashimage has alot of white in it and so the text should be blue or black...

Code:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                10

## waitusb
# Set a wait-time, in seconds, 5 is good
waitusb=5

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
color magenta/blue black/magenta

## Splash image!
splashimage (hd0,0)/boot/grub/splashimages/grub2_skull.xpm.gz

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=ce6d5374-9f45-41e4-9113-e72653b4a7ee ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ## ##

title TinyCore-1.4.3 (tclocal-autofind)
kernel /boot/bzImage quiet waitusb=5
initrd /boot/tinycore.gz

title TinyCore-1.4.3 (tce/restore-sda1)
kernel /boot/bzImage quiet restore=sda1 tce=sda1 waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Musix
kernel /boot/bzImage quiet tcvd=sda1/flavors/musix restore=tcvd tce=tcvd tcz=tcvd waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Compiler
kernel /boot/bzImage quiet tcvd=sda1/flavors/compilr restore=tcvd tce=tcvd waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Office
kernel /boot/bzImage quiet tcvd=sda1/flavors/office restore=tcvd tce=tcvd waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Multimedia
kernel /boot/bzImage quiet tcvd=sda1/flavors/multim restore=tcvd tce=tcvd waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Rescue
kernel /boot/bzImage quiet tcvd=sda1/flavors/rescue restore=tcvd tce=tcvd waitusb=5
initrd /boot/tinycore.gz

title TinyCore-Low-RAM
kernel /boot/bzImage quiet tcvd=sda1/flavors/loram restore=tcvd tce=tcvd waitusb=5
initrd /boot/tinycore.gz

So, that's the grub/menu.lst..
any ideas or grub can't show pretty text with splashimage??
thanks

billymayday 06-02-2009 05:57 PM

As I suggested before, try the color statement for each title and see if that works.

linus72 06-02-2009 06:00 PM

I will try it now...Thanks Repo and Billymayday

linus72 06-02-2009 06:06 PM

OK, that didn't work either

I only have white text, that's it.
Maybe grub can't show colors when using a splashimage??

I am going to try Qgrubeditor now, but it's doubtful too.


title TinyCore-1.4.3 (tclocal-autofind)
color magenta/blue black/magenta
kernel /boot/bzImage quiet waitusb=5
initrd /boot/tinycore.gz

billymayday 06-02-2009 06:08 PM

Try it without spashimage as a test then

linus72 06-02-2009 06:43 PM

Well, still nothing, even without the splashimage the background is black with white text.

Could it be because I'm booting via USB?
I am running Tinycore-1.4.3 from a EXT3/Grub 4GB USB.
I doubt that could be it....?

billymayday 06-02-2009 06:45 PM

I'll have a play on a desktop later.

billymayday 06-03-2009 04:23 AM

Works fine for me.

linus72 06-03-2009 06:07 AM

OK, how did you do it?

Is this on your HD or USB?

Can you post the menu.lst?
Thanks

billymayday 06-03-2009 06:46 AM

It's a multiboot HD. Line was just something like "color light-blue/black white/blue". I don't have a splashimage and I put the line prior to any title statements.

Can't post menu.lst - I'm back in Windows land at the moment.

linus72 06-03-2009 06:55 AM

Yeah, I got it working without the splashimage, so maybe Grub can't show color text and a splashimage....
I'll keep banging at it.

malekmustaq 06-03-2009 12:49 PM

linus72:

BTW I have passed through with similar problem when I hacked my boot time splash screen. Actually to change the color of the text over the the splash background can be done by editting the menu.lst. On the other hand, to change the wallpaper/splash picture you need to use cpio command to change the distro or grub default message.

I took a .jpg from Slackware site to replace my gnome.message splash, it was a simple hack to replace a .jpg background, but when the picture succeeded trouble came when I can no longer read the text (choices) because they became all dark. So I changed my menu.lst entry to following:

---------------
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue
---------------

So in your case try to change different combinations of colours.

The trick worked for me. By the way, my splash was gnome because I don't install any boot loader for my Slackware, this I boot using grub from Mint on another partition.

Hope this helps.

Good luck.


All times are GMT -5. The time now is 06:21 AM.