Hi,
Welcome to Linux Mint forums!
You have already added your image to the /boot/grub folder (as administrator), so now you need to edit a section of the file /etc/grub.d/06_mint_theme.
Open a terminal:
Code: Select all
sudo gedit /etc/grub.d/06_mint_theme
In the opened file, scroll down to the section beginning: # check for usable backgrounds
Change the line: use_bg=false
to read
use_bg=true
"Uncomment" this line - just remove the # symbol from the beginning of the line -
#if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
so it reads:
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
Go to this line -
but leave it as is including the # at the beginning:
# for i in {/boot/grub,/usr/share/images/desktop-base}/linuxmint.{png,tga} ; do
Just add this line directly underneath it, but substitute the name of your own image where it says
your-image-name
Code: Select all
for i in {/boot/grub,/usr/share/images/desktop-base}/your-image-name.{png,tga,jpg} ; do
- note that there is no # at the beginning of
this line
Then, "uncomment" only these lines below (just remove the # symbol from the beginning of the line) - keep the formatting the same
Code: Select all
# if is_path_readable_by_grub $i ; then
# bg=$i
# case ${bg} in
# *.png) reader=png ;;
# *.tga) reader=tga ;;
# *.jpg|*.jpeg) reader=jpeg ;;
# esac
# if test -e /boot/grub/${reader}.mod ; then
# echo "Found Debian background: `basename ${bg}`" >&2
# #use_bg=true
# break
# fi
# fi
# done
#fi
So the whole file should then look like this - with your actual image name substituted where it says "your-image-name." - the dot after the image name must be included:
Code: Select all
#!/bin/bash -e
source /usr/lib/grub/grub-mkconfig_lib
set_mono_theme()
{
cat << EOF
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
EOF
}
# check for usable backgrounds
use_bg=true
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
# for i in {/boot/grub,/usr/share/images/desktop-base}/linuxmint.{png,tga} ; do
for i in {/boot/grub,/usr/share/images/desktop-base}/your-image-name.{png,tga,jpg} ; do
if is_path_readable_by_grub $i ; then
bg=$i
case ${bg} in
*.png) reader=png ;;
*.tga) reader=tga ;;
*.jpg|*.jpeg) reader=jpeg ;;
esac
if test -e /boot/grub/${reader}.mod ; then
echo "Found Debian background: `basename ${bg}`" >&2
#use_bg=true
break
fi
fi
done
fi
# set the background if possible
#if ${use_bg} ; then
# prepare_grub_to_access_device `${grub_probe} --target=device ${bg}`
# cat << EOF
#insmod ${reader}
#if background_image `make_system_path_relative_to_its_root ${bg}` ; then
# set color_normal=white/black
# set color_highlight=white/light-gray
#else
#EOF
#fi
# otherwise, set a monochromatic theme for Ubuntu
#if ${use_bg} ; then
# set_mono_theme | sed -e "s/^/ /g"
# echo "fi"
#else
set_mono_theme
#fi
Save the file.
Then in the terminal:
It should find your image file.
Then reboot.
Note:
This post has been edited on 2 March 2013.
An error was made initially - in the first section after "use_bg=true", I didn't indicate that an additional line should be "uncommented".
I have added this section to the post above to rectify this:
Code: Select all
"Uncomment" this line - just remove the # symbol from the beginning of the line -
#if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
so it reads:
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
However, the line in the remainder of the original post was correct - that is, the same line
was uncommented as it should be elsewhere in the post.
This correct line was, in fact, copied/pasted and used correctly in the posts below.
I have also now included the entire file /etc/grub.d/06_mint_theme - how it should look after editing it - instead of just posting the relevant section of the file.
I hope this will be easier to follow.
I have retested the amended instructions with both LM13 Cinnamon and LM14 Cinnamon installs - both worked for me.[/color]
Note that the additional section added does not relate to the problem Brahim experienced below.
Apologies for any confusion this may have caused.