[RISOLTO] Come si cambia il colore ai testi di Grub?

Forum Forums General Other Languages Italian [RISOLTO] Come si cambia il colore ai testi di Grub?

  • This topic has 4 replies, 2 voices, and was last updated Mar 6-1:39 pm by davidecaffe.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #78597
    Member
    davidecaffe

      Buongiorno, come da titolo vorrei cambiare il colore del testo che c’è in Grub.
      Tramite interfaccia grafica ho già cambiato l’immagine del Grub attraverso

      Applicazioni preferite/centro di controllo/sessione/immagine del boot Grub

      ma non riesco a fare di più.
      Da riga di comando come potrei fare?

      • This topic was modified 1 year, 1 month ago by davidecaffe.
      #78601
      Moderator
      caprea
        Helpful
        Up
        0
        ::

        Hi davidecaffe, for changing the fonts colors on antiX21 you would have to edit the /etc/grub.d/05_debian_theme
        sudo geany /etc/grub.d/05_debian_theme

        From about line 129/130 on there is

        if [ -z "${2}" ] && [ -z "${3}" ]; then
        		echo "  true"
        fi
        echo "else"
        set_default_theme "  "
        echo "fi"

        We will add eg. these two lines

         echo "    set color_highlight=light-blue/black"
         echo "    set color_normal=light-green/black"

        Change it to

        if [ -z "${2}" ] && [ -z "${3}" ]; then
        		echo "  true"
                echo "    set color_highlight=light-blue/black"
                echo "    set color_normal=light-green/black"
        	fi
        	echo "else"
        	set_default_theme "  "
        	echo "fi"

        This will set the highlighted fonts to lightblue, the color after the slash/ should be black because this will be seen as transparent background. Your background picture will be seen still.
        The normal fonts will be set to lightgreen, background black, which means transparent.
        You have to update grub after this change.
        sudo update-grub

        Don’t forget it, or the changes wont take effect.

        Colors you can choose are light-blue, light-green, light-gray, light-magenta, light-red, magenta, red, white, yellow, cyan, dark-gray, green, light-cyan, black, blue, brown.
        black is transparent.

        Please be very careful and accurate. Remember this is grub and if everything really goes wrong you cant boot anymore.

        #78604
        Member
        davidecaffe
          Helpful
          Up
          0
          ::

          Grazie Caprea, un tentativo l’ho fatto acnhe io passando da quella cartella ma ho sbagliato qualcosa e allora ho cercato un’altra strada:
          sempre da /etc/grub.d ho aperto come root il file 41_custom e poi ho aggiunto due righe con i colori che volevo tra l righe “if e EOF” e ha funzionato.
          Nell’immagine si vede meglio.

          Questo argomento per me è risolto.

          Attachments:
          #78606
          Moderator
          caprea
            Helpful
            Up
            0
            ::

            Questa è anche una soluzione adeguata, cool, si prega di segnare [risolto] al titolo.

            #78609
            Member
            davidecaffe
              Helpful
              Up
              0
              ::

              Ok fatto.
              Ciao, alla prossima.

              • This reply was modified 1 year, 1 month ago by davidecaffe.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.