
Image to grub2
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Funciones:
"Wallpaper-en-grub": Rastreará su imagen de fondo de escritorio, y la pondrá como imagen en el cargador de arranque de grub2.
"Seleccionar-imagen": Abre el diálogo de selección de archivos, y debe navegar hasta la imagen que desea poner como imagen del grub2
"Ésta-imagen-en-grub": Pondrá la imagen que tenga seleccionada en nautilus, como imagen del grub2.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Debes ejecutar "imagen-grub" con doble clic.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ejecuta install.sh, o debes reemplazar /pc/ en los comandos por tu nombre de usuario, puedes hacerlo con estos dos comandos.
Sin ser usuario root!
sed -i 's|/pc/|/'`whoami`'/|' */image-to-grub/setup.sh
sed -i 's| pc| '`whoami`'|' */image-to-grub/setup.sh
install.sh también copiará los scripts a ~/.gnome2/nautilus-scripts
Debes tener los script, en la misma carpeta, y puedes renombrar la carpeta si deseas, por ej. con un punto . delante , para que sea un archivo invisible, y puedes moverla a donde desees.
Para usarlo en nautilus-scripts:
cd */image-to-grub
cp ./setup.sh ~/.gnome2/nautilus-scripts/.setup-image-grub.sh
cp ./imagen-grub ~/.gnome2/nautilus-scripts
Reemplace setup.sh, por .setup-image-grub.sh en el archivo: image-grub, con éste comando.
sed -i 's|setup.sh|.setup-image-grub.sh|' ~/.gnome2/nautilus-scripts/imagen-grub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Desmarca el comando de la linea 8 "# eog" (borrar "# "). Para ver en el visor de imágenes la imagen que tienes en uso en el grub, antes de cambiarla.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Si deseas eliminar el wallpaper del grub puedes ejecutar éste comando
sudo rm /boot/grub/image-background.jpg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eres libre de modificarlo y redistribuirlo.
por Rodrigo Esteves baitsart@gmail.com www.youtube.com/user/baitsart
Disfrútalo !!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENGLISH
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Functions:
"Wallpaper-in-grub" will found your desktop background image, and put the image in grub2 bootloader.
"Select-an-image": Opens the file selection dialog, and must navigate to the image you want to put the image of grub2
"This-image-in-grub" will put the image you have selected in nautilus, as image of grub2.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You must run "image-grub" double click.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run install.sh, or must replace /pc/ in commands by your username, you can do with these two commands.
Without being root!
sed -i 's|/pc/|/'`whoami`'/|' */image-to-grub/setup.sh
sed -i 's| pc| '`whoami`'|' */image-to-grub/setup.sh
install.sh also copy the scripts to ~/.gnome2/nautilus-scripts
You must have the scripts in the same folder, you can rename the folder if you wish, for example with a dot . front, to be an invisible file, and you can move it anywhere you want.
For use in nautilus-scripts:
cd */image-to-grub
cp ./setup.sh ~/.gnome2/nautilus-scripts/.setup-image-grub.sh
cp ./imagen-grub ~/.gnome2/nautilus-scripts
Replace setup.sh for .setup-image-grub.sh in the file: image-grub with this command.
sed -i 's|setup.sh|.setup-image-grub.sh|' ~/.gnome2/nautilus-scripts/imagen-grub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Uncheck the command line 8 "# eog" (remove "#"). To see in the image viewer the image you have in use in the grub, before changing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you want to remove the grub wallpaper you can run this command
sudo rm/boot/grub/image-background.jpg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are free to modify and redistribute.
by Rodrigo Esteves baitsart@gmail.com www.youtube.com/user/baitsart
Enjoy it!
WalentyWalewski
7 years ago
Report
baitsart
7 years ago
Report