Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366121 - Create gentoo grub2 theme
Summary: Create gentoo grub2 theme
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 3 votes (vote)
Assignee: Gentoo Artwork Team
URL: http://code.google.com/p/non7top/down...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 17:21 UTC by Tomáš Chvátal (RETIRED)
Modified: 2021-03-25 18:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
broken theme screenshot (screenshot-1305733670.jpg,71.18 KB, image/jpeg)
2011-05-18 15:50 UTC, Leho Kraav (:macmaN @lkraav)
Details
initial working theme example (theme.txt,372 bytes, text/plain)
2011-05-18 17:32 UTC, Leho Kraav (:macmaN @lkraav)
Details
working screenshot (screenshot-1305739777.jpg,62.53 KB, image/jpeg)
2011-05-18 17:33 UTC, Leho Kraav (:macmaN @lkraav)
Details
theme with circular progress (theme.txt,612 bytes, text/plain)
2011-05-18 22:06 UTC, Leho Kraav (:macmaN @lkraav)
Details
theme with circular progress screenshot (screenshot-1305755649.jpg,61.34 KB, image/jpeg)
2011-05-18 22:07 UTC, Leho Kraav (:macmaN @lkraav)
Details
Gentoo theme based on Ubuntu Lucid theme (gentoo2.tar.gz,776.96 KB, application/gzip)
2011-08-29 14:04 UTC, Billy DeVincentis
Details
Gentoo theme based on Ubuntu Lucid theme (gentoo2.zip,787.20 KB, application/zip)
2011-08-30 12:06 UTC, Billy DeVincentis
Details
gentoo2-screenshot.png (gentoo2-screenshot.png,317.62 KB, image/png)
2011-08-30 14:42 UTC, Leho Kraav (:macmaN @lkraav)
Details
Natural Gentoo Grub2 Theme (Natural_Gentoo.tar.gz,224.42 KB, application/x-gzip)
2011-08-31 22:11 UTC, Billy DeVincentis
Details
Natural Gentoo Grub2 Theme Screenshot (Natural_Gentoo_Grub2_Screenshot.png,15.88 KB, image/png)
2011-08-31 22:12 UTC, Billy DeVincentis
Details
Screenshot of media-gfx/grub2-theme-gentoo (grub2-theme.png,113.89 KB, image/png)
2013-10-19 00:28 UTC, Ciprian Ciubotariu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-05 17:21:52 UTC
Hi guys, as I were messing with grub2 I found out it has awesome theming capabilities.

For further use we should provide some cool branding to make it look really pretty for our users.

See in the url some user-made stuff (where i could not find any license sadly but it is spin-off the archlinux artwork).
Comment 1 Sebastian Pipping gentoo-dev 2011-05-05 21:22:42 UTC
(In reply to comment #0)
> Hi guys, as I were messing with grub2 I found out it has awesome theming
> capabilities.
> 
> For further use we should provide some cool branding to make it look really
> pretty for our users.

That would indeed be nice.


> See in the url some user-made stuff (where i could not find any license sadly
> but it is spin-off the archlinux artwork).

Please make sure to not pull in any bits with unclear licensing when producing grub2 artwork yourself.  You'd only end up with things we cannot officially promote and that doesn't help anyone.  It may be worth to contact the author of that overlay on licensing though.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-05 21:31:55 UTC
I dunno how to create it and be sure i have no graphical skills, but i think we can use sabayon guys here. :)
Comment 3 SpanKY gentoo-dev 2011-05-18 01:05:10 UTC
if a proper theme is done, then it can simply be added to the ebuild.  cc base-system when that point comes ...
Comment 4 Leho Kraav (:macmaN @lkraav) 2011-05-18 13:05:06 UTC
i'd like to note that a grub2 theme that is consistent with plymouth's gentoo theme would be awesome.
Comment 5 Leho Kraav (:macmaN @lkraav) 2011-05-18 13:07:19 UTC
can anyone enlighten me why it is impossible to click the URL field of this bug? full URL shows up only in tooltip.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-18 13:33:35 UTC
(In reply to comment #5)
> can anyone enlighten me why it is impossible to click the URL field of this
> bug? full URL shows up only in tooltip.

Interesting question, probably it is not interpreted as url due to that q=
Comment 7 Leho Kraav (:macmaN @lkraav) 2011-05-18 15:50:30 UTC
Created attachment 273845 [details]
broken theme screenshot

that link works better. i downloaded it and got my grub to display it in a vm, but something seems to be wrong. menu is totally off, otoh cmd terminal graphics are fine. is this how it is supposed to look right now?
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-18 17:02:46 UTC
This theme is not to be used anyway. It has no clear licensing, I added it to URL so we can see how is such thing like grub2 theme created.
Comment 9 Leho Kraav (:macmaN @lkraav) 2011-05-18 17:32:39 UTC
Created attachment 273851 [details]
initial working theme example

it looks like position = (x, y) and themsuch isn't supported.

http://www.gnu.org/software/grub/manual/grub.html#Theme-file-format

but i've got something now that works, attached.
Comment 10 Leho Kraav (:macmaN @lkraav) 2011-05-18 17:33:31 UTC
Created attachment 273853 [details]
working screenshot
Comment 11 Leho Kraav (:macmaN @lkraav) 2011-05-18 22:06:20 UTC
Created attachment 273873 [details]
theme with circular progress

this has a timeout indicator put back in.

i'm going to leave it at this for more skilled people to pick up. i'd appreciate info how to make a selection bar for menuitems.
Comment 12 Leho Kraav (:macmaN @lkraav) 2011-05-18 22:07:10 UTC
Created attachment 273875 [details]
theme with circular progress screenshot
Comment 13 Sebastian Pipping gentoo-dev 2011-05-19 12:15:32 UTC
Leho, nice work so far.

Two things:

 - So far I see screenshots only.  Where can we find the actual theme
   including images <gentoodark.png>, <gentoocenter.png>, <tick.png>
   and their sources (Inkscape?)

 - If I am not mistaken the Gentoo logo in the background looks like
   that by Matteo 'Peach' Pescarin published at
   <http://peach.smartart.it/illustration/gentoo-logo-vector>
   If that's the source, at least the images containing that logo will
   need to be licensed under CC-BY-SA/2.5, or the whole theme ideally.
   I don't see a problem with that, though.

Thanks, Sebastian
Comment 14 Leho Kraav (:macmaN @lkraav) 2011-05-19 13:32:20 UTC
click the URL link of this bug :) looks like it's someone's personal overlay.

my effort is just a works-for-me approach and to get something better, free of all licensing and whatnot (my graphical unprofessionalism included) issues, kickstarted. looking around for information i did notice that not much is out there so far in terms of pure grub2-compatible stuff. ubuntu people have taken to BURG instead, it seems.

but anyway, hopefully wheels start turning on this.
Comment 15 Billy DeVincentis 2011-08-29 14:04:16 UTC
Created attachment 285003 [details]
Gentoo theme based on Ubuntu Lucid theme

Here is a working theme I created using the Ubuntu Lucid grub theme as a starting point. A license is included in the theme text. Working with 1.99-r1. Unzip this to /boot/grub2/themes and update your /etc/default/grub to include these lines

GRUB_GFXMODE=1024x768
GRUB_THEME=/boot/grub2/themes/gentoo2/theme.txt

Next you need to run 

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

This will create a new grub.cfg

here is my grub.cfg for anyone who may have any problems


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
if loadfont /usr/share/grub2/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/gentoo2/dejavu_mono_14.pf2
loadfont ($root)/boot/grub2/themes/gentoo2/dejavu_sans_14.pf2
loadfont ($root)/boot/grub2/themes/gentoo2/dejavu_sans_bold_14.pf2
insmod png
set theme=($root)/boot/grub2/themes/gentoo2/theme.txt
if sleep --interruptible 0 ; then
  set timeout=10
fi
play 480 440 1
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/02_linux ###
menuentry 'GNU/Linux, with Linux 3.0.3-gentoo' --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
	echo	'Loading Linux 3.0.3-gentoo ...'
	linux	/boot/kernel-3.0.3-gentoo  root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/sda1 udev video=vesafb:mtrr:3,ywrap splash=silent,theme:natural_gentoo console=tty1 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-3.0.3-gentoo
        set gfxpayload=1024x768x16
}
menuentry 'GNU/Linux, with Linux 3.0.1-gentoo' --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
	echo	'Loading Linux 3.0.1-gentoo ...'
	linux	/boot/kernel-3.0.1-gentoo  root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/sda1 udev video=vesafb:mtrr:3,ywrap splash=silent,theme:natural_gentoo console=tty1 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-3.0.1-gentoo
        set gfxpayload=1024x768x16
}
menuentry 'GNU/Linux, with Linux 2.6.39-gentoo-r3' --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
	echo	'Loading Linux 2.6.39-gentoo-r3 ...'
	linux	/boot/kernel-2.6.39-gentoo-r3  root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/sda1 udev video=vesafb:mtrr:3,ywrap splash=silent,theme:natural_gentoo console=tty1 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-2.6.39-gentoo-r3
        set gfxpayload=1024x768x16
}
### END /etc/grub.d/02_linux ###

