Announcement

Collapse
No announcement yet.

Changing GRUB theme

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing GRUB theme

    Hi,
    I have bad eyes and the default Kubuntu GRUB theme text is too small for me - very uncomfortable especially for dual-boot machines. Is it possible to easily change it? I also have OpenSuSe 12.2 on other computer and the GRUB theme is much better - nice green colors and easily readable text. I would like to change at least the used font and size and if possible, changing color scheme would be also nice (or simply use other theme if there is something available).

    I have no problem to change the LightDM or Plymouth theme, but not the GRUB one.

    thanks
    Dell Latitude E5510, Intel i3, Kubuntu 16.04 Xenial Xerus (LTS)

    #2
    Grub2

    Ubuntu Community Grub howto: https://help.ubuntu.com/community/Grub2

    There is a Grub2 config module for the KDE - home: http://sourceforge.net/projects/kcm-grub2/

    Package name is kde-config-grub2: http://packages.ubuntu.com/search?ke...ll&section=all


    Manual way

    This is only a way - there are other ways to do this.

    Start point:



    Changing the background image and the font color

    1) Making a directory:
    Code:
    sudo mkdir -p /usr/share/desktop-base/

    2) Adding there a file to set the background and the font colors:
    Code:
    kdesudo kate /usr/share/desktop-base/grub_background.sh
    The file:
    Code:
    WALLPAPER="/lib/plymouth/themes/kubuntu-logo/background.png"
    COLOR_NORMAL="white/black"
    COLOR_HIGHLIGHT="green/black"
    Using the plymouth background as the Grunb background.

    COLOR_NORMAL
    The first color is the text color (white); the second is the background color (black=transparent).

    COLOR_HIGHLIGHT
    The first color is the highlighted text color; the second is the background color of the selected line. If black is the second entry, the highlighted line will be transparent and only the text will change color.

    3) Updating the grub:
    Code:
    sudo update-grub
    4) Rebooting

    The result:




    The font and the font size

    man grub-mkfont
    Code:
    NAME
           grub-mkfont - make GRUB font files
    
    SYNOPSIS
           grub-mkfont [OPTIONS] FONT_FILES
    
    OPTIONS
           -o, --output=FILE_NAME
                  set output file name
    ...
           -s, --size=N
                  set font size
    ...
    1) Making a font directory:
    Code:
    sudo mkdir -p /boot/grub/my-font/
    2) Adding there a new font:
    Code:
    sudo grub-mkfont -s 18 -o /boot/grub/my-font/grub2font.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
    3) Adding the new font to the grub config:
    Code:
    kdesudo kate /etc/default/grub
    Adding there a line - path to the font
    Code:
    GRUB_FONT=/boot/grub/my-font/grub2font.pf2
    4) Updating the grub:
    Code:
    sudo update-grub
    5) Rebooting

    The result:



    More links

    - http://askubuntu.com/questions/11846...ault-grub-font
    Last edited by Rog131; Mar 11, 2013, 10:44 AM.
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      @ Juhele: Install the «kde-config-grub2» through Muon or over the console You then can do all personalisation as you like in a graphic interface. You will find it after installation in the Systems setup, System configuration (the booom chapter) and there double click on Start and Close down. (Sorry, I have a German Kubuntu, so in English the terms might be slightly different.)
      Good luck.

      @ Rog131: People who have difficulty to read do NOT need background pictures and preferably dark letters on light colours. As to your tutorial for setup, I would ask, why so complicated, when the installation of the package is so easy, certainly when you already mentioned it.
      Greetings from Scotland's best holiday island – The Isle of Arran
      I keep fighting for an independent Scotland without any nuclear weapons. If the Englanders want them, they can host them. We do not.

      Comment


        #4
        @ Rog131: People who have difficulty to read do NOT need background pictures and preferably dark letters on light colours. As to your tutorial for setup, I would ask, why so complicated, when the installation of the package is so easy, certainly when you already mentioned it.
        It is an example - it is not the example. The background can be one color picture (suse green ? "nice green colors and easily readable text. ").




        The gui could work or not - I tried the kde-config-grub2 with the Quantal/VirtualBox and the result was:



        I try to give advices that are/were working at here - they may or may not work there or you may not like them.

        Juhele:
        ...I would like to change at least the used font and size and if possible...
        By my knowlodge the kde-config-grub2 has the color and the background settings - no font settings. You need to convert the wanted font with the correct size and tell the Grub that you to want to use that font.




        The kde-config-grub2 is one example of the Grub setting gui. There are/has been other examples for the KDE/Gnome Grub config gui's.
        Last edited by Rog131; Mar 12, 2013, 03:52 AM.
        Before you edit, BACKUP !

        Why there are dead links ?
        1. Thread: Please explain how to access old kubuntu forum posts
        2. Thread: Lost Information

        Comment


          #5
          In your first example you are comparing an aircraft carrier with a Cessna. (Susi representing the carrier.)

          The font would be changed in the general font settings, as the console can only use a limited number of fonts.

          Else, you may be right or not, but in my opinion such extensive workings for a little – however important – effect support the old prejudice of Windows or Apple users that Linux is a console OS. So, if there is a gui way, I prefer advising this.
          Greetings from Scotland's best holiday island – The Isle of Arran
          I keep fighting for an independent Scotland without any nuclear weapons. If the Englanders want them, they can host them. We do not.

          Comment


            #6
            Hi,
            thanks very much for such a detailed feedback guys. I tried kde-config-grub2 but as mentioned above, it is not able to change the fonts. So I am going to study a little bit all the advices you gave me and will make it the manual way. I could probably create a new them and later release via Opendesktop.org so that also other people with similar problem could enjoy it. :-)

            Rog131: I have a small OT question - which tool do you use to create those nice screenshots with shadows etc.? thanks
            Dell Latitude E5510, Intel i3, Kubuntu 16.04 Xenial Xerus (LTS)

            Comment


              #7
              Originally posted by Arran View Post
              The font would be changed in the general font settings, as the console can only use a limited number of fonts.
              Hm,
              in such case, the font should be much bigger according to my settings. I have the same set in system font settings.

              Dell Latitude E5510, Intel i3, Kubuntu 16.04 Xenial Xerus (LTS)

              Comment


                #8
                Hi,
                I tried to play a little bit with custom fonts etc. but finally there was much easier solution - following some article I found a notice about Aero GRUB Theme, which looked very nice:

                Click image for larger version

