Page 1 of 26 12311 ... LastLast
Results 1 to 10 of 258

Thread: SCRIPT: GrubED - GUI Grub editing

  1. #1
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    SCRIPT: GrubED - GUI Grub editing. New version 17th September.

    ================================================== ======================
    NOTE: THERE IS A BUG IN GRUBED WHICH MAKES IT DANGEROUS ON GUTSY. I AM WORKING TO FIX IT, BUT PLEASE DO NOT USE IT ON GUTSY FOR THE TIME BEING.


    NOTICE: Mirrors for Spanish GrubEd
    Please note that the Spanish version of GrubEd has not yet been updated to the latest version, and as such will not contain bug fixes released recently. If anybody is able to translate the latest version, then I'd appreciate the help
    GrubEd_es.

    Once again, thanks to pacmanman for the translation Here's his Blog.
    ================================================== =========================

    GrubEd is a little (UPDATE: NOW 'QUITE BIG') script I wrote which gives users a nice GUI to alter their grub settings. It is a vastly modified version of my earlier, non-GUI script.

    Using GrubEd, you'll be able to alter your grub settings at the touch of (a few) buttons! It currently supports:

    Default menu item editing: Set Grub to boot into whichever OS you want through a handy menu.

    Timeout editing: Set the timeout to whatever you feel like. Displays a confirmation box if you set it below 3 seconds.

    Disable the timeout: Always getting caught out? Just disable the timeout!

    Hide Grub: Hide or unhide the Grub menu depending on your current settings.

    Change custom colour settings: Set grub to a colour scheme of your choice!

    Add a Grub splash screen: Make Grub display an image as it's background!

    Enable / Disable memtest86: Don't want it? Scrap it

    Change the number of kernels Grub shows: Confused by a big list of the same OS? Simply change the number of kernels to keep your list tidy!

    Direct Edit: Shows your entire Grub settings file for easy editing.

    Reboot: Reboot your machine to test your new settings.

    Backup: Back up your current Grub settings. I reccommend you use this first!

    Restore: Easily restore your backed up Grub settings file.

    There's also a handy help file to tell you how to use the script properly.

    Here's the text of the README to tell you how to install / uninstall / use:
    Code:
    README
    ============
    Thanks for downloading the GrubEd script.
    If you are simply updating the script from an older version, then remember to UNINSTALL your current version
    before you INSTALL the new one. If the 'uninstall' script fails to work, try using the 'uninstall_old_version' script instead.
     
    INSTALLATION:
     
    From the terminal, cd to the directory this help file is in, and type:
    sudo ./install
    Installation from then on is automatic. 
     
    The install script will check for certain programs, which GrubEd relies upon
    to function normally. If any of these programs are not available, then the user will be informed.
     
    ======================================================================
     
    USAGE:
     
    To use this script, you need root permissions. If you have sufficient user privileges, you can type:
     
    gksudo grubed
     
    You will be asked for your password. This is the same password as you 
    use to login. If the login is successful, you will be shown the default GrubEd menu.
     
    Alternatively, you can paste the example launcher, named 'Launch GrubEd' on to your desktop or Gnome panel.
    Double clicking it should bring up a gksudo box for you to input your password.
     
    ======================================================================
     
    UNINSTALLATION:
     
    You can uninstall the script completely by opening a terminal and typing:
     
    sudo /usr/share/doc/grubed/uninstall
     
    Please note that this will not remove any backups of your Grub menu, 
    nor any images from /boot/grub/images.
     
    ======================================================================
    Notes:

    The script makes use of zenity, a program which displays dialog boxes. Make sure you have zenity enabled on your system.

    Screenshots and download attached at the bottom of this post.

    I have tested this script and it works fine on my system. However, I'm only one person and I can't test this on a massive variety of setups. Therefore, I will not be held responsible if anything goes wrong while using this script. Make use of the backup ability provided.

    Here's todays changelog: 4th July 2007:

    Code:
    Changelog for GrubEd
    Latest changes at top, all changelogs dated.
     
    Version 1.1 - released 17 Sep '07
    Made GrubEd function more gracefully:
        No more 'Do you want to perform a new task?'
    Made the update-grub process more integral to the various tasks for which it was required:
        Users are now asked directly to update grub, not relied upon to remember to do it later.
    GrubEd now asks users to pick a new default OS to boot from after the boot menu has been altered.
    Removed some garbage hash (#) characters from the changelog. Can't really remember why I put them there in the first place!
    Altered the licence to make it less confusing.
     
    #################################
    Version 1.0 - released 4 July '07
    Fixed a bug which meant splash images with underscores in their title were accepted but not used
    This also marks the 1.0 release of GrubEd
     
    #################################
    6 May '07
    Updated the installer script to be more helpful.
        It now scans for all the software it depends upon using the 'which' 
        command. If any piece of software is missing, it informs the user.
        This was requested numerous times. Unfortunately, it won't 
        automatically download and install these packages - maybe in the 
        future.
     
    Fixed a bug in the enable/disable splash feature, which would cause users 
      to see a non-fatal error message if they enabled or disabled the splash 
      screen via the command line.
     
    Renamed all of the files to lower-case. Now instead of launching via 
      'gksudo GrubEd', you should just use 'gksudo grubed'.
     
    #################################
    23 October '06
     Changed temporary files to be stored in /tmp/
        Thanks to 'mssever' @ ubuntuforums.org for pointing this out!
     
     Got rid of superfluous comments.
     
    #################################
    20 October '06
    Fixed a very serious bug with the direct-edit option. Closing the
    direct-edit box using the window-close button would destroy menu.lst,
    thus making booting impossible. Sorry for the wait!
     
    #################################
    27 August '06
    Fixed a bug with changing the default OS. This bug seemingly didn't 
    affect everyone, but the fix is a bit cleaner anyway.
     
    #################################
    11 August '06
    Added ability to fiddle with splash screen!
        --NOTE--A few things. Images must be 640x480, 14 colours ONLY, and in .xpm.gz format.
            GrubEd, however, can only check the file format. You need to take care of the
            size and colours yourself.
            Custom colours and splash images can be fiddly to get working together properly.
            I personally prefer to use just one or the other, but it's up to you. Go nuts.
            Like the custom colours, this spans several functions, so I've commented them to
            Make them stand out if you want to mess with them.
     
    #################################
    10 August '06
    Added a quick check for /boot/grub/
        --NOTE--On ubuntuforums.org, lots of people seem to be playing around with multiple installs of grub
            While not wanting to cripple functionality, I don't want to be held responsible for them messing
            their system up. Now, the script will check for /boot/grub/, and if it's not present, exits.
            I have no idea what the repurcussions of multiple /boot/grub/ directories is, and I don't particularly
            want to find out.
    Removed all reference to the re-order menu feature in the code, but kept a version back which includes it.
        --NOTE--I see no reason why anyone would want to do this. The problem is not only in implementing it, but
                the changes just simply will not last if you use any of the other options.
    Added an 'installer'. It copies GrubEd to /usr/bin, and makes a documentation directory at /usr/share/doc/grubed.
    Included an example Launcher. Paste it onto your desktop/panel/whatever to use it.
    Made an 'uninstaller'. It will live in /usr/share/doc/grubed/.
        --NOTE--Usage is 'sudo /usr/share/doc/grubed/uninstall'
     
    #################################
    06 August '06
    More code optimisation - I left in a lot of trash from the original source (1st version),
    so this update is essentially just a cleanup. Total download size was halved :/
    Removed excess references to zenity, which was bloating script size.
        --NOTE--Now there are two functions to handle success / error notifications.
             They are called 'success' and 'noChange' respectively. Use these to call
             up a success / cancel notification when necessary.
    Scrapped the 'newTask' function in favour of a scripted while loop.
    Renamed the help file to GrEdHelp.txt
    Slight alterations to references to help file due to possible conflict.
     
    #################################
    05 August '06
    Changelog / Fixlog added as of Sat 5 Aug '06:
    Fixed an irritating bug were Direct Edit mode would always patch, even if no changes made.
    Tidied up code a little.
      Added ability to run update-grub, which replaces your existing menu.lst.
        --NOTE--This must be run for 'Automagic' settings to be finalised. Any function which replaces such a setting 
                MUST notify the user. It will not run automatically because it replaces a lot of settings,
                   therefore it should be left to user discretion. List these in a changelog as '--AUTOMAGIC--'.
      Added ability to enable or disable the memtest86 option. --AUTOMAGIC--
      Added ability to change the number of kernels displayed by Grub. --AUTOMAGIC--
      Added full colour-scheme options.
        --NOTE--This is a pretty nifty little option but it spans several functions due to it's relatively
             complicated nature. Grub uses a 'NON-SELECTED / SELECTED' setup, with both forms having a 'foreground' and
             'background' colour, in that order. In other words, two seperate colour schemes need to be chosen.
             The following three lines should help you understand more easily, the third being the format grub's menu.lst uses.
                NOT-SELECTED-ITEMS            SELECTED-ITEMS
           foreground / background        foreground / background
              blue/black                light-green/magenta
    Download attached below, visitors must log in before the forum will allow you to download. Registration is free and spamless
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	5.png 
Views:	4130 
Size:	19.7 KB 
ID:	26273   Click image for larger version. 

Name:	3.png 
Views:	2457 
Size:	13.6 KB 
ID:	26274   Click image for larger version. 

Name:	1.png 
Views:	1892 
Size:	7.4 KB 
ID:	26275  
    Attached Files Attached Files
    Last edited by Tomosaur; November 24th, 2007 at 04:20 PM. Reason: IMPORTANT - UPDATE

  2. #2
    Join Date
    Mar 2006
    Beans
    336

    Re: SCRIPT: GrubED - GUI Grub editing

    It would be great if the script parsed the items in menu.lst (with RegEx) and provided the list in a checkedListView or something. If you're going to have to open menu.lst to find out which item to make default anyways then you're probably going to just edit it manually then.

    Good job though...

  3. #3
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: SCRIPT: GrubED - GUI Grub editing

    Luckily for you, I just added that feature last night

    EDIT: Uploaded the new version - you can now select your OS from a list, among other new features.
    Last edited by Tomosaur; August 4th, 2006 at 04:32 PM.

  4. #4
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SCRIPT: GrubED - GUI Grub editing

    Nice! Stuff like this should go straight into a release. Nearly anything that helps a 'normal' user away from the command line is good.

    GRUB editing is fiddly and with so many newbies using dual booting systems a GUI grub is a boon
    The Free Software war is won, all else is now maneuvering
    http://brainstorm.ubuntu.com/idea/27361/image/1/

  5. #5
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: SCRIPT: GrubED - GUI Grub editing

    Perhaps if it was a compiled program something like this would be included, but I seriously doubt the Ubuntu team would ever include a 3rd party script.

  6. #6
    Join Date
    Jun 2005
    Location
    UK
    Beans
    642
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: SCRIPT: GrubED - GUI Grub editing

    Thanks for a great script Tomosaur!

    I'm familiar with placing application shortcuts on the Desktop via right click on the Desktop and "Create launcher..." and browsing to the application in the normal way etc.

    But how do you actually carry out your instructions to configure the launcher to launch the 'sudo sh GrubEd.sh' script?

    "GrubEd.sh" resides in my Home/nick/ directory.

    Many thanks
    Old guitarists never die....

    They just sustain.........and sustain........and sustain

  7. #7
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: SCRIPT: GrubED - GUI Grub editing

    Right click, 'Create Launcher'. Name it whatever you like. I just use 'GrubEd'. In the 'command' bit, just type 'sudo sh /home/nick/GrubEd.sh', set the drop down box to 'Application', and click the box which says 'Run in terminal'. Set your icon to whatever, and click ok. Then I just dragged my newly created launcher onto my top Gnome Panel. Left click, and when the terminal pops up, just enter your password normally. Once you exit the script, the terminal will automatically close.

  8. #8
    Join Date
    Jun 2005
    Location
    UK
    Beans
    642
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: SCRIPT: GrubED - GUI Grub editing

    Obvious really!! Worked perfectly.

    Thanks & take care - Nick
    Old guitarists never die....

    They just sustain.........and sustain........and sustain

  9. #9
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: SCRIPT: GrubED - GUI Grub editing

    New, more poweful, updated version ready for download. First post contains list of changes and current features.

  10. #10
    Join Date
    Mar 2006
    Beans
    336

    Re: SCRIPT: GrubED - GUI Grub editing

    Quote Originally Posted by Thund3rstruck View Post
    It would be great if the script parsed the items in menu.lst (with RegEx) and provided the list in a checkedListView or something.
    Update: Thanks for the edit! Much more effective now

Page 1 of 26 12311 ... 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
  •