May 19, 2010

How To Create Simple Plymouth Theme

This tutorial will show you have to create simple plymouth theme for Ubuntu 10.04 or other Linux distribution that uses plymouth.

Just one note, this theme in wallpaper only. There is no animations.




Open terminal and type:

sudo mkdir /lib/plymouth/themes/simple

Find a wallpaper that you wan't to use. Make sure that wallpaper is PNG (.png) and name of wallpaper is wallpaper.png



Copy wallpaper to: /lib/plymouth/themes/simple/ (you need to be root to paste files in that folder).

Now in terminal type:

sudo gedit /lib/plymouth/themes/simple/simple.plymouth

and in gedit paste:

[Plymouth Theme]
Name=Simple
Description=Wallpaper only
ModuleName=script
[script]
ImageDir=/lib/plymouth/themes/simple
ScriptFile=/lib/plymouth/themes/simple/simple.script

Save it and close.

Run:

sudo gedit /lib/plymouth/themes/simple/simple.script

and in gedit paste:

wallpaper_image = Image(“wallpaper.png”);
screen_width = Window.GetWidth();
screen_height = Window.GetHeight();
resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
wallpaper_sprite = Sprite(resized_wallpaper_image);
wallpaper_sprite.SetZ(-100);

Save it and close.

Now run:

sudo update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/simple/simple.plymouth 100

and:
sudo update-alternatives --config default.plymouth


and select simple from list.

At end run:

sudo update-initramfs -u

And your done! Now when you restart you will see wallpaper as plymouth theme.

8 comments:

Anonymous said...

Thanks for the tips - unfortunately, try as I might, I just can’t get this to work. The splash screen just displays a simple text image (which I think is actually plymouth-themes-text) rather than the desired wallpaper.
I’ve tried various things including subsitituting the new simple script into the default ubuntu-logo folder and editing the script appropriately, but with no success.

Does anyone have an idea of what might be going wrong?

Anonymous said...

same for me too ;-(

Anonymous said...

yea, i can't get this to work either. must be missing something :(

Anonymous said...

try this instead: http://www.freedesktop.org/wiki/Software/Plymouth/Scripts

Anonymous said...

Same here, only text.

I tried following the information on the freedesktop link above but was unable to make it work.

pierocol said...

Same for me. I cannot get it to work

Gen X said...

How could I put in there an aimation in that? i would like to make some plymout, look at this, http://gnome-look.org/content/show.php/Fusion-GX-v00+%5B200911-21%5D?content=115833 something that I made

Anonymous said...

Doesn't work for me either Ubuntu 10.04

Post a Comment