### BEGIN /etc/grub.d/08_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### Example genkernel entry
#menuentry 'GNU/Linux, with Linux 3.0.3-gentoo' --class gnu-linux --class gnu --class os {
#	load_video
#	insmod gzio
#	insmod part_msdos
#	insmod ext2
#	set root='(hd0,msdos1)'
#	search --no-floppy --fs-uuid --set=root a5c33bd1-350e-4da3-a9a1-e3da2dffd12f
#	echo	'Loading Linux 3.0.3-gentoo ...'
#	linux	/boot/kernel-3.0.3-gentoo root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/sda1 udev video=vesafb:mtrr:3,ywrap splash=silent,theme:natural_gentoo console=tty1 quiet
#        initrd  /boot/initramfs-3.0.3-gentoo
#        set gfxpayload=1024x768x16  
#}
menuentry 'MS Windows NT, with Windows 7 Ultimate 64' {
        insmod part_msdos
        insmod ntfs
	insmod chain
	set root='(hd2,msdos1)'
	drivemap -s hd0 hd2
        search --no-floppy --fs-uuid --set=root 98EC324BEC3223C2
	chainloader +1
}

### END /etc/grub.d/08_custom ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Comment 16 Leho Kraav (:macmaN @lkraav) 2011-08-29 16:35:42 UTC
what format is that attachment in, browser is unable to correctly render it from text/plain.
Comment 17 Billy DeVincentis 2011-08-29 18:03:13 UTC
Sorry, didn't mark it when I created it. It;s a tar.gz file. Untar and the theme is inside
Comment 18 David Abbott (RETIRED) gentoo-dev 2011-08-29 18:19:04 UTC
Comment on attachment 285003 [details]
Gentoo theme based on Ubuntu Lucid theme

Changed MIME type.
Comment 19 David Abbott (RETIRED) gentoo-dev 2011-08-29 18:22:49 UTC
Comment on attachment 285003 [details]
Gentoo theme based on Ubuntu Lucid theme

Still broken here.
Comment 20 Billy DeVincentis 2011-08-29 22:12:41 UTC
How is it broken, Please post your emerge info
Comment 21 David Abbott (RETIRED) gentoo-dev 2011-08-30 00:51:11 UTC
Comment on attachment 285003 [details]
Gentoo theme based on Ubuntu Lucid theme

tar -zxvf gentoo2.tar.gz 
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Comment 22 Billy DeVincentis 2011-08-30 12:06:52 UTC
Created attachment 285079 [details]
Gentoo theme based on Ubuntu Lucid theme

I have added this again, please let me knop if there are any problems. The format is plain zip.
Comment 23 Leho Kraav (:macmaN @lkraav) 2011-08-30 12:50:31 UTC
how about a screenshot/photo of the theme? i'll be able to get a shot out of a VM not earlier than tonight.
Comment 24 Leho Kraav (:macmaN @lkraav) 2011-08-30 14:42:39 UTC
Created attachment 285085 [details]
gentoo2-screenshot.png
Comment 25 Billy DeVincentis 2011-08-31 12:47:12 UTC
Glad that you were able to take a screenshot. How did you do it? I started trying last night by installing fedora in a vm but the fedora grub 2 package is 1.98 and seems broken.
Comment 26 Billy DeVincentis 2011-08-31 22:11:19 UTC
Created attachment 285211 [details]
Natural Gentoo Grub2 Theme

Here is another theme I have made which is based on the Natural Gentoo Splash
Enjoy
Comment 27 Billy DeVincentis 2011-08-31 22:12:07 UTC
Created attachment 285213 [details]
Natural Gentoo Grub2 Theme Screenshot
Comment 28 Ciprian Ciubotariu 2013-10-19 00:26:43 UTC
Well, it seems that now grub2 was marked as stable on amd64 - so I thought it was time to bump this 2-year-and-a-half-long thread/bug about an official grub2 gentoo theme.

In the meantime, I am going to settle with fixing the one with an unknown license (a.k.a public domain). I've uploaded it here earlier (needed grub2 for an EFI computer), so that others can enjoy it too: 

https://github.com/CMoH/grub2-theme-gentoo

Follow the readme to get some nice ebuilds from my personal overlay.
Comment 29 Ciprian Ciubotariu 2013-10-19 00:28:27 UTC
Created attachment 361278 [details]
Screenshot of media-gfx/grub2-theme-gentoo

And a screenshot of the fixed theme.
Comment 30 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2021-03-25 18:20:09 UTC
ping on this!