Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
drs305
1. Download the GRUB 2 splash image package:
Code:
sudo apt-get install grub2-splashimages
2. Open this file for editing:
3. Determine the image you wish to use.
Possibly something is missing at the end of 2nd step...
Anyway: thank U again for GRUB 2 informations, now it is the time to learn GRUB 2! Congratulation!
Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
sh4d0w808
Possibly something is missing at the end of 2nd step...
Yes indeed. Lost in the ether of the Internet at some point. Rather than wait to see if it ever returns, I have retyped the missing filename. Thanks. ;-)
Re: Grub 2 - 5 Common Tasks
I have updated my link to Grub2 Basics and added this thread to my links on my Introduction that I posted in the ABT forum.
Re: Grub 2 - 5 Common Tasks
Very well written...!! thanks a lot..
One more point that can be added:
In the file "05_debian_themeand as 06_custom_theme", we must look at the line which reads "use_bg=false"
Quote:
use_bg=false
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
for i in {/boot/grub,/usr/share/images/desktop-base}/picture.{jpg,png,tga}
You have to set the variable "use_bg=false" to true. i.e. use_bg=true
Then set the path and name of your desired GRUB background image.
I hope it helps..
----------------------------
One doubt I have:
Some people say that to change screen resolution of grub2, edit /etc/grub.d/00_header, search for “set gfxmode=640x480” and change it as you like.
But, you like to edit /etc/default/grub # GRUB_GFXMODE=640x480
which one to prefer?
Re: Grub 2 - 5 Common Tasks
For me, that change seems to stop the whole process. Just goes to the default black background.
Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
600WPMPO
You have to set the variable "use_bg=false" to true. i.e. use_bg=true
Then set the path and name of your desired GRUB background image.
Don't do that; if you look at the script, you'll see that it sets "use_bg" to true itself, if the image is OK and there is a valid Grub module to read the file.
Quote:
One doubt I have:
Some people say that to change screen resolution of grub2, edit /etc/grub.d/00_header, search for “set gfxmode=640x480” and change it as you like.
But, you like to edit /etc/default/grub # GRUB_GFXMODE=640x480
which one to prefer?
Definitely change the setting in /etc/default/grub, not in /etc/grub.d/00_header. Again, if you look at 00_header, it just uses the value that you define in /etc/grub/default:
Code:
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
set gfxmode=${GRUB_GFXMODE}
...
Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
600WPMPO
One more point that can be added:
In the file "05_debian_themeand as 06_custom_theme", we must look at the line which reads "use_bg=false"
You have to set the variable "use_bg=false" to true. i.e. use_bg=true
Ok, please do not use this option as it is not working. I was wrong in suggesting it. This even gave me an error when doing "sudo update grub".
More info is from drs305:
Quote:
Looking at the script, it appears that the "bg" value in line 14 (false) is reset to the background image value several lines later if the image exists and you are using GFXTERM. Since most users would be using gfxterm making this value "true" would bypass the subsequent section which designates where the bg image resides.
I apologise for any errors caused by this post.
-----------------------------------------------------
2 difficulties I'm facing:
However, I have not yet succeeded in making my Grub2 display a background image.
When I follow all the steps as mentioned under "5. Add a Splash Image", it does not give the "Found Debian image xxxxxxx" among the terminal outputs.The resulting Grub background is black.
Secondly, when I change the Grub resolution, it works fine, but after the boot selection menu, an error message blinks for a second which says something like "vga=792 is deprecated use set gfxpayload=1024x768x24;1024x768 before the linux command"
How do I correct this?
Please help gentlemen...
Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
600WPMPO
However, I have not yet succeeded in making my Grub2 display a background image.
When I follow all the steps as mentioned under "5. Add a Splash Image", it does not give the "Found Debian image xxxxxxx" among the terminal outputs.The resulting Grub background is black.
Secondly, when I change the Grub resolution, it works fine, but after the boot selection menu, an error message blinks for a second which says something like "vga=792 is deprecated use set gfxpayload=1024x768x24;1024x768 before the linux command"
The common problems I foresee if you are trying to use the grub2-splashimages is that they are not downloaded to the same folder looked at by G2 by default. If you aren't using the default G2 splash images, make sure the line in 05_debian_theme points to the correct location. Also make sure you have the "." following the graphic filename in the "for i ..." line.
If you cannot figure it out, post the 05_debian_theme line "for i" concerning splashimages (approximately line 15.
2. The vga message is because you probably have a "vga=XXX" in your /etc/default/grub settings. For setting the G2 menu resolution (only), use the GFXMODE lines. For setting the system resolution, apparently the vga= method isn't the preferred method any longer as these settings are made by the system as it boots.
Re: Grub 2 - 5 Common Tasks
Quote:
Originally Posted by
drs305
The common problems I foresee if you are trying to use the grub2-splashimages is that they are not downloaded to the same folder looked at by G2 by default. If you aren't using the default G2 splash images, make sure the line in 05_debian_theme points to the correct location. Also make sure you have the "." following the graphic filename in the "for i ..." line.
If you cannot figure it out, post the 05_debian_theme line "for i" concerning splashimages (approximately line 15.
Yes, I had checked it and made sure the files are in that folder only
I downloaded the splashimages from the Ubuntu repositories by
sudo apt-get install grub2-splashimages
This installed the splash image package at:
/usr/share/images/grub/
Since the code was:
Code:
for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/xxxxxxxx.{png,tga}
i copied the images to /usr/share/images/desktop-base
but this didn't help...
Quote:
Originally Posted by
drs305
The vga message is because you probably have a "vga=XXX" in your /etc/default/grub settings. For setting the G2 menu resolution (only), use the GFXMODE lines. For setting the system resolution, apparently the vga= method isn't the preferred method any longer as these settings are made by the system as it boots.
Ok, so now how do I correct this? Should I put a # before the "vga=XXX" in your /etc/default/grub file ? Will that work ?