GRUB2 Editor v0.6.4

After 15 months, GRUB2 Editor received a new release today. Highlights of this release are: GRUB submenu support (introduced in GRUB 2.00), LibQApt 2.x support (for removing old entries), proper check for memtest entries and various [bug] fixes. All in all, updating to the latest version is highly recommended.

kcm-grub2

Submenu support in GRUB2 Editor

Changelog:

v.0.6.4 (12/10/2013)
——————–
*ADDED: Preliminary submenu support.
*ADDED: Preliminary LibQApt 2.x support.
*FIXED: Manage some ImageMagick crashes.
*FIXED: Improved security by detecting GRUB paths at compile-time.
*FIXED: Fixed the encoding issues in the helper.
*FIXED: Check for the memtest script in the helper.

Available Translations:
Catalan (ca), Catalan (Valencian) (ca@valencia), Czech (cs), Danish (da), German (de), Greek (el), Spanish (es), Estonian (et), Finnish (fi), French (fr), Irish Gaelic (ga), Galician (gl), Hungarian (hu), Italian (it), Lithuanian (lt), Norwegian Bokmål (nb), Dutch (nl), Punjabi/Panjabi (pa), Polish (pl), Portuguese (pt), Brazilian Portuguese (pt_BR), Romanian (ro), Russian (ru), Slovak (sk), Slovenian (sl), Swedish (sv), Turkish (tr), Ukrainian (uk), Chinese Traditional (zh_TW).

I would like to thank all KDE translators who were involved. Their work is very much appreciated!

Packages:
There are packages for most major distributions (i.e. Arch Linux, Debian, Fedora, openSUSE, Ubuntu). Please take a look at the Downloads page.

GRUB2 Editor v0.5.8

GRUB2 Editor received a new minor release today, mainly to update the openSUSE Build Service packages. The changelog is indeed tiny:

v.0.5.8 (18/06/2012)
——————–
*ADDED: Install on the boot sector of a partition instead of the MBR.
*FIXED: Fix installation detection in Gentoo.
*FIXED: Fix translation loading.

Actually it’s a release straight from git, no planning had been made. The changes are minimum since v0.5.5.

Translations included in the release: ca cs da de el es et fr ga hu lt nb nl pl pt pt_BR ru sv uk zh_TW

As always you can download it from this page.

GRUB2/BURG Integration in KDE

No, you’re not having a déjà vu, this is my second post about GRUB2/BURG support for KDM which shows up in PlanetKDE. I am sorry to abuse the planet for publicity, but I have seen quite a bit of confusion as to how KDE should be configured in order to interface with GRUB2/BURG and I would like to get some things straight.

What follows is a step-by-step guide describing how to configure KDE in order to automatically select a GRUB2/BURG entry other than the default when rebooting:

Shutdown Dialog

If you are a GRUB2 user skip the BURG instructions and vice versa.

Step 1. Inform GRUB2/BURG that you plan to use this feature:

GRUB2 instructions:

Open /etc/default/grub in the text editor of your preference (as root) and add the following:

GRUB_DEFAULT=saved

In case a GRUB_DEFAULT option already exists, just set it to “saved”.

BURG instructions:

Edit /etc/default/burg instead. The variable name is the same (GRUB_DEFAULT).

Step 2. Update your GRUB2/BURG menu file:

GRUB2 instructions:

The menu configuration file must contain set default=”${saved_entry}”. You are highly discouraged to manually edit this file, so execute the following command (as root):

grub-mkconfig -o /boot/grub/grub.cfg

Please note that some distributions (i.e. Fedora, Gentoo, Mandriva, openSUSE) use a slightly different naming scheme for GRUB2. So you’d have to adjust the above to the following:

grub2-mkconfig -o /boot/grub2/grub.cfg

BURG instructions:

BURG users should execute the following command (as root):

burg-mkconfig -o /boot/burg/burg.cfg

Step 3. Inform KDE that you are using GRUB2/BURG:

GRUB2 instructions:

Select “Grub2″ as your bootloader under “System Settings > Login Screen > Shutdown > Boot manager”.

BURG instructions:

For KDE >= 4.8.0:

Select “Burg” as your bootloader under “System Settings > Login Screen > Shutdown > Boot manager”.

For KDE < 4.8.0:

Select “Grub2″ as your bootloader under “System Settings > Login Screen > Shutdown > Boot manager”.

Step 4. Create symlinks:

GRUB2 instructions:

This step only applies to Fedora/Gentoo/Mandriva/openSUSE (or any other distribution which uses /boot/grub2 instead of /boot/grub)! If this is not the case for you, skip it.

For KDE >= 4.8.3:

You don’t have to do anything! You may safely skip this step.

For KDE < 4.8.3:

Execute the following commands (as root):

mkdir /boot/grub
ln -s /boot/grub2/grub.cfg /boot/grub/grub.cfg
ln -s /sbin/grub2-reboot /sbin/grub-reboot

