LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-02-2009, 04:58 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.
 
Old 06-02-2009, 05:06 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Looks like they are used below title - that's all I can see

http://www.linuxselfhelp.com/gnu/gru..._12.html#SEC48
 
Old 06-02-2009, 05:18 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can install a splash screen ?
http://ruslug.rutgers.edu/~mcgrof/grub-images/
http://schragehome.de/splash/
 
Old 06-02-2009, 05:48 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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
 
Old 06-02-2009, 05:57 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
As I suggested before, try the color statement for each title and see if that works.
 
Old 06-02-2009, 06:00 PM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
I will try it now...Thanks Repo and Billymayday
 
Old 06-02-2009, 06:06 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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
 
Old 06-02-2009, 06:08 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try it without spashimage as a test then
 
Old 06-02-2009, 06:43 PM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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....?
 
Old 06-02-2009, 06:45 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'll have a play on a desktop later.
 
Old 06-03-2009, 04:23 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Works fine for me.
 
Old 06-03-2009, 06:07 AM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
OK, how did you do it?

Is this on your HD or USB?

Can you post the menu.lst?
Thanks
 
Old 06-03-2009, 06:46 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 06-03-2009, 06:55 AM   #14
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Original Poster
Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
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.
 
Old 06-03-2009, 12:49 PM   #15
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,617

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
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.

Last edited by malekmustaq; 06-03-2009 at 12:55 PM.
 
  


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
How to change the grub menu.lst ? uffe2 Linux - Software 2 01-04-2008 09:00 PM
How to change partition Grub looks for menu.lst file in. Mountain Man Linux - General 8 12-27-2007 11:47 AM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM
Grub - how do I change which partition is used to find menu.lst nickhen Linux - General 1 01-24-2005 01:48 PM


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