Page 5 of 35 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 346

Thread: GRUB2 theming for lucid?

  1. #41
    Join Date
    May 2007
    Beans
    465

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by drs305 View Post
    There appear to be two divergent ways of accomplishing the G2 theming - BURG and via Felix's ppa with Colin Bennet's http://grub.gibibit.com/ site.

    bean123, can you briefly describe the divergent approaches? And will the BURG method be able to use the 'official' G2 from the repositories at some point? I am leaping to an unfounded assumption that the Felix experimental G2 features will eventually be incorporated into the standard G2 package (which may be a bad assumption).

    Also, I plan on adding this thread to the Theming section of my G2 Basics post, as we are finally getting enough documentation (at least in here) on how to go about using themes in Grub 2.

    It would be great if someone using Felix's experimental G2 ppa and Bennett's themes could detail the procedures for using those resources in a similar fashion to the BURG theming.

    Also, since this thread is about Lucid, is anyone having success doing this in Karmic? If so, with which version of Grub 2?

    Much thanks to all who have posted how they are accomplishing their theming.
    I frequently merge with official grub repository, new feature in grub would be available in BURG as well. But BURG has make some dramatic change in code level, so it won't be able to incorporate back to G2 repository.

    As for Colin's menu system, there is some unresolved issue:

    1, Edit menu item not supported
    2, Sub menu not supported
    3, User defined hotkey not supported
    4, Popup menu and dialog not supported
    5, Terminal can only support fixed size font, BURG supports proportional font as well.

  2. #42
    Join Date
    Mar 2009
    Location
    United Kingdom
    Beans
    146
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by haytjes View Post
    My guide to a more beautiful grub (with a graphic mode check, so it shouldn't break):

    1, install Burg: https://help.ubuntu.com/community/Bu...nary%20package
    2, download theme files from the files section of

    http://groups.google.com/group/burg-devel

    and extract to /boot/grub:

    Code:
    cd /boot/grub
    sudo tar xzf ~/theme_default.tar.gz
    sudo tar xzf ~/theme_sora.tar.gz
    sudo tar xzf ~/theme_chiva.tar.gz
    You definitely want to extract the first one, because it contains the fonts that Brug needs.

    2, Restart your computer and press CTRL-C when grub shows. Use the command 'vbeinfo' to see the supported graphic modes.

    3, Boot again and edit /boot/default/grub, add these two lines at the end:
    Code:
    GRUB_THEME=sora
    GRUB_GFXMODE=1024x768
    The value of GRUB_THEME can be one of these:
    proto, ubuntu, winter, sora, sora/clean, sora/extended, chiva

    The value of GRUB_GFXMODE must be a supported graphic mode of bullet 2.

    4, Run update-grub.

    5, Add bigger fonts
    Code:
    cd /boot/grub/fonts
    sudo ln Helvetica-Bold-24.pf2 Helvetica-Bold-27.pf2
    sudo ln Helvetica-Bold-24.pf2 Helvetica-Bold-29.pf2
    6, Restart and hope for the best

    ps. If anything brakes in any stage: https://wiki.ubuntu.com/Grub2#Recove...20via%20LiveCD
    I have this tutorial working in karmic as well. Should it not be "etc" not "boot" (added red high lighting) at least this was the case for me.
    Last edited by Jenkins1; January 4th, 2010 at 03:59 PM.

  3. #43
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by Jenkins1 View Post
    I have this tutorial working in karmic as well. Should it not be "etc" not "boot" (added red high lighting) at least this was the case for me.
    Yes, it should be /etc/default/grub.

    haytjes,
    nice instructions (with the address change above). Worked fine for me in Karmic 64-bit VM using the Ubuntu theme. Score one for BURG.

    Note: The Grub devs indicate that once they get themes worked out in Grub 2 it will be just a matter of installing themes just as you install any other package/deb.
    GRUB2

    Retired.

  4. #44
    Join Date
    Apr 2009
    Beans
    104
    Distro
    Ubuntu

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by tuan.cse06 View Post
    I've installed that theme, but loading process is very slow.
    any guide on how to?

  5. #45
    Join Date
    Sep 2007
    Location
    Pune, India
    Beans
    445
    Distro
    Kubuntu Development Release

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by meborc View Post
    shouldn't it be update-grub2?
    i believe update-grub2 is now moved to update-grub and its now just a different script thats calls update-grub anyway - if you just "cat `which update-grub`" and "cat `update-grub2`" to look at the contents...
    Desktop: Unbranded, Q6600 2.4 ghz CPU, Intel DP35DP mobo, 4 GB RAM, 500 GB HDD, 128 GB SSD, NVIDIA 8800GT, Dell E248WFP LCD.
    Laptop: HP Pavilion tx1302au Turion64 X2 TL-58 1.9 ghz CPU, NVIDIA GeForce Go 6150, 2 GB RAM, 64 GB SSD, Broadcom 4321 Wifi.

  6. #46
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by meborc View Post
    shouldn't it be update-grub2?
    No it should not.

    The "update-grub2" command was a temporary hack for 1.96 so that people would not screw with the Ubuntu alpha grub2 on Karmic alpha2. It has not been needed for a long time back into the 9.10 pre-release days. It still works (I think) but only because it hasn't been fixed (why remove it?).

    I wish folks would quit referring to it, it is clumsy and obsolete.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  7. #47
    Join Date
    May 2007
    Beans
    465

    Re: GRUB2 theming for lucid?

    Update for ppa6:

    New tool grub-emu, support live preview from Linux/Windows/OSX.

    Installation notes for ubuntu karmic:

    1, Install package

    Add these lines to /etc/apt/sources.list:

    Ubuntu Karmic:
    Code:
    deb http://ppa.launchpad.net/bean123ch/burg/ubuntu karmic main
    deb-src http://ppa.launchpad.net/bean123ch/burg/ubuntu karmic main
    Ubuntu Lucid:
    Code:
    deb http://ppa.launchpad.net/bean123ch/burg/ubuntu lucid main
    deb-src http://ppa.launchpad.net/bean123ch/burg/ubuntu lucid main
    then install the package:
    Code:
    sudo apt-get update
    sudo apt-get install grub-pc
    If you want to avoid the warning about unknown signature, use these commands to import it:
    Code:
    gpg --keyserver subkeys.pgp.net --recv 55708F1EE06803C5
    gpg --export --armor 55708F1EE06803C5 | sudo apt-key add -
    Then, you need to install the new boot loader to mbr, for example:
    Code:
    sudo grub-install "(hd0)"
    Change hd0 if you want to install to other disk.

    2, Download themes

    Download theme file from:

    http://code.google.com/p/burg/downloads/list

    theme_fonts.zip is the common font files, theme_*.zip contains individual theme. After download, extract it to /boot/grub, for example:
    Code:
    cd /boot/grub
    sudo unzip ~/theme_fonts.zip
    sudo unzip ~/theme_sora.zip
    3, Edit config file

    edit /etc/default/grub, GRUB_THEME is the theme name, GRUB_GFXMODE is the screen resolution, for example:

    Code:
    GRUB_THEME=sora
    GRUB_GFXMODE=1024x768
    Since 1.97+burg.20100110-1~ppa6, it also supports option GRUB_FOLD, which is used to fold all linux boot items into one. To show the complete list, use some hot-keys defined in theme, for example F7. I've created a refit theme to illustrate this feature:

    Code:
    GRUB_THEME=refit
    GRUB_GFXMODE=640x480
    GRUB_FOLD=1
    Then, use the following command to generate grub.cfg:
    Code:
    sudo update-grub
    It's done, the new boot loader will be used after you reboot. Although, you can also live preview the theme using grub-emu.

    4, Use grub-emu

    First, install grub-emu:
    Code:
    sudo apt-get install grub-emu
    Use this command to preview the theme inside Linux:
    Code:
    sync ; sudo grub-emu
    Keyboard works inside the emulated window. To quit, open a console windows with 'c', then enter command 'halt' or 'exit'. You can also use the hot-key F9, which maps to the halt command.

    You can also use a test directory. This way, you don't need to be super user to run grub-emu. First, create a test directory, and extract fonts and theme files to it. Then, construct a configuration file grub.cfg, for example:
    Code:
    menuentry "Windows" --class Windows --submenu menu_Windows {
      true
    }
    
    menuentry "Windows Two" --class Windows --menu menu_Windows {
      true
    }
    
    menuentry "Windows Three" --class Windows --menu menu_Windows {
      true
    }
    
    menuentry "Linux" --class Linux {
      true
    }
    
    menuentry "OSX" --class MacOSX {
      true
    }
    
    set timeout=10
    
    # For normal theme
    #set gfxmode=800x600
    #set gfxfont="Unifont Regular 16"
    #set theme_dir=${prefix}/themes/ubuntu
    #load_config ${theme_dir}/theme.txt
    #menu_region.text
    #menu_region.gfx
    #menu_viewer.ext
    
    # For sora theme
    . ${prefix}/themes/sora/theme.cfg
    To test sora theme, uncomment the lower section. To test normal theme, uncomment the upper section, and change ubuntu to the name of the theme you're testing.

    This config also shows how to test the new folding feature. The first item which would appear in main menu should have a --submenu option, subsequent items which would be folded would have a --menu option with the same id.

    Finally, run this inside the test directory:
    Code:
    grub-emu -r host -d .
    Similar test method can be used in Windows as well. I've uploaded binary package grub-emu_win32_ppa6.zip in download page, extract to the test directory, then double click run.cmd to start the application.
    Last edited by bean123; January 11th, 2010 at 07:57 AM.

  8. #48
    Join Date
    Jan 2005
    Location
    wien/at
    Beans
    92

    Re: GRUB2 theming for lucid?

    this looks very promising.
    two issues i have:

    - i have to hit <tab> before being able to browse the entries with cursor keys
    - in default install on ubuntu the only place where adding “--class Ubuntu” would have an effect is in grub.cfg on which editing is deprecated. so there should rather be an extension to the script 10_linux to determine the present distributions and add the appropriate class to the entries.

    what's more, since the update to ppa6, the opensuse entries show no icons at all (before they showed the “unknown os”-icon.

  9. #49
    Join Date
    May 2007
    Beans
    465

    Re: GRUB2 theming for lucid?

    Quote Originally Posted by McDuff View Post
    this looks very promising.
    two issues i have:

    - i have to hit <tab> before being able to browse the entries with cursor keys
    Yep, you need to switch input focus from terminal window to the SDL window.

    - in default install on ubuntu the only place where adding “--class Ubuntu” would have an effect is in grub.cfg on which editing is deprecated. so there should rather be an extension to the script 10_linux to determine the present distributions and add the appropriate class to the entries.
    Right, I think 10_linux should be smart enough to detect the distribution. Any idea how to get the OS name ?

    what's more, since the update to ppa6, the opensuse entries show no icons at all (before they showed the “unknown os”-icon.
    Now burg uses the result of os-prober to set the --class parameter (previously it's empty). However, sora theme doesn't include icons for some OS, but it's quite easy to add. Add the system icon to icons directory, then edit icons/icons.txt, add the entry for your OS. You can examine the generated grub.cfg to decide which OS label to use.

  10. #50
    Join Date
    May 2007
    Beans
    465

    Re: GRUB2 theming for lucid?

    BURG ppa6 binary package for lucid now available in launchpad.

Page 5 of 35 FirstFirst ... 3456715 ... 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
  •