如何更改 Ubuntu 普利茅斯启动屏幕的紫色背景颜色?

NES*_*NES 22 colors boot plymouth

我想将紫色普利茅斯靴子飞溅的背景颜色更改为另一种颜色,我该怎么做?

NES*_*NES 22

这很容易。

/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script使用编辑器打开文件并将以下两行更改为类似这样的内容

Window.SetBackgroundTopColor (0.0, 0.00, 0.0);     # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0.0, 0.00, 0.0);  # an equally nice colour on the bottom
Run Code Online (Sandbox Code Playgroud)

保存文件并运行以下命令。

sudo update-initramfs -u
Run Code Online (Sandbox Code Playgroud)

引导飞溅的背景现在应该是黑色而不是紫色。

请注意,在 Ubuntu 16.04 中,主题目录位置更改为/usr/share/plymouth/themes.

  • 请注意,在 16.04 中,themes 目录位置更改为:`/usr/share/plymouth/themes` (9认同)
  • http://www.colorhexa.com/4dbcff 对我找到我想要的颜色很有帮助。示例:rgb(0, 159, 255),以百分比表示 rgb(0%,62.4%,100%) 表示 ubuntu-logo.script 的 0.0、0.62、1.0。 (5认同)

小智 10

自 Ubuntu 16.04 以来,路径位置已更改。见下文

打开文件:

sudo nano /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script
Run Code Online (Sandbox Code Playgroud)

然后和以前一样,编辑这两行:

Window.SetBackgroundTopColor (0.0, 0.00, 0.0);     # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0.0, 0.00, 0.0);  # an equally nice colour on the bottom
Run Code Online (Sandbox Code Playgroud)

并运行:

sudo update-initramfs -u
Run Code Online (Sandbox Code Playgroud)