In the above commands replace /sbin/ with wherever the grub2-reboot binary is installed. You can easily determine this with “which grub2-reboot”.

BURG instructions:

For KDE >= 4.8.0:

You don’t have to do anything! You may safely skip this step.

For KDE < 4.8.0:

Execute the following commands (as root):

mkdir /boot/grub
ln -s /boot/burg/burg.cfg /boot/grub/grub.cfg
ln -s /sbin/burg-reboot /sbin/grub-reboot

Same rule as above applies here: if the burg-reboot binary is not located under /sbin/, locate it with “which burg-reboot”.

Step 5. Reboot!

That’s it, you’re done! Now either reboot or restart KDM (something like “/etc/init.d/kdm restart”) and you’re all set ;-)

As a side note, GRUB2 Editor (supports BURG) automatically adjusts your configuration to the above (i.e. it automatically performs steps 1 and 2).

Feel free to link to this post in linux forums as a reference. All of the above refer to KDE >= 4.7.

GRUB2 Editor v0.5.5

GRUB2 Editor received another bugfix release today. This is mostly a boring release: no fancy new features so you may as well skip reading.

Changelog:

v.0.5.5 (09/01/2012)

——————–

*ADDED: Experimental BURG support (only commands shared with GRUB2).
*ADDED: Option to disable Plymouth (Advanced -> Linux Kernel Arguments).
*FIXED: Fedora/openSUSE: the GRUB installation is now properly detected.
*FIXED: Encoding issue (UTF-8 encoding is now supported).
*FIXED: A QPackageKit backend bug where previous results were returned.

Please note that BURG “experimental” support is barely tested. The only testing I performed was whether it crashes or not.

Available Translations:

Catalan, Czech, Danish, German, Greek, Spanish, Estonian, French, Irish [Gaelic], Hungarian, Lithuanian, Dutch, Panjabi/Punjabi, Polish, Portuguese, Brazilian Portuguese, Russian, Swedish, Ukrainian, Traditional Chinese.

I would like to thank all KDE translators who were involved. Their work is very much appreciated!

Packages:

There are packages for most major distributions. Please take a look at the Downloads page.

GRUB2 Bootloader Editor v0.5.0

GRUB2 Bootloader Editor version 0.5.0 was just released. Highlights of this release are:

Easily recover GRUB2 (from a Live CD):

Installing(=Recovering) GRUB

Are you unable to boot your Linux installation because you accidentally installed Windows after Linux? No problem! Boot from a Live CD of your Linux distribution, install the GRUB2 Editor using one of the many provided packages and restore GRUB in just a couple of seconds. It’s really easy! (More info)

Disable memtest entries:

Disable memtest entries

You may now further customise your GRUB2 menu by selecting whether or not memtest entries will be generated.

Translations:

In this release you will also find translations for the following languages, thanks to the corresponding KDE translation teams:

  • Danish
  • German
  • Estonian
  • Hungarian
  • Dutch
  • Portuguese
  • Portuguese (Brazil)
  • Swedish
  • Ukrainian

Other features:

Other new features include:

  • Warn the user when trying to uninstall the current kernel.
  • Manually find missing configuration files which are needed.
  • Recover initial settings (undoes all changes performed by this tool).

I estimate that the next release will be in about 2 months from now, due to restraining schedule.

As always you may get binary packages for most major distributions (Arch, Fedora, Mandriva, openSUSE, Ubuntu) from our KDE-Apps.org page. Enjoy :-D

Changelog Quote:

v.0.5.0 (09/05/2011)
——————–
*ADDED: Recover GRUB2 (from a Live CD).
*ADDED: Option to toggle generation of memtest entries.
*ADDED: Manually find missing configuration files which are needed.
*ADDED: Restore default settings.
*FIXED: Warn the user when trying to uninstall the current kernel.

*I18N: Added 9 new translations: Danish, German, Estonian, Hungarian, Dutch, Portuguese, Portuguese (Brazil), Swedish, Ukrainian.

Recovering GRUB (The Easy Way)

It’s well past midnight over here so I’ll try to keep it short. I will present you a new feature of the GRUB2 Editor: recovering GRUB (from a Live CD). A new feature that hopefully many user-friendly distributions will adore because it bypasses the intimidating console when trying to recover GRUB, for example when installing Windows after your Linux distribution; an action that will erase GRUB from the MBR(=Master Boot Record) and render your Linux setup unbootable. I’ll let some screenshots do the talking:

Live CD Welcome Screen

Recover Screen

Installing(=Recovering) GRUB

Job Done!

