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.
-
AuthorPosts
-
March 6, 2022 at 11:09 am #78597Member
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 attraversoApplicazioni preferite/centro di controllo/sessione/immagine del boot Grubma non riesco a fare di più.
Da riga di comando come potrei fare?- This topic was modified 1 year, 1 month ago by davidecaffe.
March 6, 2022 at 12:20 pm #78601Moderator
caprea
::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_themeFrom 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-grubDon’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.
March 6, 2022 at 12:53 pm #78604Memberdavidecaffe
::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:
March 6, 2022 at 1:09 pm #78606Moderator
caprea
March 6, 2022 at 1:39 pm #78609Memberdavidecaffe
::Ok fatto.
Ciao, alla prossima.- This reply was modified 1 year, 1 month ago by davidecaffe.
-
AuthorPosts
- You must be logged in to reply to this topic.
