安装plymouth

1,安装plymouth
aptitude install plymouth
2,配置plymouth
/etc/initramfs-tools/modules
intel显卡配置添加如下字段:

# KMS
intel_agp
drm
i915 modeset=1

nvidIA显卡配置如下:

# KMS
drm
nouveau modeset=1

ati显卡配置如下:

# KMS
drm
radeon modeset=1

3,配置grub2

vi /etc/default/grub

搜索GRUB_GFXMODE这一字段,注释掉这一行,然后配置一个合适的分辨率,比如:
GRUB_GFXMODE=1024x768
你也可以配置颜色深度,如:
GRUB_GFXMODE=1024x576x32
接着搜索GRUB_CMDLINE_LINUX_DEFAULT这个字段,注释掉,然后新添加一行如下:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
之后更新grub2
update-grub2
4,修改主题:
执行下面的命令,查看当前已经安装的主题

/usr/sbin/plymouth-set-default-theme --list

设置主题:
[cc lang="/usr/sbin/plymouth-set-default-theme THEME"]
THEME为上一条指令显示的主题中的名字。
如果遇到下面的错误"/usr/lib/plymouth/script.so does not exist",安装plymouth-drm:
aptitude install plymouth-drm
然后再次执行上一条指令。
应用修改:
执行以下指令:
update-initramfs -u

如果这条指令提示缺少固件文件之类的错误,请执行下面代码:
apt-get install firmware-linux-nonfree
以上代码都是在确定显卡驱动支持modesetting的,如果不支持,可以参考下面的做法,在debian Squeeze系统上已经正确执行并且能够使用:
1,安装userspace daemon:
apt-get install v86d
2,载入uvesafb模块,并检查你的显卡支持的分辨率:

modprobe uvesafb
cat /sys/bus/platform/drivers/uvesafb/uvesafb.0/vbe_modes | sort

输出结果类似下面的内容:

320x200-8, 0x0130
320x200-16, 0x010e
320x200-32, 0x010f
320x240-8, 0x0134
320x240-16, 0x0135
320x240-32, 0x0136
320x400-8, 0x0131
320x400-16, 0x0132
320x400-32, 0x0133
640x400-8, 0x0100
640x400-16, 0x013d
640x400-32, 0x013e
640x480-8, 0x0101
640x480-16, 0x0111
640x480-32, 0x0112
800x600-8, 0x0103
800x600-16, 0x0114
800x600-32, 0x0115
1024x768-8, 0x0105
1024x768-16, 0x0117
1024x768-32, 0x0118
1280x1024-8, 0x0107
1280x1024-16, 0x011a
1280x1024-32, 0x011b
1600x1200-8, 0x0145
1600x1200-16, 0x0146
1600x1200-32, 0x014a

添加uvesafb模块到/etc/initramfs-tools/modules
echo -e "uvesafb\nvga16fb" >> /etc/initramfs-tools/modules

将uvesafb配置写入到/etc/modprobe.d/uvestafb
echo "options uvesafb mode_option=1024x768-16 mtrr=3 scroll=ywrap" > /etc/modprobe.d/uvestafb

修改/etc/default/grub中的GRUB_CMDLINE_LINUX_DEFAULT行为:
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset video=uvesafb:mode_option=1024x768-16,mtrr=3,scroll=ywrap quiet splash"

查看所有安装的主题:
plymouth-set-default-theme --list

配置主题:
plymouth-set-default-theme -R THEME

更新grub
update-grub

重新启动系统,应该就能够看到开机画面改了。

(rootGkali)-[~/桌面] -# apt upgrade 摘要: 升级:0、安装:0,卸载:0,不升级:0 有 3个软件包没有被完全安装或卸载。所需的空间:0 B / 2,467 MB 可用 是否继续?[Y/n]y 正在设置 initramfs-tools (0.147) ... update-initramfs: deferring update(trigger activated) 正在设置 plymouth (24.004.60-4) ... update-initramfs: Generating /boot/initrd.img-6.12.25-amd64E: /usr/share/initramfs-tools/hooks/plymouth.bak failed with return 1update-initramfs: failed for /boot/initrd.img-6.12.25-amd64 with 1.dpkg: 处理软件包 plymouth(-configure)时出错: 已安装 plymouth 软件包 post-installation 脚本 子进程返回错误状态1 dpkg:依赖关系问题使得 plymouth-label 的配置工作不能继续:plymouth-label 依赖于 plymouth (= 24.004.60-4);然而:软件包 plymouth 尚未配置。 dpkg:处理软件包 plymouth-label(-configure)时出错: 依赖关系问题 ﹣仍未被配置 正在处理用于 initramfs-tools (0.147)的触发器 update-initramfs: Generating /boot/initrd.img-6.12.25-amd64 E: /usr/share/initramfs-tools/hooks/plymouth.bak failed with return 1. update-initramfs: failed for /boot/initrd.img-6.12.25-amd64 with 1. dpkg:处理软件包 initramfs-tools(-configure)时出错: 已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态在处理时有错误发生: plymouth plymouth-label initramfs-tools Sub-process /usr/bin/dpkg returned an error code (1) 以上问题怎么解决,
最新发布
08-19
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 369 个软件包未被升级。 有 3 个软件包没有被完全安装或卸载。 解压缩后会消耗 0 B 的额外空间。 您希望继续执行吗? [Y/n] y 正在设置 initramfs-tools (0.142) ... update-initramfs: deferring update (trigger activated) 正在设置 plymouth (24.004.60-4) ... update-initramfs: Generating /boot/initrd.img-6.6.15-amd64 E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1. update-initramfs: failed for /boot/initrd.img-6.6.15-amd64 with 1. dpkg: 处理软件包 plymouth (--configure)时出错: 已安装 plymouth 软件包 post-installation 脚本 子进程返回错误状态 1 dpkg: 依赖关系问题使得 plymouth-label 的配置工作不能继续: plymouth-label 依赖于 plymouth (= 24.004.60-4);然而: 软件包 plymouth 尚未配置。 dpkg: 处理软件包 plymouth-label (--configure)时出错: 依赖关系问题 - 仍未被配置 正在处理用于 initramfs-tools (0.142) 的触发器 ... update-initramfs: Generating /boot/initrd.img-6.6.15-amd64 E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1. update-initramfs: failed for /boot/initrd.img-6.6.15-amd64 with 1. dpkg: 处理软件包 initramfs-tools (--configure)时出错: 已安装 initramfs-tools 软件包 post-installation 脚本 子进程返回错误状态 1 在处理时有错误发生: plymouth plymouth-label initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
06-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值