So, firstly you are presented with two options when launching the GRUB Editor from a Live CD (screenshot #1); choosing the recovery option provides you with a list of detected partitions along with some information to help you determine where your previous installation resides (screenshot #2), picking a partition and Applying will initiate the installation process (screenshot #3) which will hopefully lead you to screenshot #4.

This post was published in hoping for feedback before making the next release (which will happen anytime soon). So any suggestions/insults are more than welcome :D

PS: Screenshots and testing done on a Kubuntu 10.10 Maverick Meerkat Live CD.

GRUB2 Bootloader Editor v0.4.5

After about a month, a new version of the GRUB2 Editor is available, offering 2 new cool features:

Remove Old Entries:

Remove Old Entries

If your boot list has grown too big, you now are able to remove old, unneeded entries from the very same UI that you use to manage your GRUB settings. No need to fire up your package manager and search for some weirdly named packages: just select the entries you don’t want and remove them! This feature is still experimental but is known to work smoothly on Kubuntu; other distributions have not been tested yet.

Provide list of valid GRUB resolutions:

Provide list of valid GRUB resolutions

The other cool feature introduced in 0.4.5 is detection of valid GRUB resolutions. To get a list of GRUB supported resolutions for your setup would require to reboot, enter the GRUB command line and type ‘vbeinfo’. Quite nasty compared to launching the GRUB Editor and selecting a resolution, huh? Damn, you will miss all the dirty work. ;-)

Other features include the simplification of the default-entry-picking and resolutions-picking UI (as can be seen in the screenshots above), variable substitution using ‘echo’ (Debian/Kubuntu users will no longer see `lsb_release -i -s 2> /dev/null || echo Debian` but the result of this command), a couple of minor fixes in the splash image creation dialog, and last but not least unified save and update actions (you will asked for your password only once when saving – makes more sense).

Don’t forget that packages exist for the following distributions:

  • Arch Linux
  • Fedora 14 (Laughlin)
  • Mandriva 2010.1 (Farman)
  • openSUSE 11.4
  • openSUSE Factory
  • Ubuntu 10.10 (Maverick Meerkat)

For Ubuntu 11.04 (Natty Narwhal) search for the kde-config-grub2 package in the official universe repository. It may be outdated though, so feel free to use the maverick package.

Just visit our KDE-Apps.org page for more info on how to get the new version. Enjoy :-)

Changelog Quote:

v.0.4.5 (29/04/2011)
——————–
*ADDED: Remove old entries (using QApt or QPackageKit).
*FIXED: Simplify the default-entry-picking UI.
*ADDED: Provide list of valid GRUB resolutions.
*FIXED: Simplify [GRUB & Linux] resolution picking UI.
*ADDED: Perform variable substitution and unquoting using ‘echo’.
*FIXED: Suggest GRUB’s resolution when creating a splash image.
*FIXED: Query ImageMagick for supported mimetypes.
*FIXED: Merge save and update actions.
*FIXED: Polishing all around the codebase.

QApt sexiness…

…or shrinking your GRUB list the easy way!

/Going into [K]Ubuntu mode…

Have you ever seen your GRUB list grow into such a monster?

Wouldn’t it be great if you could bring it down to this?

The Easter Bunny has the solution:

Simply select your old/unwanted entries and BANG, gone! Can’t get any simpler than this!

Boring details follow (that is, no more eye candy screenshots).

I am talking of course about kcm-grub2, the GRUB2 Bootloader Editor. On Git (soon to be released, perhaps in a week) you can find package management integration in this GRUB KConfigModule which enables you to easily get rid of old GRUB entries the easy way (TM), without having to search in package managers about the packages you would normally have to remove in order to make your GRUB list smaller.

And all of this thanks to LibQApt and Jonathan. Kudos for an excellent package management API which allows anyone to do such sexy things for KDE.

/Going out of [K]Ubuntu mode…

PS: Obviously this feature can be used only by [K]Ubuntu users (once released of course). This feature was tested in Kubuntu Maverick Meerkat. Other xUbuntu distributions are expected to work, including Debian. Theoretically, any distribution where libqapt is available should work. Hope that clarifies things a bit.

GRUB2 Bootloader Editor v0.3.6

Version 0.3.6 is a small fix release which tuned some things here and there. I had to do it because it fixes a security issue which was accidentally introduced in the previous release (0.3.5). Upgrading is highly encouraged!

Beggining with this release, there are packages for:

  • Arch Linux
  • Debian 6.0 (Squeeze)
  • Fedora 13 (Goddard)
  • Fedora 14 (Laughlin)
  • Mandriva 2010.1 (Farman)
  • openSUSE 11.3
  • openSUSE 11.4
  • openSUSE Factory
  • Ubuntu 10.04 (Lucid Lynx)
  • Ubuntu 10.10 (Maverick Meerkat)

Check the KDE-Apps.org page for more info.

Debian, Ubuntu & Arch Packages for GRUB2 Editor

Thanks to openSUSE Build Service GRUB2 Bootloader Editor got packages for:

and thanks to community contribution it also got packaged for Arch Linux.

Edit: GRUB2 Editor is now packaged for many more distributions. Please check the Downloads page.