How to change boot splash screen on Ubuntu or Linux Mint

When you power up your Ubuntu/Mint desktop and the boot procedure gets started in the background, you see a nice graphical animation appear in the screen. This initial bootscreen is rendered by software called Plymouth, which uses the kernel’s Direct Rendering Manager (DRM) and Kernel Mode Setting (KMS) driver to show graphical animation with the native resolution of the display.