Ubuntu下安装和配置Plymouth主题

来源:互联网 发布:flash制作动画软件 编辑:程序博客网 时间:2024/06/08 23:32

Zorin Splash Screen Manager是你安装,改变,删除plymouth主题的小工具

  除了提供以上功能外,它还允许你更改主题文本(文本模式的plymouth),另外它还有2大特色:

  1 查看你已经安装的plymouth主题

  2 不重启而查看plymouth主题的效果.方法:sudo plymouthd然后plymouth –show-splas,退出:sudo plymouth quit

点击查看原始图片

  具体使用方法:打开系统-系统管理- Splash Screen Manager,点击”安装”按钮,选择以tar.gz结尾的plymouth主题文件(可以在下载到合适的plymouth主题).然后您可以点击”改变默认的主题”按钮,选择.plymouth文件(不用担心,系统会自动打开plymouth所在的文件夹),这样您的改动就成功了

  Download Zorin Splash Screen Manager

  注:如果你的plymouth主题和私有的Nvidia/ATI显卡有冲突的话,你可以试试这个脚本 this script

Today i reinstalled my Ubuntu and after installing my video card it’s an ATI but the same issues happen with NVDIA to namely the boot screen loses it’s resolution. So i’w done some googling and found the solution on the ubuntu forums, and created a script based on that solution.

  So here’s the script you have to make it executable with the following command in console :

  chmod +x fixres.sh

  And you can start it like this :

  ./fixres.sh

  Hers the script :

  #!/bin/bash

  # ----------------------------------

  # Author: D0rkye

  # Homepage: http://d0rkye.zsenialis.com/

  # ----------------------------------

  sudo apt-get install v86d hwinfo -y

  sudo hwinfo --framebuffer

  echo "---------------------------------------------------------------"

  echo "Please enter the best resolution from the list above"

  echo "It usualy looks like this >>Mode 0x0323: 1024x768 (+4096), 24 bits<<"

  echo "And you have to enter it like this >>1024x768-24<<"

  echo "---------------------------------------------------------------"

  read resolution

  sed 's/GRUB\_CMDLINE\_LINUX\_DEFAULT\=\"quiet\ splash\"/GRUB\_CMDLINE\_LINUX\_DEFAULT\=\"quiet\ splash\ nomodeset\ video\=uvesafb\:mode\_option\='$resolution'\,mtrr\=3\,scroll\=ywrap\"/g' /etc/default/grub > ./newgrub

  sudo mv -f ./newgrub /etc/default/grub

  sed 's/\#GRUB\_GFXMODE\=640x480/GRUB\_GFXMODE\='$resolution'/g' /etc/default/grub > ./temp

  sudo mv -f ./newgrub /etc/default/grub

  sudo echo "uvesafb mode_option=$resolution mtrr=3 scroll=ywrap" >> /etc/initramfs-tools/modules

  echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash

  sudo update-grub2

  sudo update-initramfs -u

  echo "The resolution should be fixed afther a reboot"








2.安装plymouth
Debian默认的启动画面确实很酷,但是一行一行的文字滚动确实很丑陋,在美观程度上被ubutu击败。我决定装一个splash,让开机变得漂亮一点。
有两种splash的选择,一个是splashy,一个是plymouth。经过调查,splashy似乎有些过时,对KMS支持的不好。于是,我准备安装plymouth。
aptitude install plymouth plymouth-themes-all
安装以后,需要进行配置。
1)修改 /etc/initramfs-tools/modules 添加以下三行
intel_agp
drm
i915 modeset=1
如果使用的是nvidia或者ATI的显卡,设置会有所不同。参考/usr/share/doc/plymouth
2) 修改grub的配置文件
修改/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet" 修改为 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#GRUB_GFXMODE=""  修改为 GRUB_GFXMODE=1024x768

运行
update-grub2
使上面的修改生效
3) 选择、设定plymouth的主题
列出系统中的所有主题
/usr/sbin/plymouth-set-default-theme --list
设定主题
plymouth-set-default-theme solar
4) update-initramfs -u -k all


3.停掉不必要的服务,将gdm的优先级提高。
目前,系统中的服务有这些。gdm启动顺序从05提前到03。
S01udev
S02acpid
S02cron
S02cups
S02dbus
S02irqbalance
S02loadcpufreq
S02pcscd
S02vboxdrv
S03cpufrequtils
S03gdm
S03network-manager
S03pommed
S03pulseaudio
S03vboxballoonctrl-service
S05plymouth
S05rc.local



0 0