My space in the world

Code is poetry

Posted by Sayak
November - 11 - 2009

Well, I’m quite certain that there are a million tutorials on this subject. But I felt that the way I set up my Grub was really easy  and worth sharing. What I am trying to do here is to install a splashimage with the Grub2 bootloader on a (K)ubuntu (or equivalent) system. So here goes…

  1. To begin with, you’d need to install the “grub2-splashimages” package. Please make sure that you’re running Grub2 and not an older version before you continue.
    $ sudo apt-get install grub2-splashimages
  2. Once you do that, you should have a bunch of images under the folder: /usr/share/images/grub/
  3. By default, Grub should offer you a 640×480 resolution. In most cases, the graphics card supports a higher resolution. You can check the highest available resolution by entering into the Grub command mode (press ‘c’ at the boot menu) and typing vbeinfo. Let us assume that your graphics card can support upto 1024×768 resolution at a 32-bit color depth.
  4. Once you know the resolution, you can scale your own image to that size and save it as a TarGA (tga) image (use an image editor like Gimp) within the /usr/share/images/grub/ folder.
  5. Now we edit the theme script. To do that, enter the following in your terminal:
    $ sudo kate /etc/grub.d/05_debian_theme

    Where you can use your favourite text editor where I used kate. In that file, find the following line:

    for i in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub.{png,tga} ; do

    … and change it to:

    for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/splashimage.{png,tga} ; do

    Note: Replace the splashimage part with the filename. For example, you are using “tulips.png” as your image, replace “splashimage” with “tulips”.

  6. Now to set the resolution, edit the /etc/default/grub file and change GRUB_GFXMODE to 1024×768 (or whatever your supported resolution is).
  7. Once you are done with everything, run:
    $ sudo update-grub

    Once you execute the above, look for the following line in the output:

    Found Debian background: splashimage.tga

    And that should be all!

If you wish to change the text color, you may change the /boot/grub/grub.cfg file to edit the menu_color_normal and menu_color_highlight values (those are written as foreground/background format).

GRUB2 Splash-image preview
Posted by Sayak
November - 6 - 2009

I finally got rid of the last theme I had and installed something that, as per my conventions, looks quite professional. This is a modified version of the CreativePress wordpress theme, which offers a range of nice eyecandy effects using jQuery. Setting up the theme was quite a tedious job — removing my feeds from the planets (sounds ironic), doing the whole theme changes, and software upgrade and all that without access to db (why? well, our college university filter blocks it under category “hacking sites”….).

Anyway, of all the features, I can brag about:

  1. The preview slider: I can set the slider to take up posts from a fixed category, “featured posts” in my case. Once I attach a “custom field” called ‘preview’, the slider picks up the image and scales it accordingly to use it as a thumbnail.
  2. A nice homepage: It gives me a nice homepage. Hence now, I have completely removed the “blog” subdomain from my server and I am left with only one wordpress install in contrast to the two independent installs on different domains.
  3. WordPress 2.8.5: Just upgraded from 2.7 to 2.8.5, and I hope that things get a bit more stable now :p Apparently 2.8.5 has some much needed security fixes, which IMHO was worth the pain incurred from upgrading.

Honestly, I did have a bunch of points in my mind, but I can’t remember what they were 😐

Anyway, I’m just happy that this went well. If you decide to give the theme a shot, I’m sure you’ll enjoy it as much as I am. 🙂

    Posted by Sayak
    November - 6 - 2009

    They call this “strawberry ice-cream” 😐
    Whatever, doesn’t even remotely taste like ice-cream. I was rather getting a taste of raw strawberries and cream discreetly. If I’d experiment, I would add some honey in it! 😉 Or maybe blend the cream with strawberry sauce and add sugar dipped strawberries, mmmh!
    Nevertheless, really nice color combination:

    Strawberry and whip cream

    Camera: Nikon D60 DSLR
    Mode: Normal

    About Me

    A son, brother and friend. Enjoys scripting and making small bits of apps here and there. Wants to conquer the world (well, who doesnt). A geek who has an obsession for ponies. Loves acoustic and wants to play guitar sitting on the Hollywood hill one day!

    A Word About KDE

    KDE is a versatile software compilation for all platforms. It is an intuitive and powerful desktop environment that focuses on finding innovative solutions to old and new problems, and creating a vibrant, open atmosphere for experimentation.