歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 如何在系統啟動時顯示 GRUB menu 的 Splash Image

如何在系統啟動時顯示 GRUB menu 的 Splash Image

日期:2017/2/27 14:18:04   编辑:更多Linux
  [1] 首先需要安裝一個工具,可以把普通的圖片轉換為grub可以支持的格式: sudo apt-get install imagemagick [2] 然後轉換圖片的文件格式,以便讓grub支持,假設此時需要轉換的圖片文件名為splash.png convert -resize 640x480 -colors 14 splash.png splashimage.XPm && gzip splash.xpm [3] 現在還要做一些准備工作,把圖片的權限設置一下,然後放入相應的文件夾中 chmod 644 splash.xpm.gz sudo mkdir /boot/grub/images sudo cp splash.xpm.gz /boot/grub/images/ [4] 文件准備好了,現在需要修改grub的某些參數設置,以便讓grub支持SplashImage sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst 找到這段文字: # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ... 把 splashimage (hd0,1)/boot/grub/images/splash.xpm.gz 加在找到的文字的後面。 注意:前面的(hd0,1)代表你的Linux起動分區,並不是每個人都是一樣,如果你不知道你的具體應該怎麼寫,可以查看menu.lst文件,裡面列舉的比較詳細。




Copyright © Linux教程網 All Rights Reserved