CentOS 修改開機畫面
來自: http://my.oschina.net/firxiao/blog/608132
一、修改開機畫面為圖片
1、首先找一張png格式的照片放到/root目錄(本文中圖片名為800.png)
2、安裝 plymouth
yum install plymouth-plugin-script
3、配置plymouth
創建一個叫tup的主題
mkdir /usr/share/plymouth/themes/tup
把png文件復制到創建的主題文件夾中
cp /root/800.png /usr/share/plymouth/themes/tup
創建配置文件
vim /usr/share/plymouth/themes/tup/tup.plymouth
粘帖以下內容
[Plymouth Theme] Name=Tup Description=The Urban Penguin ModuleName=script [script] ImageDir=/usr/share/plymouth/themes/tup ScriptFile=/usr/share/plymouth/themes/tup/tup.script
創建配置文件
vim /usr/share/plymouth/themes/tup/tup.script
粘帖以下內容
wallpaper_image = Image("800.png"); screen_width = Window.GetWidth(); screen_height = Window.GetHeight(); resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height); wallpaper_sprite = Sprite(resized_wallpaper_image); wallpaper_sprite.SetZ(-100);
以上配置完畢后執行
plymouth-set-default-theme -R tup
4.重啟
然后你就會發現開機畫面是剛才的圖片啦
5.恢復原始啟動界面執行
plymouth-set-default-theme -R text
參考: http://theurbanpenguin.com/wp/index.php/branding-your-centos-boot-splash-screen/
本文由用戶 ShaJ46 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!