Posts from the ‘Ubuntu’ Category

[Out-dated] GRUB-GFX {Graphical Grub Menu}

GRUB-GFX will transform your ugly grub menu into a beautiful one.

First remove your older grub:

apt-get remove grub

Download the 32bit version from here. I use 64bit, but it’s not available anywhere it seems so I might upload it somewhere if someone requests!

Goto the folder where you downloaded it and install using

dpkg -i filename.deb

Download the suse grub from here. Put it in a new folder else it will get messy!

cpio -i < message.suse

This will extract it! See toldya’ it will get messy!

Now edit the pictures as you want and then put it back up:

ls . |cpio -o > /boot/grub/message.custom

If you don’t want to go through this hassle there are countless themes already there, search in Gnome-look.org or KDE-look.org. For debian users you can try out this one.

Just copy it into /boot/grub

cp mesage.debianorange /boot/grub/

Then edit your menu.lst

Code:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst

and make it use gfxboot

Code:
gfxmenu /boot/grub/message.suse # the suse can be replaced

Type in:

grub
grub> find /boot/grub/stage1
(hdx,y) # this will be the output
grub> root (hdx,y)
grub> setup (hdx)

Replace hdx,y with whatever output it shows, for me it was (hd0,1)

Now :

grub-install /dev/hda [or sda whichever is your MBR]

update-grub

Reboot and enjoy!

NOTE: Please follow this guide if you run into any problem.

GRUB 2 [howto]

Click to enlarge

Click to enlarge

GRUB 2

GRUB 2 is derived from PUPA which was a research project to investigate the next generation of GRUB. GRUB 2 has been rewritten from scratch to clean up everything for modularity and portability. A mailing list and a wiki have been setup for discussing the development of GRUB 2.

GRUB 2 targets at the following goals:

  • Scripting support, such as conditionals, loops, variables and functions.
  • Graphical interface.
  • Dynamic loading of modules in order to extend itself at the run time rather than at the build time.
  • Portability for various architectures.
  • Internationalization. This includes support for non-ASCII character code, message catalogs like gettext, fonts, graphics console, and so on.
  • Real memory management, to make GNU GRUB more extensible.
  • Modular, hierarchical, object-oriented framework for file systems, files, devices, drives, terminals, commands, partition tables and OS loaders.
  • Cross-platform installation which allows for installing GRUB from a different architecture.
  • Rescue mode saves unbootable cases. Stage 1.5 was eliminated.
  • Fix design mistakes in GRUB Legacy, which could not be solved for backward-compatibility, such as the way of numbering partitions.

Multiboot Specification

Multiboot Specification is a protocol between a boot loader and an OS kernel. Because this specification is generic, you can use the protocol in your own boot loader and/or in your own OS freely. Follow this link, for more details.

Howto Install Grub2 in Debian and Ubuntu?

Here goes.

First remove your grub.

apt-get remove grub

apt-get install grub2 grub2-splashimages

The new GRUB2 splash images are installed at:

# ls /usr/share/images/grub/

Once you’ve rebooted, your default grub will load up and it has a new option called ‘Chainload into Grub 2′.When you are satisfied that GRUB2 works then you can select the second option, “upgrade-from-grub-legacy

You change the grub images from:

/usr/share/images/grub/

# nano /etc/grub.d/05_debian_theme

and change the following line from:

for i in {/boot/grub,/usr/share/images/desktop-base}/moreblue-orbit-grub.{png,tga}
to
for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/Plasma-lamp.{png,tga} and save the file.

Reboot and enjoy!

Howto add “Windows Entry” in GRUB2 ?

Edit the /boot/grub/grub.cfg file!

# nano /boot/grub/grub.cfg

Add this at the end of your /boot/grub/grub.cfg

# (2) Windows XP
menuentry "Windows XP" {
set root=(hd0,1)
chainloader +1
}

With Windows Vista, via EasyBCD and NeoGRUB

Since EasyBCD's NeoGRUB currently can't understand the GRUB v2 menu format, chain-load to it by replacing the contents of your "C:\NST\menu.lst" file with lines similar to the following:

default 0
timeout 1
title       Chainload into GRUB v2
root        (hd0,1)
kernel      /boot/grub/core.img

Grub2 has a new concept of root partition detection.

Unlike previous version of GRUB, if your XP is in hd1 or sda1

then put hda1 and sda1 and not hd0 /sd0

XBMC in Ubuntu [howto]

Click to enlarge

Q: What is XBMC?

A: XBMC Media Center (formerly named XBox Media Center) is a cross-platform free and open source software media-player and entertainment hub with a 10-foot user interface design for the living-room TV. It was originally created for the first-generation Xbox game console, but is now available for the Linux, Mac OS X (Leopard, Tiger, Apple TV), and Microsoft Windows operating systems. There is also a bootable Live CD and Live USB version referred to as “XBMC Live“.

Read more about it: http://en.wikipedia.org/wiki/XBMC

This guide is take from the “official guide.”

Adding the XBMC Repo

Adding the XBMC Repo tells your system where to look for xbmc for installation and future updates

  • From the Desktop, click System -> Administration -> Software Sources.
  • Click the “Third Party Sofware” tab.
  • Click “Add”. For the Apt line type the following, substituting “jaunty” for your version:
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ jaunty main
  • Click “Close”. If you see a GPG Error upon closing the window, not to worry. That will be handled in the next step.

Adding PPA Keys

These packages are signed with a unique key for added security. Synaptic needs to know this key in order to verify the packages’ authenticity.

  • Click here to view the PGP key
  • Select the text from the beginning of the keyblock to the end (including those lines)
  • Copy that text to the clipboard (Edit -> Copy)
  • Open your text editor from Applications -> Text Editor.
  • Paste the key contents (Edit -> Paste)
  • Save the document in your home folder as xbmc-ppa.key
  • Reopen Software Sources, this time choosing the “Authentication” tab.
  • Click “Import Key File” and choose the newly created xbmc-ppa.key and press OK.

Installing XBMC

Now that the repo and key have been added, install XBMC like any other program.

  • Click System -> Administration -> Synaptic Package Manager
  • Click “Reload”
  • Search for “xbmc”
  • Mark xbmc and xbmc-standalone for installation and mark additional changes when prompted.
  • Click “Apply” and agree to the changes after reading them.

XBMC is now installed and ready for use.

Autostart XBMC (optional)

By following these instructions, your system will boot directly into XBMC rather than your desktop from now on. It is advised that you delay this step until XBMC is setup as you’d like it.

  • From the desktop click System -> Administration -> Login Window
  • From the “Security” tab choose “Enable Automatic Login” and select your username.
  • Click “OK” to exit.
  • Logout of your system.
  • From the Login screen choose “Select Session”
  • Choose “XBMC” and click “Change Session”

You’re finished. Next time you login you should be greeted with XBMC.

NOTE: XBMC is inbuilt in Sabayon Linux! 😉