Jay*_*yan 3 themes plymouth software-installation
我已经使用命令安装了 plymouth
sudo apt install plymouth-x11
sudo update-alternatives --config default.plymouth
There are 2 choices for the alternative default.plymouth (providing /usr/share/plymouth/themes/default.plymouth).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 auto mode
1 /usr/share/plymouth/themes/bgrt/bgrt.plymouth 110 manual mode
2 /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth 100 manual mode
Press <enter> to keep the current choice[*], or type selection number:
appu@appu-try:~$ plymouth-set-default-theme space-sunrise -R
plymouth-set-default-theme: command not found
appu@appu-try:~$ plymouth-set-default-theme
plymouth-set-default-theme: command not found
Run Code Online (Sandbox Code Playgroud)
如何安装 plymouth 并摆脱错误消息并使其检测新主题?我使用Ubuntu 20.04。
命令plymouth-set-default-theme是 Debian 命令,在 Ubuntu 中未使用。Ubuntu 用于sudo update-alternatives --config default.plymouth设置默认的 Plymouth 主题。
您使用的任何 Plymouth 主题都需要安装到两个目录之一。您可以将它们安装在/lib/plymouth/themes或 中/usr/share/plymouth/themes。
将 Plymouth 主题安装到目录中后,您需要将该主题添加到default.plymouth. 要添加主题,请像这样添加:
sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/space-sunrise/space-sunrise.plymouth 100
Run Code Online (Sandbox Code Playgroud)
然后运行该--config选项,以便可以选择新的 Plymouth 主题:
sudo update-alternatives --config default.plymouth
Run Code Online (Sandbox Code Playgroud)
现在您应该看到新主题并且可以选择它:
sudo update-alternatives --config default.plymouth
There are 4 choices for the alternative default.plymouth (providing /usr/share/plymouth/themes/default.plymouth).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/share/plymouth/themes/xubuntu-logo/xubuntu-logo.plymouth 150 auto mode
* 1 /usr/share/plymouth/themes/Chicago95/Chicago95.plymouth 80 manual mode
2 /usr/share/plymouth/themes/RetroTux/RetroTux.plymouth 70 manual mode
3 /usr/share/plymouth/themes/space-sunrise/space-sunrise.plymouth 100 manual mode
4 /usr/share/plymouth/themes/xubuntu-logo/xubuntu-logo.plymouth 150 manual mode
Press <enter> to keep the current choice[*], or type selection number: 3
Run Code Online (Sandbox Code Playgroud)
选择后,您现在应该更新 initramfs:
sudo update-initramfs -u
Run Code Online (Sandbox Code Playgroud)
由于您已经安装了该plymouth-x11软件包,您可以使用以下命令测试新的 Plymouth,该命令将向您显示 10 秒钟。(根据普利茅斯主题,它可能不会显示任何动画)。
sudo plymouthd ; sudo plymouth --show-splash ; sleep 10 ; sudo killall plymouthd
Run Code Online (Sandbox Code Playgroud)
重新启动系统即可看到新的更改。
希望这可以帮助!
| 归档时间: |
|
| 查看次数: |
8283 次 |
| 最近记录: |