如何更改Ubuntu plymouth启动画面的紫色背景颜色?

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

这很简单。

使用编辑器打开文件/lib/plymouth/themes/ubuntu-logo/ubuntu-logo.script并更改以下2行,可以找到类似这样的内容

 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 

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

 sudo update-initramfs -u 

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

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

自Ubuntu 16.04以来,路径位置发生了变化。 见下文

要打开文件:

 sudo nano /usr/share/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 

并运行:

 sudo update-initramfs -u 

如果您更喜欢使用GUI,那么请使用Plymouth Manager 。 它应该非常简单,它可以让你制作一个自定义主题或选择其中一个。

Interesting Posts