#1 Le 28/04/2010, à 17:29
- d10g3n
changer le splash "entre" Grub et Xsplash [Karmic]
Bonsoir à tous,
j'aurais aimé changer l'image de boot qui apparait juste après le choix dans grub, et avant le splash de chargement de X (celui avec une barre de progression). Cette image de boot consiste en un simple logo ubuntu, sans rien d'écrit, et sans barre de chargement.
Une idée de où se trouve cette image ?
Dernière modification par d10g3n (Le 28/04/2010, à 17:40)
Hors ligne
#2 Le 29/04/2010, à 12:53
- d10g3n
Re : changer le splash "entre" Grub et Xsplash [Karmic]
oki, ça s'appelle le Usplash. Cf:
http://ubuntuforums.org/showthread.php?t=1337381&highlight=splash
pour ceux que ça intéresse, je copie-colle la partie sur le usplash :
Creating a basic usplash theme
The first usplash theme to be created will be a very basic theme with a resolution of 640x480 pixels.
Launch GIMP and create a 640x480 image, or use the test image included in the downloaded tar file.
If this file is used, copy it to the my_usplash directory. In the terminal window, enter (/dir/ is the
directory where the tar file was extracted to):
cp /dir/usplash_640_480.png ~/Documents/my_usplash/
If an image was created with GIMP it must be saved as an indexed file with a maximum of 256 colors.
To do this, click on:
Image => Mode => Indexed
From the Indexed Color Conversion Dialog select Generate Optimum Palette and set the maximum
number of colors to 256. Click Convert and save the file as usplash_640_480.png in the my_usplash
directory.
Copy the theme definition file from the downloaded tar file to the my_usplash directory:
cp /dir/myusplashbasictheme.c ~/Documents/my_usplash/myusplashtheme.c
Convert the image to usplashreadable C code, enter:
pngtousplash usplash_640_480.png > usplash_640_480.c
Compile and link the theme (create the .so file):, enter:
gcc g Wall fPIC c usplash_640_480.c myusplashtheme.c
gcc g Wall fPIC shared usplash_640_480.o myusplashtheme.o o myusplash.so
Now add it to the list of alternatives:
sudo updatealternatives install /usr/lib/usplash/usplashartwork.so usplashartwork.so
~/Documents/my_usplash/myusplash.so 10
And finally, select it:
sudo updatealternatives config usplashartwork.so
Copy the usplashtest.sh file that's included in the downloaded tar file to the my_usplash directory:
sudo cp /dir/usplashtest.sh ~/Documents/my_usplash/
Test the new theme (press Super+F7 to return to the desktop):
sudo ./usplashtest.sh x 640 y 480
or, enter:
sudo usplash c x 640 y 480
Both does the same thing, but the script will come in handy later on.
Dernière modification par d10g3n (Le 29/04/2010, à 13:12)
Hors ligne