歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Ubuntu 12.04下添加開機畫面

在Ubuntu 12.04下添加開機畫面

日期:2017/2/28 15:51:07   编辑:Linux教程

經過一天的努力,嘗試過各種方法,終於在Ubuntu 12.04下成功地添加了開機圖片。總結起來,並不像網上好多人說的那樣繁瑣,可能也是可行的方法,本人也嘗試過都沒有成功,也許是自己的能力有限,現在向大家推薦一種簡單的方法,如下:

在終端中輸入下面的命令:

sudo gedit /usr/lib/grub/grub-mkconfig_lib

打開文件grub-mkconfig_lib 後,在文件最後的位置添加以下代碼:

# this allows desktop-base to override our settings

f=/usr/share/desktop-base/grub_background.sh

if test -e ${f} ; then

source ${f}

else

WALLPAPER="/boot/desktop.png"

COLOR_NORMAL="black/white"

COLOR_HIGHLIGHT="magenta/green"

fi

這裡會自動搜索背景圖片,

然後在終端中輸入命令:

sudo update-grub

會出現如下:

Generating grub.cfg ...

Found background image: desktop.png

......

再重啟,漂亮的背景圖片就會出現了。如下圖:

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved