You are not logged in.

#26 2008-10-24 18:35:08

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

This looks awesome!  I will have to donate some of my limited free time to setting this puppy up. I have been keeping an eye on grub2 for a little while, and I figured it was only a matter of time till someone, more knowledgeable in the ways of packaging than I, put it into the AUR.

I need to keep a closer eye on the AUR... apparently I forget things while attending Uni.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#27 2008-10-25 23:08:02

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

I have been looking more into this....   is the original creator still working on it? It doesn't seem to have been updated since August.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#28 2008-10-26 02:35:03

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

I'm not sure. His page says it was his project for google summer of code. Though it's not too far out of date. Perhaps with a little attention, if he's not working on it, someone else will pick it up. Perhaps you should email and ask. Personally, to be quite honest, I don't care enough to myself. If he's not, someone will eventually, it's an awesome project.

Also please note that this package is a pretty much modified version of grub2 to include support for the graphical menu stuff, not the 'official' grub2 release.

Last edited by FrozenFox (2008-10-30 04:33:08)

Offline

#29 2008-10-30 16:38:42

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

Ok, Thank ya for the update on this... I will have to email the project dev to see if it is still active. I love the concept and I am learning coding just to help out on this one.

I had a great idea for a "first level" "live" distro that can do little things like a quick search or an email check, as well as boot other OS's that can actually save to the hard drive.

Sort of like inserting a live CD and having the ability to boot a permanent OS from the hard drive at any time. (I'm gonna need a lot of help! lol)

It's probably an impractical idea, but hey that's what ya get when you remember things from your dreams.

Maybe calling it lo-browser for loader/browser.

This idea is Creative commons...   if anyone else wants to use it, knock yourselves right on out.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#30 2008-10-30 17:49:31

tehswift
Member
From: Nashville, TN
Registered: 2008-10-30
Posts: 11

Re: Care to play with grub2-graphical?

looks like he's still working on the project. There's an update in his journal from today (Oct. 30th) about him adding UTF-8 support to the new font engine:

http://grub.gibibit.com/Journal

Offline

#31 2008-10-30 18:50:01

tehswift
Member
From: Nashville, TN
Registered: 2008-10-30
Posts: 11

Re: Care to play with grub2-graphical?

I was telling Fox about this last night, for some reason my menu options are reversed. If I want to boot Arch then I have to highlight Fallback and select it and vice versa for Fallback. Also, up arrow key moves the highlight down and the down arrow key moves the highlight up. Anybody else seem to have this problem, or do I get to be the only lucky person? I'm at work right now, but I'll post my grub.cfg and theme.txt when I get home to see if anybody has any ideas as to why this might happen.

Here's my grub.cfg:

set gfxmode=1024x768
insmod biosdisk
insmod pc
insmod font
insmod vbe
insmod gfxterm
insmod videotest
insmod tga
insmod png
insmod gfxmenu

#set menuviewer="terminal"
set menuviewer="gfxmenu"

set theme="/boot/grub/themes/archfox/theme.txt"
#set theme="/boot/grub/themes/ubuntu2/theme.txt"
#set theme="/boot/grub/themes/ubuntu1/theme.txt"
#set theme="/boot/grub/themes/winter/theme.txt"
#set theme="/boot/grub/themes/proto/theme.txt"

# TODO: fix GRUB script parser -- it doesn't handle a space at the end of the line in a menu entry.

####################
#### BEGIN MENU ####

set timeout=15
set default="0"
set fallback="1 2"

#Entry 0 - Arch Linux root and boot /dev/sda2
menuentry "Arch Linux|class=linuxmint,linux,os" {
    set root=(hd0,2)
    linux /boot/vmlinuz26 root=/dev/sda2 ro vga=773
    initrd /boot/kernel26.img
}

#Entry 1 - Arch Linux Fallback root and boot /dev/sda2
menuentry "Arch Linux Fallback|class=linuxmint,linux,os" {
    set root=(hd0,2)
    linux /boot/vmlinuz26 root=/dev/sda2 ro
    initrd /boot/kernel26-fallback.img
}


####  END MENU  ####
####################

# Choose the font for gfxterm.
set gfxterm_font="Fixed 12"

# Load fonts.
# Generated with:
#  ls *.pf2 | perl -pe 's{^}{loadfont /boot/grub/fonts/}'
loadfont /boot/grub/fonts/10x20.pf2
loadfont /boot/grub/fonts/4x6.pf2
loadfont /boot/grub/fonts/5x7.pf2
loadfont /boot/grub/fonts/5x8.pf2
loadfont /boot/grub/fonts/6x10.pf2
loadfont /boot/grub/fonts/6x12.pf2
loadfont /boot/grub/fonts/6x13B.pf2
loadfont /boot/grub/fonts/6x13O.pf2
loadfont /boot/grub/fonts/6x13.pf2
loadfont /boot/grub/fonts/6x9.pf2
loadfont /boot/grub/fonts/7x13B.pf2
loadfont /boot/grub/fonts/7x13O.pf2
loadfont /boot/grub/fonts/7x13.pf2
loadfont /boot/grub/fonts/7x14B.pf2
loadfont /boot/grub/fonts/7x14.pf2
loadfont /boot/grub/fonts/8x13B.pf2
loadfont /boot/grub/fonts/8x13O.pf2
loadfont /boot/grub/fonts/8x13.pf2
loadfont /boot/grub/fonts/9x15B.pf2
loadfont /boot/grub/fonts/9x15.pf2
loadfont /boot/grub/fonts/9x18B.pf2
loadfont /boot/grub/fonts/9x18.pf2
loadfont /boot/grub/fonts/anorexia.pf2
loadfont /boot/grub/fonts/aqui.pf2
loadfont /boot/grub/fonts/clR6x12.pf2
loadfont /boot/grub/fonts/cure.pf2
loadfont /boot/grub/fonts/drift.pf2
loadfont /boot/grub/fonts/edges.pf2
loadfont /boot/grub/fonts/fkp.pf2
loadfont /boot/grub/fonts/gelly.pf2
loadfont /boot/grub/fonts/glisp-bold.pf2
loadfont /boot/grub/fonts/glisp.pf2
loadfont /boot/grub/fonts/Helvetica-10.pf2
loadfont /boot/grub/fonts/Helvetica-12.pf2
loadfont /boot/grub/fonts/Helvetica-14.pf2
loadfont /boot/grub/fonts/Helvetica-18.pf2
loadfont /boot/grub/fonts/Helvetica-24.pf2
loadfont /boot/grub/fonts/Helvetica-8.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-10.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-12.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-14.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-18.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-24.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-8.pf2
loadfont /boot/grub/fonts/helvR12.pf2
loadfont /boot/grub/fonts/kates.pf2
loadfont /boot/grub/fonts/lime.pf2
loadfont /boot/grub/fonts/mints-mild.pf2
loadfont /boot/grub/fonts/mints-strong.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-8.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-8.pf2
loadfont /boot/grub/fonts/nu.pf2
loadfont /boot/grub/fonts/smoothansi.pf2
loadfont /boot/grub/fonts/snap.pf2

here's my theme.txt:

# Designed for 1024x768 resolution.

message-font: "Helvetica 8"
terminal-font: "Fixed 9"
message-color: "#FFF"
message-bg-color: "#222"
desktop-image: "archdark.png"
desktop-color: "#000"
terminal-box: "terminal_*.png"

+ boot_menu {
   position = (830, 270)
   preferred_size = (240, -1)
   item_font = "aqui 18"

   item_color = #FFF
   selected_item_color = "#9090FF"

   icon_width = 48
   icon_height = 48
   item_height = 48
   item_padding = 2
   item_icon_space = 5
   item_spacing = 2

   max_items_shown = 10
   scrollbar = false
}

# Informational message bar at the bottom of the screen.
+ vbox {
   position = (512, 720)

   # Leave vertical space.
   + label { text="" font="lime 11" color=#FFF }
}

+ circular_progress
{
   id = "__timeout__"
   position = (40, 150)
   preferred_size = (100, 100)
   num_ticks = 32
   ticks_disappear = true
   start_angle = -60
   center_bitmap = "archcenter.png"
   tick_bitmap = "tick.png"
}

+ label
{
   id = "__timeout__"
   position = (8, 380)
   font = "edges 10"
   color = #AAA
   align = "center"
}

Last edited by tehswift (2008-10-31 02:55:07)

Offline

#32 2008-11-04 17:29:28

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: Care to play with grub2-graphical?

This is awesome.

I want it! big_smile

Offline

#33 2008-11-04 21:48:56

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

Shaika-Dzari: Well try it out n tell us how it goes. It would be especially helpful if you have some unique setup like a separate /boot, and manage to get it working and post how, hehe. I'd be glad to help to the limited extent I can if you have problems.

Swift: Did you try switching to one of those other default themes? I don't remember if I asked you or not. If not, do eet nao! If so, did it change anything?

Last edited by FrozenFox (2008-11-04 21:49:22)

Offline

#34 2008-11-06 15:28:36

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

After learning more and reading farther into my text book, I have learned just how insane my posted idea sounds for a newbie coder...  ouch.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#35 2008-11-07 04:47:45

tehswift
Member
From: Nashville, TN
Registered: 2008-10-30
Posts: 11

Re: Care to play with grub2-graphical?

ok I fixed my backwards arrow keys/selections issues I had with Fox's theme by hacking up the ubuntu1 theme to the way I wanted it. Here's a link to download it if anybody wants to use it:

http://www.mediafire.com/download.php?zng0tzohteq

Last edited by tehswift (2008-11-07 04:50:02)

Offline

#36 2008-11-10 02:13:48

Intrepid
Member
Registered: 2008-06-11
Posts: 254

Re: Care to play with grub2-graphical?

LeoSolaris: Your idea actually has been implemented, or so I believe.  It just hasn't been implemented for graphical grub 2.  I have a CD entitled "SuperGrub" which basically allows me to 1)rewrite the mbr with grub 2)boot any OS.  It just doesn't detect the OS' for me.  Suppose the MBR grub is messed up.  Supergrub will allow me to use the settings in /boot/grub/menu.lst to boot into Arch.


Intrepid (adj.): Resolutely courageous; fearless.

Offline

#37 2008-11-11 02:10:39

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

Intrepid wrote:

LeoSolaris: Your idea actually has been implemented, or so I believe.  It just hasn't been implemented for graphical grub 2.  I have a CD entitled "SuperGrub" which basically allows me to 1)rewrite the mbr with grub 2)boot any OS.  It just doesn't detect the OS' for me.  Suppose the MBR grub is messed up.  Supergrub will allow me to use the settings in /boot/grub/menu.lst to boot into Arch.

Sort of what I was thinking...  Same idea, only compacted to fit into the MBR, rather than a CD. trim it to just a browser that doesn't save anything, like Google's Chrome in Stealth mode, and have a functioning mouse, from the MBR level, while still retaining the ability to boot the full OS's stored on the rest of the hard drive. That way if you just want to surf the web, you don't have to boot up the full OS.

Like a really trimmed down version of Asus's quick booting distro stored in the MBR.


Huge level of work for a novice programmer, but a goal to shoot at none the less.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#38 2008-12-08 13:27:52

R45
Member
From: France
Registered: 2008-11-05
Posts: 3

Re: Care to play with grub2-graphical?

Hello all Grub2-graphical enthusiasts !

I have followed this thread with quite some interest, as I'd like to add some custom eye-candy to my Arch installation.

However, it seems that my noobyness allows only failure. I've followed your tutorial very precisely, FrozenFox, have python, bzr, ruby and bison installed, but would always fail at the "makepkg -c --asroot" (yea, I'm lazy, doing it as root...) command.

The PKGBUILD (copy-pasted) is in the directory where I run the command, and the output is always :

: command not found
=> ERROR: An unknown error has occurred. Exiting...

I've been searching around for a month now, but to no avail. Judging by the PKGBUILD, I fail to see what line may cause such an output, as I have (or think to have) all the programs the commands refer to. The lack of any info before the ": command not found" is also puzzling me.
BTW : I've never used Bazaar before, and am quite unfamiliar with it.

Would anyone provide a pointer ?

Offline

#39 2008-12-09 11:17:00

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: Care to play with grub2-graphical?

Seems like a nice idea. But untill I see a more easier way to apply the graphical stuff, I will wait.

Birger smile

Offline

#40 2008-12-10 00:09:45

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

All: I fixed a typo most people seem to have skipped over on one of the early steps (step 4). It was a glaring typo, but nobody mentioned it to me ><. I'm guessing most people didn't notice (hooray mental correction instead of copy n paste?) and continued.

MindTooth: I'm not sure whether there will ever be such a way for Arch, being a very do-it-yourself distribution. On that note, I haven't seen this actually packaged on another distro that does more of the work for you (ie Ubuntu). Granted, since the original post, I haven't really looked. I'm also unsure if/when this will be adopted into others. I hope it will eventually.

R45: I don't know what the issue is, but I would suggest trying 3 things:

1) Perhaps try copying/pasting the file a different way / with a different program? There may be a hidden character in there that shouldn't be.

2) Make a temporary user if you don't have one (adduser ftw), switch over to it, and do this process as non-root. Do deluser afterwards and delete your home folder accordingly if it's a new account.

3) If that doesn't work, comment out all of the build section in the pkgbuild, see if you still have problems. Uncomment it chunk by chunk of the pkgbuild build area and see where the issue is, basically. Just never set it to install until you have the whole thing working of course, or figure out the problem area.

If this works and/or you find the problem, please report back.

Last edited by FrozenFox (2008-12-28 19:10:15)

Offline

#41 2008-12-25 20:19:28

boriscougar
Member
From: Guatemala
Registered: 2008-10-11
Posts: 30
Website

Re: Care to play with grub2-graphical?

ok, ive been playing around with this grub (as i've lots of time right now smile)anyways my config is a separate partition for /boot and / . So if it is usefull for anyone here are my config files (they are not "that" different from the ones posted by FrozenFox...)

The TextMode grub.cfg:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/local/sbin/update-grub using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#

### BEGIN /usr/local/etc/grub.d/00_header ###
set default=0
set timeout=5
### END /usr/local/etc/grub.d/00_header ###
# Entry 0 - Arch Linux
menuentry "Arch Linux on (hd0,5)" {
    set root=(hd0,5)
    linux /vmlinuz26 root=/dev/sda7 resume=/dev/sda6 vga=791 quiet ro
    initrd /kernel26.img
}
# Entry 0 - Arch Linux
menuentry "Arch Linux on (hd0,5)" {
    set root=(hd0,5)
    linux /vmlinuz26 root=/dev/sda7 ro
    initrd /kernel26-fallback.img
}
# Entry 2 - Windows XP
menuentry "Windows XP on (hd0,2)" {
    set root=(hd0,2)
    chainloader +1
}
### BEGIN /usr/local/etc/grub.d/10_hurd ###
### END /usr/local/etc/grub.d/10_hurd ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
### END /usr/local/etc/grub.d/10_linux ###

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /usr/local/etc/grub.d/40_custom ###

The GraphicalMode for my Grub:

set gfxmode=1024x768
insmod biosdisk
insmod pc
insmod font
insmod vbe
insmod gfxterm
insmod videotest
insmod tga
insmod png
insmod gfxmenu

#set menuviewer="terminal"
set menuviewer="gfxmenu"

#set theme="/boot/grub/themes/archfox/theme.txt"
set theme="/boot/grub/themes/ubuntu2/theme.txt"
#set theme="/boot/grub/themes/ubuntu1/theme.txt"
#set theme="/boot/grub/themes/winter/theme.txt"
#set theme="/boot/grub/themes/proto/theme.txt"

# TODO: fix GRUB script parser -- it doesn't handle a space at the end of the line in a menu entry.

####################
#### BEGIN MENU ####

set timeout=8
set default="0"
set fallback="2 1"

# Entry 0 - Arch Linux
menuentry "Arch Linux on (hd0,5)" {
    set root=(hd0,5)
    linux /vmlinuz26 root=/dev/sda7 resume=/dev/sda6 vga=791 quiet ro
    initrd /kernel26.img
}

# Entry 0 - Arch Linux
menuentry "Arch Linux on (hd0,5)" {
    set root=(hd0,5)
    linux /vmlinuz26 root=/dev/sda7 ro
    initrd /kernel26-fallback.img
}

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


####  END MENU  ####
####################

# Choose the font for gfxterm.
set gfxterm_font="Fixed 12"

# Load fonts.
# Generated with:
#  ls *.pf2 | perl -pe 's{^}{loadfont /boot/grub/fonts/}'
loadfont /boot/grub/fonts/10x20.pf2
loadfont /boot/grub/fonts/4x6.pf2
loadfont /boot/grub/fonts/5x7.pf2
loadfont /boot/grub/fonts/5x8.pf2
loadfont /boot/grub/fonts/6x10.pf2
loadfont /boot/grub/fonts/6x12.pf2
loadfont /boot/grub/fonts/6x13B.pf2
loadfont /boot/grub/fonts/6x13O.pf2
loadfont /boot/grub/fonts/6x13.pf2
loadfont /boot/grub/fonts/6x9.pf2
loadfont /boot/grub/fonts/7x13B.pf2
loadfont /boot/grub/fonts/7x13O.pf2
loadfont /boot/grub/fonts/7x13.pf2
loadfont /boot/grub/fonts/7x14B.pf2
loadfont /boot/grub/fonts/7x14.pf2
loadfont /boot/grub/fonts/8x13B.pf2
loadfont /boot/grub/fonts/8x13O.pf2
loadfont /boot/grub/fonts/8x13.pf2
loadfont /boot/grub/fonts/9x15B.pf2
loadfont /boot/grub/fonts/9x15.pf2
loadfont /boot/grub/fonts/9x18B.pf2
loadfont /boot/grub/fonts/9x18.pf2
loadfont /boot/grub/fonts/anorexia.pf2
loadfont /boot/grub/fonts/aqui.pf2
loadfont /boot/grub/fonts/clR6x12.pf2
loadfont /boot/grub/fonts/cure.pf2
loadfont /boot/grub/fonts/drift.pf2
loadfont /boot/grub/fonts/edges.pf2
loadfont /boot/grub/fonts/fkp.pf2
loadfont /boot/grub/fonts/gelly.pf2
loadfont /boot/grub/fonts/glisp-bold.pf2
loadfont /boot/grub/fonts/glisp.pf2
loadfont /boot/grub/fonts/Helvetica-10.pf2
loadfont /boot/grub/fonts/Helvetica-12.pf2
loadfont /boot/grub/fonts/Helvetica-14.pf2
loadfont /boot/grub/fonts/Helvetica-18.pf2
loadfont /boot/grub/fonts/Helvetica-24.pf2
loadfont /boot/grub/fonts/Helvetica-8.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-10.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-12.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-14.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-18.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-24.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-8.pf2
loadfont /boot/grub/fonts/helvR12.pf2
loadfont /boot/grub/fonts/kates.pf2
loadfont /boot/grub/fonts/lime.pf2
loadfont /boot/grub/fonts/mints-mild.pf2
loadfont /boot/grub/fonts/mints-strong.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-8.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-8.pf2
loadfont /boot/grub/fonts/nu.pf2
loadfont /boot/grub/fonts/smoothansi.pf2
loadfont /boot/grub/fonts/snap.pf2

as you can see, my boot partition is /dev/sda5, my root partition is /dev/sda7 and the wxp partition is /dev/sda2... so thats it, hope it helps && happy holidays!!!!!!!

Offline

#42 2008-12-28 02:27:11

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

Thank you for the contribution smile I will edit the original post accordingly, since the 2 problem setups (lvm, separate / and /boot) ive encountered have now been worked around and presented by you people.

Offline

#43 2008-12-28 16:17:11

alessandro_ufms
Member
From: Campo Grande, MS - Brazil
Registered: 2008-06-25
Posts: 153

Re: Care to play with grub2-graphical?

Wow, these screen shots are amazing.

Offline

#44 2009-01-04 14:10:19

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: Care to play with grub2-graphical?

holy_shit_awesome.jpg

great tutorial. thanks.

Offline

#45 2009-01-07 16:49:05

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: Care to play with grub2-graphical?

has anyone been able to make the fonts work? It stays the same no matter what I choose.

my grub.cfg

set gfxmode=1280x800
insmod biosdisk
insmod pc
insmod font
insmod vbe
insmod gfxterm
insmod videotest
insmod tga
insmod png
insmod gfxmenu

#set menuviewer="terminal"
set menuviewer="gfxmenu"

#set theme="/boot/grub/themes/archfox/theme.txt"
#set theme="/boot/grub/themes/ubuntu2/theme.txt"
#set theme="/boot/grub/themes/ubuntu1/theme.txt"
#set theme="/boot/grub/themes/winter/theme.txt"
set theme="/boot/grub/themes/proto/theme.txt"

# TODO: fix GRUB script parser -- it doesn't handle a space at the end of the line in a menu entry.

####################
#### BEGIN MENU ####

set timeout=12
set default="0"
set fallback="2 1"

# Entry 0 - Arch Linux root and boot /dev/sda6
menuentry "Arch Linux|class=kubuntu,linux,os" {
    set root=(hd0,6)
    linux /boot/vmlinuz26 root=/dev/sda6 elevator=deadline ro quiet  vga=792 
    initrd /boot/kernel26.img
}

# Entry 1 - Windows Vista on partition 1, /dev/sda3
menuentry "Windows Vista|class=windows xp, windows, os" {
    set root=(hd0,3)
    chainloader +1
}

# Entry 2 - Ubuntu on partition 1, /dev/sda3
menuentry "Ubuntu 8.10|class=ubuntu,linux,os" {
    set root=(hd0,8)
    linux /boot/vmlinuz-2.6.27-7-generic root=UUID=fa619ccc-8e96-4de3-9dd5-9c7d73fffaea ro quiet splash 
    initrd /boot/initrd.img-2.6.27-7-generic

}

# Entry 3 - Fedora  on partition 1, /dev/sda7
menuentry "Fedora 10|class=fedora,linux,os" {
    set root=(hd0,7)
    linux boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=04c07001-590c-426b-aa47-105a4f3270b5 rhgb quiet
    initrd /boot/initrd-2.6.27.5-117.fc10.i686.img

}

# Entry 4 - Arch Linux Fallback root and boot /dev/sda6
menuentry "Arch Linux Fallback|class=kubuntu,linux,os" {
    set root=(hd0,6)
    linux /boot/vmlinuz26 root=/dev/sda6 ro
    initrd /boot/kernel26-fallback.img
}

# Entry 5 - Lenovo Recovery and Care on partition 1, /dev/sda1
menuentry "Lenovo Recovery & Care|class=lenovo, windows, os" {
    set root=(hd0,1)
    chainloader +1
}

####  END MENU  ####
####################

# Choose the font for gfxterm.
set gfxterm_font="Fixed 15"

# Load fonts.
# Generated with:
#  ls *.pf2 | perl -pe 's{^}{loadfont /boot/grub/fonts/}'
loadfont /boot/grub/fonts/10x20.pf2
loadfont /boot/grub/fonts/4x6.pf2
loadfont /boot/grub/fonts/5x7.pf2
loadfont /boot/grub/fonts/5x8.pf2
loadfont /boot/grub/fonts/6x10.pf2
loadfont /boot/grub/fonts/6x12.pf2
loadfont /boot/grub/fonts/6x13B.pf2
loadfont /boot/grub/fonts/6x13O.pf2
loadfont /boot/grub/fonts/6x13.pf2
loadfont /boot/grub/fonts/6x9.pf2
loadfont /boot/grub/fonts/7x13B.pf2
loadfont /boot/grub/fonts/7x13O.pf2
loadfont /boot/grub/fonts/7x13.pf2
loadfont /boot/grub/fonts/7x14B.pf2
loadfont /boot/grub/fonts/7x14.pf2
loadfont /boot/grub/fonts/8x13B.pf2
loadfont /boot/grub/fonts/8x13O.pf2
loadfont /boot/grub/fonts/8x13.pf2
loadfont /boot/grub/fonts/9x15B.pf2
loadfont /boot/grub/fonts/9x15.pf2
loadfont /boot/grub/fonts/9x18B.pf2
loadfont /boot/grub/fonts/9x18.pf2
loadfont /boot/grub/fonts/anorexia.pf2
loadfont /boot/grub/fonts/aqui.pf2
loadfont /boot/grub/fonts/clR6x12.pf2
loadfont /boot/grub/fonts/cure.pf2
loadfont /boot/grub/fonts/drift.pf2
loadfont /boot/grub/fonts/edges.pf2
loadfont /boot/grub/fonts/fkp.pf2
loadfont /boot/grub/fonts/gelly.pf2
loadfont /boot/grub/fonts/glisp-bold.pf2
loadfont /boot/grub/fonts/glisp.pf2
loadfont /boot/grub/fonts/Helvetica-10.pf2
loadfont /boot/grub/fonts/Helvetica-12.pf2
loadfont /boot/grub/fonts/Helvetica-14.pf2
loadfont /boot/grub/fonts/Helvetica-18.pf2
loadfont /boot/grub/fonts/Helvetica-24.pf2
loadfont /boot/grub/fonts/Helvetica-8.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-10.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-12.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-14.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-18.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-24.pf2
loadfont /boot/grub/fonts/Helvetica-Bold-8.pf2
loadfont /boot/grub/fonts/helvR12.pf2
loadfont /boot/grub/fonts/kates.pf2
loadfont /boot/grub/fonts/lime.pf2
loadfont /boot/grub/fonts/mints-mild.pf2
loadfont /boot/grub/fonts/mints-strong.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-8.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-10.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-12.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-14.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-18.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-24.pf2
loadfont /boot/grub/fonts/New_Century_Schoolbook-Bold-8.pf2
loadfont /boot/grub/fonts/nu.pf2
loadfont /boot/grub/fonts/smoothansi.pf2
loadfont /boot/grub/fonts/snap.pf2

and theme.txt:

[url]# My hack of GRUB gfxmenu theme "proto".
# Designed for 1280x800 resolution.

title-text: "GRUB 2 Boot Menu"
title-font: "anorexia 18"
status-font: "anorexia 18"

#title-color: "0, 0, 0"
title-color: "200, 200, 200"
status-color: "200, 200, 200"
status-bg-color: "64, 64, 64"
desktop-image: "bg.png"
desktop-color: "0, 0, 128"

terminal-box: "select_blue_*.png"

+ boot_menu {
   position = (525, 280)
   preferred_size = (240, -1)
   item_font = "anorexia 18"
   selected_item_font = "anorexia 18"
   item_color = "0, 0, 96"
   selected_item_color = "0, 0, 0"
   menu_pixmap_style = "menubox_*.png"
   selected_item_pixmap_style = "select_blue_*.png"
   icon_width = 48
   icon_height = 48
   item_height = 48
   item_padding = 2
   item_icon_space = 5
   item_spacing = 2
}

+ progress_bar
{
   id = "__timeout__"
   position = (420, 65)
   font = "anorexia 15"
   preferred_size = (500, 24)
   text_color = #000
   fg_color = #CCF
   bg_color = #66B
   border_color = #006
}

# Informational message bar at the bottom of the screen.
+ vbox {
   position = (10, 740)
   preferred_size = (620, 40)
   + label { 
      text="Select an item with the arrow keys and press Enter to boot."
      font="anorexia 18" color=#FFF
   }
   + label { 
      text="Press:  'c' for command line; 't' to switch to non-graphical menu."
      font="anorexia 15" color=#FFF
   }
}[/url]

Offline

#46 2009-01-15 18:08:31

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Care to play with grub2-graphical?

After playing with this a little bit, now that the seperate /boot and / partitions error has been fixed, is there any way to "nest" the menu?

In grub I could point to a secondary menu.lst and it would pop up with new choices. I did this to have, but hide, all of the memchecker, fallback, and other alternative boot stuff, leaving just Arch, Windows, Other Options, Reboot, and Shutdown selections on the "main" menu.lst.

It's like the Arch's install CD. A lot like it in fact. That's where I got the idea.


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#47 2009-02-01 08:34:35

Xauthority
Member
From: ../
Registered: 2008-11-03
Posts: 61

Re: Care to play with grub2-graphical?

Hi all,
thanks for the guide. Autoconf should also be added to the dependencies.
At the moment I am tryingit, I will tell you later how it worked.

BTW: if I run makepkg in a folder with space in its name makepkg fails....

Last edited by Xauthority (2009-02-01 08:35:05)

Offline

#48 2009-02-01 14:21:52

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

Xauthority wrote:

Hi all,
thanks for the guide. Autoconf should also be added to the dependencies.
At the moment I am tryingit, I will tell you later how it worked.

BTW: if I run makepkg in a folder with space in its name makepkg fails....

You're welcome. smile
Added autoconf as suggested, thanks.

For the makepkg issue: does that happen with other packages or just this one for you? If it's not an issue with my package in specific, a bug report is in order smile

Offline

#49 2009-02-05 02:47:49

Shaika-Dzari
Member
From: Québec, Canada
Registered: 2006-04-14
Posts: 436
Website

Re: Care to play with grub2-graphical?

Hello!

I was able to build it under x86_64. smile
I can setup a small repo on my website with precompile build for 64 bits and 32 bits.

Anyone?

#### To build for x86_64 ####
You need to setup a 32 bits chroot or use a 32 bits installation of archlinux.
I use arch standard pkgbuild and modify it to use this bzr build.
I can share the pkgbuild if you want.

@+

Offline

#50 2009-02-05 08:23:57

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Care to play with grub2-graphical?

That would be fantastic big_smile

Good to know it works on x64. I will update the post accordingly. Sharing your pkgbuild and any other custom instructions would be appreciated.

EDIT: Also, 100th post. \o/

and I'm amazed at all of the views to this thread. hehe.

Last edited by FrozenFox (2009-02-05 10:06:41)

Offline

Board footer

Powered by FluxBB