Tutorial: Ubuntu 12.04 / 11.04 / 10.10 / 10.04 – Grub 2 with Themes

  • Posted May 5, 2010. Last modified May 11, 2012 by

In this post, I will show you how to install grub 2 with themes so that you can replace the standard text-based grub menu with something that looks a bit nicer. This tutorial will use code which is under development, so it may be best not to use on an important machine. We will actually replace grub with something called burg, which is a developmental branch of grub.


Its quite easy to do now in Ubuntu 12.04 / 11.04, really just one step:

sudo add-apt-repository ppa:n-muench/burg
sudo apt-get update
sudo apt-get install burg burg-themes

However if you are using 10.04 or 10.10, follow the instructions below:

First, enable the repository for burg by editing your /etc/apt/sources.list file to include the following for Ubuntu 10.10 (Maverick):

deb http://ppa.launchpad.net/bean123ch/burg/ubuntu maverick main
deb-src http://ppa.launchpad.net/bean123ch/burg/ubuntu maverick main

or use the following for Ubuntu 10.04 (Lucid)

deb http://ppa.launchpad.net/bean123ch/burg/ubuntu lucid main
deb-src http://ppa.launchpad.net/bean123ch/burg/ubuntu lucid main

Next, (optional) to remove any warnings about gpg signatures, enter the following commands:

gpg --keyserver subkeys.pgp.net --recv 55708F1EE06803C5
gpg --export --armor 55708F1EE06803C5 | sudo apt-key add -

Alternatively, if you find the pgp serer gives you an error, you can try this one:

gpg --keyserver wwwkeys.stinkfoot.us.pgp.net --recv-keys 55708F1EE06803C5

Then we need to update apt and install burg:

sudo apt-get update
sudo apt-get install burg-pc burg burg-themes

This will prompt you to select several options along the way, so far I’ve just selected the default options since they seem to be detected from your existing grub install. The important one is to select the correct disk (Note: I’ve only tested in a non-raid system, so I don’t know how it will behave with this setup).

On the next restart, we should see a graphical grub menu, something like this:

Ubuntu 10.04 Graphical Grub

Ubuntu 10.04 with Graphical Grub Template

By default you will probably get the ubuntu template, and you can change the template by pressing ‘t’ during the grub screen. It should also remember which one was last selected.

Note: I have experienced some problems with a fresh install of ubuntu 10.04 and SLI video cards. Burg’s graphics mode seems to confuse ubuntu and it gets stuck on boot. If this happens, you can boot in recovery mode and install the restricted nvidia driver. Then on next boot everything should be fine.

Note 2: Occasionally, when Ubuntu updates, grub may install over your burg installation. In order to get burg back, you need to issue the following command:

sudo burg-install /dev/sda

where /dev/sda is the partition you want to install burg onto.

Note 3: You might find you have some extra entries that you want to remove, for example the recovery entries or whatever else. You can either edit the burg.cfg file directly located at /boot/burg/burg.cfg and or you can edit the files in /etc/default/burg and /etc/burg.d/. If you use the second choice, you will need to run:

sudo update-burg

in order to regenerate the new burg.cfg file.

Another cool tip I have discovered instead of having to remove your old kernel entries to prevent a ton from showing up in burg, is to toggle them off by typing ‘f’. You can do this is burg itself or in the emulator (burg-emu).

Sources:
https://help.ubuntu.com/community/Burg
http://ubuntuforums.org/showthread.php?p=9231199

http://askubuntu.com/questions/105815/how-to-install-burg-theme-in-ubuntu-12-04-alpha-2

7 comments on “Tutorial: Ubuntu 12.04 / 11.04 / 10.10 / 10.04 – Grub 2 with Themes”

  1.  

    I got the message above, when tried “sudo apt-get update” command

    W: Falhou ao buscar http://ppa.launchpad.net/gdm2setup/gdm2setup/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found

    W: Falhou ao buscar http://ppa.launchpad.net/gdm2setup/gdm2setup/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found

    E: Alguns arquivos de índice falharam para baixar, eles foram ignorados ou os antigos foram usados no lugar.

    Would you help me about?

    •  

      Same error happened to me. It seems that repository has no Ubuntu Maverick files, so you can’t use it. Maybe it’ll come it the future, or maybe you can try Lucid Lynx. I didn’t, but maybe it works

  2. Pingback: Jason’s Computer Science Blog - Howto: Custom icons for Burg (Graphical Grub2)

  3.  

    nice one mate!

    question; its a grub replacement? is that required for the repositioning of the boot items (obviously the extra options; res stuff, are)? I’ve been wanting to do that (reposition the items) for ages, but couldn’t find out how… :-S

    •  

      Thanks! Yes, its a grub replacement. (Grub gets replaced in the mbr of the disk you are installing to, although it is still left on your system, so you can actually put it back on after by running “sudo grub-install /dev/sda (or whatever device your hdd is)”.

      To reposition the boot items (in burg or in grub) edit the burg.cfg or grub.cfg file. You can identify the entry you want to move because they are usually separated by comments. If you are you using nano to edit, you can use ctrl-K and ctrl-u to cut and paste the entries where you want them. If you are using gedit or something graphical its even easier.

      Of course it goes without saying, be careful trying this on a system that is important until you figure it all out. If you do end up fouling things up, you can probably fix it with a ubuntu live disk.

Leave a Reply

Your email address will not be published. Required fields are marked *