(已解決)如何修改grub開機畫面 [論壇 - Ubuntu 與 KDE]
正在瀏覽:
1 名遊客
(已解決)如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2008/6/28 8:08 所屬群組:
已註冊使用者 等級: 5
HP : 0 / 118
![]() |
我的op是ezgox
為了修改grub開機畫面 我試過 1 sudo cp ***.png /boot/grub sudo update-grub 2 依照 grub2安裝仔南 <<<<設定開機影像 GRUB 2 的開機影像由 /etc/grub.d/05_debian_theme 所控制。以 root 身份開啟此檔案進行編輯。 找到以下行並編輯粗體部份,以你想要使用的 GRUB 2 開機影像路徑和名稱來取代: for i in {/boot/grub,/user/share/images/desktop-base}/moreblue-orbit-grub.{png,tga} ; do 在此項目中有些地方需要注意: GRUB 2 預設會在 /boot/grub 和 /usr/share/images/desktop-base 中尋找開機影像 grub2-splashimages 套件並非解壓縮至以上的兩個目錄中,而是在 /usr/share/images/grub 使用者必須在以下兩動作中擇一: 修改上面一行的目錄位置並指向正確的位置,或 將開機影像移動到上面所提到的兩個目錄之一。 欲加入 grub 目錄,讓項目看起來像這樣,然後改變檔名為在 /usr/share/images/grub 中欲使用的開機影像。 for i in {/boot/grub,/usr/share/images/desktop-base,/usr/share/images/grub}/moreblue-orbit-grub.{png,tga} ; do 檔名以句點結束(.)(/moreblue-orbit-grub.)>>>> 但結果都無效 ttz@ttz-System-Product-Name:~$ sudo update-grub [sudo] password for ttz: Generating grub.cfg ... Found background image: background.png Found linux image: /boot/vmlinuz-3.5.0-9-generic Found initrd image: /boot/initrd.img-3.5.0-9-generic Found memtest86+ image: /boot/memtest86+.bin Found Windows Vista (loader) on /dev/sda1 done 但結果都無效 開機沒畫面 只有文字 有沒有高手能幫忙指點 感恩您
2012/11/23 17:24
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
我的op是ezgox ezgox 有好幾個 版本 不知 你是使用 哪個版本 因爲 軟體套件 更新很快 一定要 提供 版本 才能給你 可行的建議 一樣 你參考網路上的文章 一定要注意 其適用版本
2012/11/23 18:44
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
poloshiao 寫到:我的op是ezgox ezgoX 使用 ubuntu 12.04LTS 的軟體來源
2012/11/23 19:37
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
ezgoX 使用 ubuntu 12.04LTS 的軟體來源 ubuntu 12.04LTS : 1. sudo dpkg -l | grep grub-pc grub-pc 1.99-21ubuntu3.5 grub-pc-bin 1.99-21ubuntu3.5 所以 是 1.99 版 這一篇 是 Grub 1.99 用 image 作爲 關鍵字 查詢 以下兩篇 版本一前一後 以此篇爲準 2. 請參考 這一篇 開機影像和佈景主題 這是 1.98 雖然稍有改變 但是改變不大 3. 請參考 這一篇 GNU GRUB Manual 2.00~rc1 用 image 作爲 關鍵字 查詢 4. 如果還有疑問 歡迎再貼文
2012/11/23 20:11
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2009/10/29 4:50 所屬群組:
已註冊使用者 等級: 41
HP : 203 / 1019
![]() |
在終端機輸入
sudo gedit /etc/default/grub 新增底下這一行 路徑跟檔名請換為你想要的 GRUB_BACKGROUND=/usr/share/backgrounds/Precise_Pangolin_by_Vlad_Gerasimov.jpg 然後在終端機輸入 sudo update-grub
2012/11/23 20:25
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
新增底下這一行 路徑跟檔名請換為你想要的 1. GRUB_BACKGROUND=/path/image Introduced in later versions of Grub 1.98, this setting allows the user to designate the location of a .png, .tga, or .jpg/.jpeg image to be used as a background image on the Grub screen. 支援 .png, .tga, or .jpg/.jpeg 三種格式 2. A separate post details how to use this capability and how to set the menu text and background colors. 這一篇 介紹 簡單 拖拉 就可以 改變 新的 Grub 開機選單 背景圖
2012/11/23 20:58
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2008/6/28 8:08 所屬群組:
已註冊使用者 等級: 5
HP : 0 / 118
![]() |
很奇怪 我修改 /etc/grub.d/05_debian_theme 檔案
# Set a monochromatic theme for Ubuntu. echo "${1}set menu_color_normal=green/black" echo "${1}set menu_color_highlight=black/light-gray" 存檔 我有執行 sudo update-grub 謂何開機畫面 線條及文字 仍然是白色
2012/11/26 13:09
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2008/6/28 8:08 所屬群組:
已註冊使用者 等級: 5
HP : 0 / 118
![]() |
修改05-debian-theme
set menu_color_normal=green/black set menu_color_highlight+red/green 均無效 但是 "green/black""green/red"下去 背景 圖不見 旦字行顏色可正常改 ttz30073007 寫到:
2012/11/26 16:36
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() 註冊日期:
2009/12/6 10:32 所屬群組:
已註冊使用者 等級: 71
HP : 1053 / 1756
![]() |
可能失敗原因:
the black is not a color but a code meaning "transparent". 成功的方法 參考 : (註: 你把下述的顏色 改改看) In /etc/grub.d/05_debian_theme, add the following lines (around line 105): #........................................ [if [ -z "${2}" ] && [ -z "${3}" ]; then echo " set color_normal=black/black" echo " set menu_color_normal=black/black" echo " set menu_color_highlight=blue/black" echo " true" fi echo "else" set_default_theme " " #......................................... Save the file and update-grub. 資料來源 Re: Why are my Grub 2 menu colors not applying #14
2012/11/27 10:54
|
||||||||||
![]() |
回覆: 如何修改grub開機畫面 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員二級
![]() ![]() 註冊日期:
2008/6/28 8:08 所屬群組:
已註冊使用者 等級: 5
HP : 0 / 118
![]() |
感恩前輩 終於解結
原來 我的 debian-theme檔案 少了 105行 [if [ -z "${2}" ] && [ -z "${3}" ]; then echo " set color_normal=black/black" echo " set menu_color_normal=black/black" echo " set menu_color_highlight=blue/black" echo " true" 改過之後 終於好了
2012/11/27 15:24
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.