[SOLVED] Changing Grub and GDM images in Debian 7.x
DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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'
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
(4) as root run
Generating grub.cfg ...
Found background image: background.jpeg
Found linux image: /boot/vmlinuz-3.11-3.dmz.2-liquorix-686
Found initrd image: /boot/initrd.img-3.11-3.dmz.2-liquorix-686
For this I just looked at /boot/grub/grub.cfg to see
if background_image /usr/share/images/desktop-base/joy-grub.png; then
now the tricky part as 'sudo gimp' doesn't seem to work for me but I did not try until wanting to post this as my file-manager Dolphin has a plug-in for root actions so used that to open /usr/share/images/desktop-base/joy-grub.png in the Gimp and pasted over it
Last edited by jamison20000e; 10-23-2013 at 09:34 PM.
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:
### BEGIN /etc/grub.d/05_debian_theme ###
search --no-floppy --fs-uuid --set=root 8e847c59-3d1e-4214-8f8b-e986994a6047
if background_image /share/images/desktop-base/joy-grub.png; then
### END /etc/grub.d/05_debian_theme ###
This appears to be suggesting that the default may not be the place where certain directives are stored. I kind of don't want to just overwrite the images with a replacement.
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:
Last edited by jamison20000e; 10-24-2013 at 12:28 PM.
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:
If you want to change the lock screen image/background you have to create a file called: /usr/share/images/desktop-base/lockscreen.xml Inside of it add the following (adjusted for your background) && Note: You may have several images and sizes defined here.
Uncomment that line and put in any path you want or change the default image "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.