SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-05-10 14:14:06

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Change GRUB background and text colour.

Hi,
Can anyone provide step by step instructions to edit the grub menu with a customized splash screen and custom colours for the text?

I had it before when I renamed the crunchbang background in /usr/share/images/desktop-base

but then I edited the 05_debian_theme file according to a post I read somewhere.

Now the grub menu is a big blue box with light blue lettering and no background.

hmmmm

Anyone? Bueller? Bueller?

Offline

Help fund CrunchBang, donate to the project!

#2 2012-05-10 14:15:14

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

Re: Change GRUB background and text colour.

Have a read through this, it mite be useful

http://ubuntuforums.org/showthread.php?t=1542338

Offline

#3 2012-05-10 15:12:03

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Re: Change GRUB background and text colour.

I give up.
Many mistakes in the instructions...

First off: "When you have moved your picture (mine is called “rain.tga”), you should right click on it and go down to the properties tab and put a check mark next to Execute (Allow executing file as a program).
If you do not make the picture executable, it will not be displayed upon boot."

Doesn't exist t least in Thunar.

And I have no idea how to execute this:
sudo grub-mkfont --output=/boot/grub/DejaVuSansMono.pf2 \
--size=24 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf

Thanks anyway.

Offline

#4 2012-05-10 15:26:04

TitanMech
Banned
From: Blue Zone 3
Registered: 2011-08-28
Posts: 930

Re: Change GRUB background and text colour.

MAybe you could try chmod +x on the image file

And yeah i know the instructions are old, but they did work for me when i used ubuntu.

Offline

#5 2012-05-10 15:34:09

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,786

Re: Change GRUB background and text colour.

Well,if it helps, here's the default Statler 05_debian_theme:

#!/bin/sh -e

. /usr/lib/grub/grub-mkconfig_lib

# this allows desktop-base to override our settings
f=/usr/share/desktop-base/grub_background.sh
if test -e ${f} ; then
  . ${f}
else
  WALLPAPER="/usr/share/images/desktop-base/grub-splash-crunchbang.png"
  COLOR_NORMAL="light-gray/black"
  COLOR_HIGHLIGHT="black/white"
fi

set_blue_theme()
{
  cat << EOF
set menu_color_normal=light-gray/black
set menu_color_highlight=black/white
EOF
}

# check for usable backgrounds
use_bg=false
for output in ${GRUB_TERMINAL_OUTPUT}; do
  if [ "$output" = "gfxterm" ] ; then
    for i in /boot/grub/`basename ${WALLPAPER}` ${WALLPAPER} ; 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 background image: `basename ${bg}`" >&2
          use_bg=true
          break
        fi
      fi
    done
    break
  fi
done

# 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=${COLOR_NORMAL}
  set color_highlight=${COLOR_HIGHLIGHT}
else
EOF
fi

# otherwise, set the traditional Debian blue theme
if ${use_bg} ; then
  set_blue_theme | sed -e "s/^/  /g"
  echo "fi"
else
  set_blue_theme
fi

I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#6 2012-05-10 15:42:02

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Change GRUB background and text colour.

I can just suggest you this uber cool thread we made on drugs big_smile:

http://crunchbanglinux.org/forums/topic … your-boot/

Offline

#7 2012-05-10 16:36:03

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 1,965

Re: Change GRUB background and text colour.

I always just overwrote grub.png to change the background. You gotta make the image less than 255 colors or something, I forget. I use syslinux now and set it so the prompt time is like 0.16 seconds so no point in making a background image.

Offline

#8 2012-05-10 16:38:16

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Change GRUB background and text colour.

^ stop making it seem like i'm on drugs all the time Black Ivan! big_smile

Offline

#9 2012-05-10 17:26:33

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,429

Re: Change GRUB background and text colour.

^ Sorry! big_smile At least I wrote we.

Offline

#10 2012-05-10 21:59:40

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Re: Change GRUB background and text colour.

Thanks for all the help guys but it is no use. I tried everything. My computer is posessed. Whatever works on every other machine doesn't work on mine. I followed the fancy boot colour instructions to the letter and I get nothing. Tried everything with every grub config and nothing. It worked that one time and I didn't have to reduce colours. I just edited the "grub-crunchbang" png image which seems to be the only image that update-grub will accept.

Offline

#11 2012-05-12 11:45:21

Maj_Numpty
Member
From: Belgium
Registered: 2012-05-02
Posts: 10

Re: Change GRUB background and text colour.

http://forums.debian.net/viewtopic.php?f=16&t=78121

Trust me, in this case - been there done that ! I know your pain ::/ ....BUT this gives you ALL the answers big_smile

Offline

#12 2012-05-16 09:39:12

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Re: Change GRUB background and text colour.

Maj_Numpty wrote:

http://forums.debian.net/viewtopic.php?f=16&t=78121

Trust me, in this case - been there done that ! I know your pain ::/ ....BUT this gives you ALL the answers big_smile


I'll give it a shot! cool

Offline

#13 2012-05-19 11:54:02

Gedis
New Member
Registered: 2012-05-19
Posts: 3

Re: Change GRUB background and text colour.

rename image to "grub-splash-crunchbang.png" make sure it's png. - not jpg.Move to "/usr/share/images/desktop-base/" .It's all.If need change resolution,in terminal "sudo geany /boot/grub/grub.cfg" .Find "set gfxmode=1024x768" or different resolution,and change it to you screen.Find "set timeout=5" and change timeout how much you need.Save,reboot and it's all.Sory for bad english...

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo