Monday, 9 November 2026

QQQ


sudo apt update
sudo apt install plymouth-themes 


sudo nano /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

sudo update-alternatives --config default.plymouth

sudo update-initramfs -u
sudo update-grub


sudo mkdir -p /usr/share/plymouth/themes/knoppix-tux



  1. sudo nano /usr/share/plymouth/themes/knoppix-tux/knoppix-tux.plymouth
    







ini
[Plymouth Theme]
Name=Knoppix Tux Center
Description=A custom boot screen featuring a centered Tux penguin.
ModuleName=script

[script]
ImageDir=/usr/share/plymouth/themes/knoppix-tux
ScriptFile=/usr/share/plymouth/themes/knoppix-tux/knoppix-tux.script



  1. sudo nano /usr/share/plymouth/themes/knoppix-tux/knoppix-tux.script
    
    :
  2. graphic
    # Load the Tux image
    tux_image = Image("tux.png");
    tux_sprite = Sprite(tux_image);
    
    # Calculate the exact center of the screen
    screen_width = Window.GetWidth();
    screen_height = Window.GetHeight();
    
    image_width = tux_image.GetWidth();
    image_height = tux_image.GetHeight();
    
    # Math to center the sprite
    tux_x = (screen_width / 2) - (image_width / 2);
    tux_y = (screen_height / 2) - (image_height / 2);
    
    # Apply the coordinates and make it visible
    tux_sprite.SetX(tux_x);
    tux_sprite.SetY(tux_y);
    tux_sprite.SetOpacity(1.0);
    



sudo cp ~/Downloads/tux.png /usr/share/plymouth/themes/knoppix-tux/


Register and Activate the Theme

  1. sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/knoppix-tux/knoppix-tux.plymouth 100
    



  2. Select the theme:
  3. sudo update-alternatives --config default.plymouth

    Look at the terminal output. Type the number corresponding to your new knoppix-tux theme and hit Enter.

  1. Verify GRUB Settings:
    Ensure the default graphical arguments are restored. Open your GRUB file:
    bash
    sudo nano /etc/default/grub
    

    Make sure this line contains both quiet and splash:
    bash
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    



Build the Changes Into the System
Because Plymouth runs before your actual operating system files mount, you must bake this theme into the system's temporary boot image (initramfs).
Run these final commands to compile the theme and update the boot menu:

sudo update-initramfs -u
sudo update-grub


Test it Without Rebooting (Optional)


sudo plymouthd; sudo plymouth --show-splash; sleep 5; sudo plymouth quit

Note: If this command opens a black window, it is usually because the plymouthd daemon is already running or your display server is blocking it. Don't worry—the ultimate test is a quick system reboot:

 reboot

The Result
When Zorin OS 18 boots up, your modern layout will disappear, and a beautifully centered, high-resolution Tux penguin will sit right in the middle of your display until the desktop login screen loads!



No comments:

Post a Comment