Name:	150824-1.jpg
Views:	1
Size:	14.7 KB
ID:	640293

                I installed it simply using the attached script and after reboot I had a nice theme and also big and bold text there. The theme is slightly distorted on my wide screen, but this is a minor issue for me.
                Dell Latitude E5510, Intel i3, Kubuntu 16.04 Xenial Xerus (LTS)

                Comment


                  #9
                  I personally use BURG. In my case I sue the Kubuntu-EOS theme so I just see icons. This might be soemthing you are interested in.

                  Preview:
                  http://kde-look.org/CONTENT/content-pre1/134584-1.png
                  OS: Kubuntu 12.10/Windows 8
                  CPU: Intel Core i7 2600K
                  Motherboard: Gigabyte GA-Z77X-UD5H
                  Memory: 2x4GB Corsair Dominator
                  Graphics Card: MSI R7770
                  Monitor: Dell 2208WFP
                  Mouse: Mionix NAOS 5000
                  PSU: Corsair 520HX
                  Case: Thermaltake Mozart TX
                  Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                  Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                  Comment


                    #10
                    My thanks to everyone who responded, I decided to try first for this kde-config-grub2 program although I noticed the caution that it has no font settings. I downloaded it, unzipped it and tried to follow the instructions :

                    Enter the directory where you extracted the source code and run:

                    $ mkdir build
                    $ cd build
                    $ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
                    $ make
                    $ sudo make install

                    You may then find the GRUB2 KCModule under "Startup and Shutdown" in System Settings.

                    .................

                    But at that third line I have tripped over the = sign :

                    keith@Tsunami:~/GrubConfiguring/build$ cmake .. -DCMAKE_INSTALL_PREFIX='kde-config --prefix'
                    CMake Error:
                    The path to the source directory:

                    /home/keith/GrubConfiguring/build/.. -DCMAKE_INSTALL_PREFIX=kde-config --prefix

                    contains unsupported character '='.

                    Please use a different source directory name.

                    ...................

                    So I tried some variations but all stalled :

                    keith@Tsunami:~/GrubConfiguring/build$ cmake .. -DCMAKE_INSTALL_PREFIX = 'kde-config --prefix'
                    CMake Error: The source directory "/home/keith/GrubConfiguring/build/kde-config --prefix" does not exist.

                    I am obviously missing something - could anyone point it out for me?

                    (Thank you again)

                    Comment


                      #11
                      why are you trying to compile it when you can just install it with muon ,,,,,or apt-get.

                      Code:
                      sudo apt-get install kde-config-grub2
                      should do it nicely

                      VINNY
                      i7 4core HT 8MB L3 2.9GHz
                      16GB RAM
                      Nvidia GTX 860M 4GB RAM 1152 cuda cores

                      Comment


                        #12
                        Ignorance, I regret to say. :-(= (But I am learning, albeit slowly.) Your method did work (thank you) and the package ran but indeed apparently does not include a font option. I will look for the Aero GRUB Theme and the BURG that have been mentioned, but I think I have already tried the 'general font settings' if those are what appear in System Settings.

                        Comment


                          #13
                          > I personally use BURG. In my case I sue the Kubuntu-EOS theme so I just see icons. This might be soemthing you are interested in.

                          > Preview: http://kde-look.org/CONTENT/content-pre1/134584-1.png

                          Found that png and am interested but how do I get back from that to the BURG you mention? (Tried searching just on BURG and got sent all over the place.)

                          Comment


                            #14
                            I finally managed it! For the benefit of anyone following on behind, this is what I did :

                            sudo mkdir -p /boot/grub/myfont/
                            sudo grub-mkfont -s 18 -o /boot/grub/my-font/grub2font.pf2
                            sudo kate /etc/default/grub

                            System jibbed at that last line, so :

                            cp grub grubold (to give me a backup)
                            cp /etc/default/grub /tmp

                            Then moved to Kate and via that manually added two lines to that /tmp/grub file :

                            # Endeavouring to increase the font size
                            GRUB_FONT=/boot/grub/my-font/grub2font.pf2

                            Back into Konsole and :
                            cp /tmp/grub /etc/default/grub
                            sudo update-grub

                            Then restarted the system and that opening screen was wonderfully improved.

                            I deduce therefore that I now have in that grub2font.pf2 file an entry saying font=18 and that that is being picked up by grub when it loads? So that if I wished to make further changes I could do so by editing that file? But it opens only partially via Kate and an online search for the .pf2 suffix yielded information on only Picture Style Editor and SmartWare - both Windows so I assume not useful to me. Is there any software that I could use to edit grub2font.pf2, please?

                            Comment


                              #15
                              kate is a graphical application, and you should avoid launching graphical apps with sudo. In this instance, if you had instead run kdesudo kate /etc/default/grub all would have been fine.

                              No matter, you resolved your issue, so congrats!
                              Using Kubuntu Linux since March 23, 2007
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X