Готовые решения для многих вопросов, которые очень часто задаются снова и снова.
Модератор: Модераторы разделов
S7a1k3r
Сообщения: 159
Статус: Белгородский LUG
ОС: Arch Linux
Сообщение
S7a1k3r » 22.10.2006 20:34
Доброго времени суток!
Помогоите настроить фоновое изображение в GRUB.
Вродь все правильно сделал:
1 - создал в GIMP изображение 640х480 с 14 цветами
2 - Gzip'нул его, кинул в каталок /boot/grub/
3 - в menu.lst прописал splashimage=(hd0,4)/grub/image.xpm.gz (boot у меня отдельным разделом лежит - hd0,4)
Пререзагрузился и... НИЧЕГО...
хотя граб с патчем splashimage (взяты из генту)
Как быть?
Juliette
Сообщения: 5058
Статус: ROSA Lab
ОС: Ubuntu LTS, Mandriva 2011
Сообщение
Juliette » 22.10.2006 22:12
от сердца отрываю...
Код:
; Copyright © 2002, Mark A. Moss
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; * Redistributions of source code must retain the above copyright notice,
; this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the
; documentation and/or other materials provided with the distribution.
; * Neither this program nor the names of its contributors may be
; used to endorse or promote products derived from this software without
; specific prior written permission.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
; Send me an e-mail to moss7552@kettering.edu if you have any problems with this
; script.
(define (script-fu-grub-pixmap img drw filename)
(gimp-undo-push-group-start img)
(gimp-image-scale img 640 480)
(gimp-convert-indexed img 1 0 14 0 0 "")
(gimp-undo-push-group-end img)
(gimp-file-save 0 img drw filename filename)
)
(script-fu-register "script-fu-grub-pixmap"
"<Image>/File/Grub Boot Image..."
"Save this image in the format used by the Grand Unified
Boot Loader. (http://www.gnu.org/software/grub/)"
"Mark Moss"
""
"January 31, 2002"
"*"
SF-IMAGE "Input Image" 0
SF-DRAWABLE "Input Layer" 0
SF-FILENAME "Output File" "splash.xpm.gz"
)
этот скриптик кладёте в /usr/share/gimp/2.0/scripts
далее правый клик по желаемой картинке-->File-->Grub boot image
в принципе это можно застикать, время от времени возникает данный вопрос по сплашимеджу, а ни один из многочисленных рецептов у меня тоже не работал, пока этот скриптик не нашла (давно уже)
eduard_pustobaev
Сообщения: 2629
Статус: Ленивец
ОС: Arch/Debian.
Сообщение
eduard_pustobaev » 04.12.2006 22:25
to Juliette:
огромное спасибо.
В дисгармонии со вселенной.