如何更换plymouth bootscreen?

关于普利茅斯 –

有可用的替代启动屏幕吗?

更改启动屏幕最简单的方法是什么?

您可以通过Synaptic Package Manager或通过aptitude命令行获取可通过存储库获得的主题列表:

 $ aptitude search plymouth-theme p lubuntu-plymouth-theme - plymouth theme for Lubuntu p plymouth-theme-fade-in - graphical boot animation and logger - fade-in theme p plymouth-theme-glow - graphical boot animation and logger - glow theme i plymouth-theme-kubuntu-logo - graphical boot animation and logger - kubuntu-logo theme p plymouth-theme-sabily - plymouth theme for Sabily p plymouth-theme-script - graphical boot animation and logger - script theme p plymouth-theme-solar - graphical boot animation and logger - solar theme p plymouth-theme-spinfinity - graphical boot animation and logger - spinfinity theme p plymouth-theme-text - graphical boot animation and logger - text theme c plymouth-theme-ubuntu-logo - graphical boot animation and logger - ubuntu-logo theme i plymouth-theme-ubuntu-text - graphical boot animation and logger - ubuntu-logo theme p plymouth-theme-ubuntustudio - Ubuntu Studio Plymouth theme p xubuntu-plymouth-theme - Plymouth theme for Xubuntu 

然后,您可以正常通过Synaptic或aptitude安装生成的包:

 $ sudo aptitude install plymouth-theme-solar 

如果您正在寻找不在存储库中的东西, UbuntuGeek有一个关于如何安装和创建自己的定制Plymouth主题的优秀教程。

要在已安装的主题之间进行更改,您应该:

 sudo update-alternatives --config default.plymouth sudo update-initramfs -u 

第一个将列出可供选择的主题,第二个命令包含带有新主题的更新initramfs。

入门指南

编辑普利茅斯


您可以使用简单的文本编辑器编辑Plymouth以获取动画和图像。 这是Ubuntu版本无关。

原创到新

  • 获取模板
  • 自定义模板
  • 设置自定义主题

制作一个模板。

首先,您将获得一个涵盖普利茅斯所有基本方面的模板。 将my-theme更改为您自己的个人名称。

 sudo cp --recursive /lib/plymouth/themes/ubuntu-logo ~/themes/my-theme 

自定义文件名。

现在,您可以更改一些名称以帮助从其他人识别我们的主题。

 sudo mv ubuntu-logo.plymouth my-theme.plymouth sudo mv ubuntu-logo.script my-theme.script sudo mv ubuntu-logo.grub my-theme.grub sudo mv ubuntu_logo16.png my_theme16.png sudo mv ubuntu_logo.png my_theme.png 

编辑图像文件。

使用您选择的图像编辑器来更改png图像。 我喜欢GIMP进行快速编辑。

 gimp my_theme.png my_theme16.png gimp progress_dot_on.png progress_dot_off.png gimp progress_dot_on16.png progress_dot_off16.png 

以下是我的更改示例:

在此处输入图像描述在此处输入图像描述在此处输入图像描述在此处输入图像描述在此处输入图像描述在此处输入图像描述

编辑配置文件。

1)设置主题信息文件。

 gedit my-theme.plymouth 

编辑第2行,第7行和第8行,并将ubuntu徽标更改为主题名称。

 [Plymouth Theme] Name=My Theme Description=A theme that features a blank background with a logo. ModuleName=script [script] ImageDir=/lib/plymouth/themes/my-theme ScriptFile=/lib/plymouth/themes/my-theme/my-theme.script 

2)启动终端颜色。 (可选的)

 gedit my-theme.grub 

将它从紫色改为其他东西。

使用RGB颜色代码编辑第1行。

Color-Hex是一个很好的帮助您的网站。 我只是想让我变黑。

 if background_color 0,0,0; then clear fi 

3)应用主题更改的脚本文件。

 gedit my-theme.script 

此文件有许多不同的方面,您可以更改以自定义您的plymouth启动主题。 如果您想进行更高级的更改,您应该研究它。 我只是展示了如何更改背景颜色,徽标和状态指示器。

编辑第169,170,174180行以更改先前编辑的背景渐变和图像。

 Window.SetBackgroundTopColor (0.66, 0.66, 0.66); #top Window.SetBackgroundBottomColor (0.146, 0.146, 0.146); #bottom bits_per_pixel = Window.GetBitsPerPixel (); if (bits_per_pixel == 4) { logo_filename = "my_theme16.png"; progress_dot_off_filename = "progress_dot_off16.png"; progress_dot_on_filename = "progress_dot_on16.png"; password_field_filename = "password_field16.png"; question_field_filename = "password_field16.png"; } else { logo_filename = "my_theme.png"; progress_dot_off_filename = "progress_dot_off.png"; progress_dot_on_filename = "progress_dot_on.png"; password_field_filename = "password_field.png"; question_field_filename = "password_field.png"; } 

发送您的主题文件夹。

 cp --recursive ~/themes/my-theme /lib/plymouth/themes 

设置Plymouth配置以使用主题。

 sudo ln -sf /lib/plymouth/themes/my-theme/my-theme.plymouth /etc/alternatives/default.plymouth sudo ln -sf /lib/plymouth/themes/my-theme/my-theme.grub /etc/alternatives/default.plymouth.grub 

18.04+

 sudo update-initramfs -u 

重新启动以观察它的运行情况。

我遇到了同样的问题,我来到这里。 没运气。 我开始随机浏览普利茅斯框架,我注意到default.plymouth文件是一个链接文件。 每次我使用终端设置启动画面时,文件都会更新。 通过反复试验,我发现了这种方法。

在终端中,键入以下内容: gksu [file_explorer_name]

这将打开一个新窗口,具有root(超级用户)权限,可以编辑,删除和添加文件。 导航到/usr/share/plymouth/themes/ 。 这是您的主题所在的位置。 如果您的主题文件夹不在plymouth主题文件夹中,请移动它。 在您的主题文件夹中,找到.plymouth文件,然后在默认文本编辑器中打开它。 查看目录,确保它们准确并且是最新的。 保存并退出文本编辑器。 制作.plymouth文件的LINKED文件,并将其拖到themes文件夹(/ usr / share / plymouth / themes /)并将其重命名为default.plymouth您需要删除themes文件夹中的现有文件(如果有) 。 之后,您应该能够关闭窗口和终端,然后重新启动以测试配置。