Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

Thread: Grub 2 Won't Use My Theme

  1. #1
    Join Date
    Jan 2011
    Beans
    13

    Grub 2 Won't Use My Theme

    I followed the guide to set up a theme on my Ubuntu 11.04 but i only get a basic looking GRUB screen. See attached picture

    Can anyone help please
    Thanks
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: A Beginner's Guide to Theming GRUB2

    Quote Originally Posted by Tikabu View Post
    I followed the guide to set up a theme on my Ubuntu 11.04 but i only get a basic looking GRUB screen. See attached picture

    Can anyone help please
    Thanks
    When I've gotten a screen such as the one you mentioned it was because Grub 2 hadn't found the theme or there was something which prevented it from being used. When you run 'sudo update-grub' see if the terminal provides a message indicating it found the theme file.
    Last edited by drs305; September 19th, 2011 at 06:47 PM.
    Back to Xorg...

    Retired.

  3. #3
    Join Date
    Jan 2011
    Beans
    13

    Re: A Beginner's Guide to Theming GRUB2

    I am sorry if i am not suppose to use this thread as support but i don’t know where else i can go.

    This is my out put when I run the sudo update-grub

    Code:
    Generating grub.cfg ...
    Found theme: /boot/grub/themes/ubuntu/theme.txt
    Found linux image: /boot/vmlinuz-2.6.38-11-generic
    Found initrd image: /boot/initrd.img-2.6.38-11-generic
    Found linux image: /boot/vmlinuz-2.6.38-8-generic
    Found initrd image: /boot/initrd.img-2.6.38-8-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows NT/2000/XP on /dev/sda1
    done
    I don't see any error message
    Thanks

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: A Beginner's Guide to Theming GRUB2

    Quote Originally Posted by Tikabu View Post
    I am sorry if i am not suppose to use this thread as support but i don’t know where else i can go.

    This is my out put when I run the sudo update-grub

    Code:
    Generating grub.cfg ...
    Found theme: /boot/grub/themes/ubuntu/theme.txt
    I don't see any error message
    Thanks
    That was the line I was referring to. Grub 2 is finding your theme so that is not the problem.

    As far as the support question, generally we prefer users start their own threads. Since I'm a moderator, if you wish I can move our posts to a new thread with a title such as "Grub 2 Won't Use My Theme" or something like that. Having your own thread will ensure the advice is specific to your situation and may be read more often than posts in this thread.

    Mod Note: New thread created.
    Last edited by drs305; September 19th, 2011 at 06:48 PM.
    Back to Xorg...

    Retired.

  5. #5
    Join Date
    Dec 2009
    Beans
    286

    Re: A Beginner's Guide to Theming GRUB2

    As stated in the guide, if the gfxmenu theming engine does not find even one element of your theme or if there is some mistake in your theme definition file, it will display the text screen

    Can you post the contents of your theme.txt file?
    The Definitive Guide to Theming GRUB2 is here.

  6. #6
    Join Date
    Jan 2011
    Beans
    13

    Re: Grub 2 Won't Use My Theme

    Here is my theme.txt

    Code:
    # GRUB2 gfxmenu Ubuntu Demo Theme
    # The Definitive Guide to Theming GRUB2,
    # using the ubuntu1 demo theme from http://www.gibibit.com
    # Designed for 640x480 resolution
    
    # Global Property
    title-text: "GRUB2 Demo Theme"
    title-font: "DejaVu Sans Regular 12"
    title-color: "B08458"
    #message-font: "DejaVu Sans Regular 12"
    #message-color: "#FFFFFF"
    #message-bg-color: "#020202"
    desktop-image: "desktop.png"
    desktop-color: "#000000"
    #terminal-box="terminal_*.png"
    #terminal-font="Fixed Regular 13"
    
    # Show the boot menu
    + boot_menu {
    left = 15%
    top = 37%
    width = 70%
    height = 42%
    item_font = "DejaVu Sans Bold 14"
    item_color = "#B08458"
    selected_item_color = "#FFFFFF"
    item_height = 32
    item_padding = 0
    item_spacing = 3
    }
    Thanks

  7. #7
    Join Date
    Dec 2009
    Beans
    286

    Re: Grub 2 Won't Use My Theme

    Line #9 should be:
    Code:
    title-color: "#B08458"
    You left out the '#' before the color value.

    If that does not help, please post the output from:
    Code:
    ls -l /boot/grub/{themes/ubuntu1,fonts}
    Finally, did you create your own fonts or did you use the ones from the .tar.gz file you downloaded?

    NOTE: Natty uses GRUB 1.99. I have not tested with 1.99. If you find any discrepencies with 1.99, I'dd appreciate a PM, thanks. My next re-write will surely include 1.99 and most likely whatever stable release is out at that time. I'm presently working on an in-depth tutorial for theming metacity.
    The Definitive Guide to Theming GRUB2 is here.

  8. #8
    Join Date
    Jan 2011
    Beans
    13

    Re: Grub 2 Won't Use My Theme

    I fixed the missing '#' but now when i reboot i just get a black screen. I don't get any selection for the os i want to boot into.

    Thanks

  9. #9
    Join Date
    Dec 2009
    Beans
    286

    Re: Grub 2 Won't Use My Theme

    I'm assuming you can boot the default menu item. Please post the output from:
    Code:
    ls -l /boot/grub/{themes/ubuntu,fonts}
    Looking at the screenshot in your first post, I'm seeing the second menu item 'Previous Linux versions'. Is this an entry you added manually or are you chainloading GRUB2 from GRUB legacy?
    Last edited by towheedm; September 28th, 2011 at 02:03 AM.
    The Definitive Guide to Theming GRUB2 is here.

  10. #10
    Join Date
    Jan 2011
    Beans
    13

    Re: Grub 2 Won't Use My Theme

    Here is the out put you were requesting

    Code:
    /boot/grub/fonts:
    total 92
    -rw-r--r-- 1 root root 81350 2011-09-18 13:36 7x13.pf2
    -rw-r--r-- 1 root root  3206 2011-09-19 01:25 dejavu-sans-10.pf2
    -rw-r--r-- 1 root root  3471 2011-09-19 01:25 dejavu-sans-12.pf2
    -rw-r--r-- 1 root root  3792 2011-09-19 01:25 dejavu-sans-bold-14.pf2
    
    /boot/grub/themes/ubuntu:
    total 68
    lrwxrwxrwx 1 root root    25 2011-09-18 14:02 7x13.pf2 -> /boot/grub/fonts/7x13.pf2
    lrwxrwxrwx 1 root root    35 2011-09-18 14:01 dejavu-sans-10.pf2 -> /boot/grub/fonts/dejavu-sans-10.pf2
    lrwxrwxrwx 1 root root    35 2011-09-18 14:01 dejavu-sans-12.pf2 -> /boot/grub/fonts/dejavu-sans-12.pf2
    lrwxrwxrwx 1 root root    40 2011-09-18 22:17 dejavu-sans-bold-14.pf2 -> /boot/grub/fonts/dejavu-sans-bold-14.pf2
    -rw-r--r-- 1 root root 25467 2011-09-18 01:33 desktop.png
    -rw-r--r-- 1 root root  2487 2011-09-18 01:33 terminal_c.png
    -rw-r--r-- 1 root root  1212 2011-09-18 01:33 terminal_e.png
    -rw-r--r-- 1 root root  1537 2011-09-18 01:33 terminal_ne.png
    -rw-r--r-- 1 root root   485 2011-09-18 01:33 terminal_n.png
    -rw-r--r-- 1 root root  1293 2011-09-18 01:33 terminal_nw.png
    -rw-r--r-- 1 root root  2447 2011-09-18 01:33 terminal_se.png
    -rw-r--r-- 1 root root   687 2011-09-18 01:33 terminal_s.png
    -rw-r--r-- 1 root root  2465 2011-09-18 01:33 terminal_sw.png
    -rw-r--r-- 1 root root  1078 2011-09-18 01:33 terminal_w.png
    -rw-r--r-- 1 root root   713 2011-09-23 19:18 theme.txt.back
    I did not add 'Previous Linux Version' to the menu it just showed up. Also it is a fresh load of the Ubuntu 11.04 as far as i understand it comes with GRUB2 and not GRUB legacy. Therefor it should not be chainloading but i could be wrong this is my first attempt to customize GRUB.

    Thanks

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •