Changing Grub and GDM images in Debian 7.x
Hi all,
I am trying to change the background for grub and the login screen in Debian 7.0. What steps do I need to take as the targets used by update-alternatives do not work like they did for 6.0? |
Instructions for changing the grub background are here:
https://help.ubuntu.com/community/Grub2/Displays I don't use gtk3 or GNOME so I don't know about the new gdm |
Hi
ideally you should edit your post and split off gdm and start a new post for that pls I will continue this post for grub only look at your settings you can edit with root powers for file=/etc/default/grub for lines # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' GRUB_GFXMODE=800x600 Now you probably have never pressed C for commmands at the grub menu stage? but all graphics cards in recent 10 years can handle 800x600 so (1) edit that size if you want smaller font screens so I like to use mtpaint to resize images to that resolution. so depending on your currrent image (target image) you want to display as non-root run mtpaint and check what your target image is. (3) once happy put that image with its correct image extension as per list .jpg|*.JPG|*.jpeg|*.png|*.PNG|*.tga|*.TGA under /boot/grub/background.<something> (4) as root run Code:
update-grub Code:
update-grub good luck |
For this I just looked at /boot/grub/grub.cfg to see
Code:
if background_image /usr/share/images/desktop-base/joy-grub.png; then |
jamison20000e
I am aware you are not the OP! However I suggest you read again my suggestion to use mtpaint as a non-root user. that is, if root powered gimp does not work, start mtpaint as a non-root user resize or rescale your target image to some size that matches your /etc/default/grub line for GRUB_GFXMODE then use root powers to copy that new file into /boot/grub saved as background.png (in your case png) ###### I believe the OP wants to choose his own image and not some existimg package image. I may be wrong cheers |
my mistake not TLTR but I only skimmed, plus I did just paste a new image over the old (+resize) an option for the OP+
|
Thanks guys - and yes I have looked through Grub options before and I'm fairly competent with uboot too :P
Aus9 - there are very limited options available inside of the default grub option. Image extensions and a file name are not present. The GRUB_GFXMODE directive is about the only one present actually. I did have a look at /boot/grub.grub.cfg and I found: Quote:
|
you can simply make a backup of /share/images/desktop-base/joy-grub.png if you ever want to undo and then paste a new image into it resizing selection to presumably 640 x 480 (what I did anyway) sure it's a hack but it works.
Edit\Add: p.s: most other changes to /boot/grub/grub.cfg should be done through /etc/grub.d/ and: Code:
update-grub |
Jamison,
I like to do things the right way and not hack my way through stuff like most advice on the forums these days. I'm highly into racing and I see this "honda tuner" mentality everywhere which results only in eventual and catastrophic problems. This is going to be distributed internally and as such - Aus9 showed professionalism... I appreciate your time; however, it is not a "good" solution to what I had asked. Here is how you do what I asked in my original post: Inside of /usr/share/desktop-base/grub_background.sh I found this: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
technically also a hack but fair enough although I think ones safer :D
|
If you read the /etc/grub.d/05_debian-theme you will find that the first place it looks of a background image for the grub screen menu is /boot/grub.
Simply putting a properly sized image there is all you need. As with any change to grub you need to run update-grub. As for the GDM log in screen background, this is controlled by; /etc/gdm3/greeter.gconf-defaults in Squeeze (Debian 6). It is the first line in the file. I believe that the location in the gdm3 directory has changed and the file name may be somewhat altered but the line is the same; Code:
#/desktop/gnome/background/picture_filename /usr/share/images/desktop-base/login.png I don't see how this is some weird hack any more than changing the default wallpaper. If your system is used on a network changing the default images seems to me to be the most sensible way of doing things. This is your system, the default images are place holders that make the system work when installed. They are not your images but they now belong to you. You can change them. |
Quote:
|
All times are GMT -5. The time now is 07:48 PM. |