![]() |
Splashimages for GRUB2 |
| GNU GRUB is a work in progress and the information in this website is incomplete and may be wrong and/or out of date. Please consult the official GNU GRUB 1.98-r2692 manual. This page was supposed to be up to date for GNU GRUB version 1.98-1ubuntu7 in Ubuntu Lucid Lynx. |
| How to add a splashmage in GRUB2 - the beautiful splashimages from the Ubuntu repositories Changing your Splashimage Font Colors - you'll need to do this for most splashimages How to make your own splashimage for GRUB2 - almost any image file you like will be fine How To Change Boot Menu Resolution - so you can use a larger, better quality splashimage How to Change the GRUB Menu Font - make it look even more amazing How to Install GRUB Invaders - The Space Shooter Game for GNU GRUB |
1) Download the free, already-made splashimages from the Ubuntu repositories
2) You'll find your new splashimages in /usr/share/images/grub/ Here are the thumbnails,
3) To get your new splashimage to appear, you need to edit a file called /etc/grub/ 05_debian_theme.
4) Look for the current path and file name for WALLPAPER in about line 10 in your /etc/grub.d/05_debian_theme file,
5) (i) replace the folder name desktop-base/ with the name of the new folder, grub/ (ii) open another terminal and use the ls command to get a lst of filenames ,
NOTE 2: You can use an image file located anywhere in your file system, it doesn't have to be a file in /usr/share/images, if you want you can use a file in your Pictures folder, you just need to type in the file path and name of the image correctly and GRUB will find it for you. (v) Save and close the file. 6) Run sudo grub-mkconfig,
The expected feedback should look something like this,
7) That's it for now. You can reboot and see how it looks! 8) Special Installations If someone has an installation with an encrypted file system for / , and GRUB in a separate /boot, they will need to copy the images to /boot because GRUB can't 'see' inside an encrypted file system.
|
|
When you have a beautiful splashimage, the next thing to do is choose a suitable font color to go with it. Changing the font color can make a big improvement to the appearance of your GRUB Menu and splashimage. Changing the font color would be very important if you have chosen a splashimage which contains a lot of dark shades and you're still using a black font. You might have trouble reading the titles in your GRUB menu. Changing your font color to white or a light color would be a real necessity in that situation. We can change the font colors in much the same manner as we changed the background image, by editing /etc/grub.d/05_debian_theme and running 'sudo grub-mkconfig'. To alter the grub menu font colors, you need to edit the same file you edited to set your GRUB menu background, /etc/grub/ 05_debian_theme.
Look down to the lines numbered around 18 and 19 find this section of the file,
Colors we can choose from include, black (or transparent), dark-gray, light-gray, white, brown, yellow, red, light-red, blue, light-blue, green, light-green, cyan, light-cyan, magenta, light-magenta.
COLOR_NORMAL="black/black" This is I have highlighted here is called the 'normal foreground' color. Setting a color here will affect most of the text in your GRUB menu, plus the color of the rectangular box around the scrollable part of the menu. COLOR_NORMAL="black/black" This is called the 'normal background' color in GRUB and I recommend leaving this one alone if you want to be able to see your background image properly. The reason for that is because the word 'black' in this position means 'transparent' to GRUB2. If you try to set any color here, that color will hide most of your background, (splashimage). Don't bother unless you are trying for some kind of weird special effect. COLOR_HIGHLIGHT="magenta/black" This one is the 'highlight foreground' color in your GRUB menu. When we scroll up and down our GRUB menu, the text which is selected by the highlight bar can be a different color from the normal (non- selected) text. You should probably pick a color that will be a lot different than the color you will use for your highlight bar so it will stand out and you will be able to read it easily. COLOR_HIGHLIGHT="magenta/black" The last color is our GRUB menu's 'highlight background' color and that 's the color we want the movable highlight or selection bar to be. For example,
When you're finished, remember to run update-grub or grub-mkconfig for the changes to take effect.
TIP
|
|
There's nothing much to it really, you can use just about any photo, drawing or digital artwork. You can use a picture of your favorite girl / boy / dog / cat / horse / car / motorbike / truck / boat / airplane, the biggest fish you ever caught, any cartoon, your company's logo, or almost anything you like. Currently GRUB 2 supports four image formats, they are: .png, .tga, .jpg and .jpeg, but I haven't tried the last one out yet. 1) Copy your image file to your /boot/grub/ directory, (for example, let's pretend I have an image named 'DSC00143.jpg' in my Pictures folder,
2) To get your new splashimage to appear, you need to edit a file called /etc/grub/ 05_debian_theme.
3) scroll down in the file until you find line 10
4) Type or copy and paste the name of your own splashimage) to overwrite whatever the file name was that you had there before.
NOTE 2: Check that your file path is correct, /usr/share/images/grub/ if your image is in the /usr/share/grub folder. Actually, the image file can be anywhere in your file system as long as you get the path and filename right. Make sure you remember to save and close the file. 5) Run grub-mkconfig to write the changes to grub-conf,
6) That's it! All done! Now you can reboot and see how it looks! What to do if your image doesn't fit your monitor For best results you should try to choose an image file that will match the shape of your monitor. A lot of us have wide screen monitors but our cameras take standard images. First, right-click on the image file and click 'properties', or open the image with Image Viewer and find out how many pixels it has. For example, if your monitor is 1680x1050 pixels, that's about 1050/1680 = 62.5% as high as it is wide. If you want your image to fill the whole screen and you don't want part of it cut off, you need to use an image that's about 62.5% as high as it is wide, so it will fit your monitor properly. You may need to use some maths. Also see How To Change Boot Menu Resolution TIP: If you really want to use an image that doesn't fit, first make a copy of it. Never alter your original image because you won't be able to reverse the changes ones they've been saved. Open the copy of your image with GIMP image editor in Ubuntu. Crop and/or resize the copy of your image to make it fit your monitor if you need to. |
|
If you want to use a background image of your own with GRUB2, (see How to make your own splashimage for GRUB2), you may have one with more pixels than 640x480. You can easily set the display resolution higher in GRUB 2. That will give you a better quality picture and your fonts will appear smaller so you'll be able to see a lot more of your boot entries on the screen without scrolling so much. 1. There's no guarantee that GRUB will be able to use exactly the same resolution your Xserver is running at with your video hardware. The only way to find out what settings will be acceptable here is to use GRUB to tell you. To find out, boot your computer and press your 'C' key from your GRUB Menu to switch into CLI Mode GRUB. (i) To prevent text from scrolling up the screen uncontrollably, first use the command set pager=1 (ii) Then you can run the vbeinfo command for a list of resolutions your hardware can support. (iii) Write the numbers down on a piece of scrap paper if you need to. 2. Open your /etc/default/grub file with a text editor and change your settings there
3. Alter the numbers after where it says"GRUB_GFXMODE=" with a suitable resolution for your hardware,
4. Save the file before closing it. 5. Run sudo grub-mkconfig to write the changes to your grub.cfg,
6. reboot and see if it worked. |
|
My opinion is, if we have an interesting and complex background image then the default font the GRUB has already is the best because people will mainly be focusing on the background. Sometimes though, a person with a flair for art might just have a relatively plain background but with nice colors and maybe just a decoration or two. In that case a fancy font might be just the thing that is needed to achieve the right effect. 1) Install fonts To install extra fonts and programs for viewing them properly, try going 'Applications', 'Ubuntu Software Center', and run a search for 'fonts'. Or, try typing 'sudo apt-get install ttf ' in your terminal and then press your tab key. I recommend installing the Decorative fonts from www.larabiefonts, and any other fonts you think you might like. 2) 'Specimen Font Previewer' is a program I like and it's easy to install all kinds of fonts in Ubuntu. Some of them are really beautiful, others are fun, and some are downright ugly. They're all there for us. Just pick out one you like. I chose /usr/share/fonts/truetype/ttf-larabie-deco/zektondo.ttf 3) Find the location of the Font you want to use It's best to find the correct path and file name for your fonts with your terminal rather than relying on the GUI.
2) Open your terminal and run the grub-mkfont command,
3) Open your /etc/default/grub file with a text editor and change your settings there
4. Type in, or copy and paste in a line something similar to the one I have highlighted in yellow,
4. Save the file before closing it. 5. Run sudo grub-mkconfig to write the changes to your grub.cfg,
6. reboot and see what it looks like. Link and credits: How to: Create a Customized GRUB2 Screen that is Maintenance Free - Cavsfan, Ubuntu Web Forums |
| How to Install GRUB Invaders Grub Invaders is a space shooter game by Erik Thiele, Grub Invaders Home Page. Grub Invaders is in the repositories. The easiest way to install GRUB Invaders in Ubuntu is with,
That command will automatically install grub-invaders and run grub-mkconfig to add it to our GRUB boot menu. All we need to do is reboot, select grub invaders and start playing! It can also be installed just as easily by Synaptic Package Manager. |
| How to Install/Setup the grub graphical boot menu in ubuntu 10.10 There aren't any GRUB Graphical Boot Menu Themes available in Ubuntu yet. The graphical menu pretty stable but it can cause booting to be very slow in some BIOSes, and so far the fix may break some cards. The GRUB dev team is still working on it. There might be some themes available for download from the grub website in grub-extras sometime after GNU/GRUB 1.99 comes out. If you really want to take the risk and try out GRUB Graphical Boot Menu early, there are some Graphical Boot Menu Themes available from jordanu.dyndns.org but be warned, some may use a few non-free fonts and logos so they might not conform to the gnu/gpl. 1. find the grub themes at http://jordanu.dyndns.org/grub/themes.tgz 2. extract theme to /boot/grub/mytheme 3. gksudo gedit etc/default/grub, set GRUB_THEME to /boot/grub/mytheme/theme.txt 4. run sudo grub-mkconfig -o /boot/grub/grub.cfg LINKS gfxterm - GRUB Wiki Care to play with grub2-graphical? - Arch Linux Forums GRUB 2 Graphical Menu Theme File Format - GRUB Wiki - Theme Format |