[STAR vodic] GfxBoot

GregaS Član
Si želiš nekoliko polepšati svoj dolgočasen grub? Potem je tole pravi vodič za tebe!

opomba: Vodič ni moj ampak je samo prevod, vam pa zagotavljam da zadeva preverjeno dela.

Datoteke prenesi v svojo domačo mapo!
/home/uporabnisko_ime/


Tole so različne teme za GfxBoot:

Light Green generic theme [message.gobo] | Link | Screenshot
Dark Brown (Dapper look) generic theme [message.new] | Link | Screenshot
Dark grey ubuntu theme [message.ubugrey] | Link | Screenshot
Medium brown ubuntu theme [message.ububrown] | Link | Screenshot
Light orange ubuntu theme [message.ubu] | Link | Screenshot
Red ubuntu theme [message.new] | Link | Screenshot
Fuzzy blue and black ubuntu theme [message.bluspash] | Link | Screenshot
White / Grey Snowish generic theme [message.snow] | Link | Screenshot
Old- Grub style dark blue and light blue [message.kubu] | Link | Screenshot
Light blue / grey Xubuntu theme [message.xubu] | Link | Screenshot


- Potreboval boš eno od teh tem, zato kar takoj downloadaj temo, ki ti je najbolj všeč!
- Downloadaj tale paket: grub-gfxboot_0.97-5_i386.deb

1. Izbriši GRUB:
sudo apt-get remove grub
2. Namesti paket, ki si ga downloadal:
sudo dpkg -i grub-gfxboot_0.97-5_i386.deb
3. Kopiraj message.kubu v /boot/grub ali ime tiste teme, ki si jo downloadal...
sudo cp message.kubu /boot/grub/
4. Dodaj tole vrstico na začetek /boot/grub/menu.lst

gfxmenu /boot/grub/message.kubu

Če uporabljaš Kubuntu:
sudo kwrite /boot/grub/menu.lst
Ali če uporabljaš Ubuntu:
sudo gedit /boot/grub/menu.lst
Tako da začetek datoteke menu.lst izgleda nekako takole:
gfxmenu /boot/grub/message.kubu
# 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/.
5. Vnesi naslednje GRUB ukaze:
Uporabi sudo fdisk -l da izveš na kateri particiji imaš nameščen K/ubuntu.

Meni sudo fdisk -l izpiše tole:
Disk /dev/hdd: 4311 MB, 4311982080 bajtov
255 glav, 63 sektorjev/stezo, 524 stez
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdd1 * 1 498 4000153+ 83 Linux
/dev/hdd2 499 524 208845 5 Razširjen
/dev/hdd5 499 524 208813+ 82 Linux swap / Solaris
Torej imam sistem na particiji /dev/hdd1!

Vsaka vrstica je nov ukaz:
sudo grub-install /dev/hdd1

sudo grub

grub> find /boot/grub/stage1 ## Izpis bi moral izgledati nekako takole: (hdx,y) ... moj je (hd1,0)

grub> root (hd1,0) ## Ker je moj izpis za find /boot/grub/stage1 pokazal (hd1,0) sem tukaj vnesel te vrednosti. Tvoje vrednosti se lahko razlikujejo!

grub> setup (hd1,0) ## Tukaj vnesi enako kot zgoraj.

grub> quit
6. Ponovni zaženi računalnik in se čudi ob lepem izgledu GRUB-a :)

Nekateri uporabniki trdijo da lahko probleme povzroči če imate omogočene Pretty colors (od-komentirane). Če vam zadeva ne bo delovala, lahko poizkusite zakomentirati vrstico Pretty colors (#)

Komentarji

  • Naredu točno tako kot piše v vodiču, ampak grub je še vedno ostal isti. Bom jutri probal še enkrat.
  • christooss Član Ubuntu.si
    Grega s še v wiki prosim
  • GregaS Član
    uredil/-a 28. August, 2006
    cime si prepričan, da imaš v menu.lst tisto vrstico?

    edit: christooss zdele sem poskušal dat v wiki ampak sem tak antitalent da vse izgleda zelo grdo.
  • GregaS jp.
    cat /cime@cime-desktop:~$ cat /boot/grub/menu.lst
    gfxmenu /boot/grub/message.ububrown
    # 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/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 3

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=/dev/hda1 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,0)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery mode) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## ## End Default Options ##

    title Debian GNU/Linux, kernel 2.6.15-26-k7
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.15-26-k7 root=/dev/hda1 ro quiet splash
    initrd /boot/initrd.img-2.6.15-26-k7
    boot

    title Debian GNU/Linux, kernel 2.6.15-26-k7 (recovery mode)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.15-26-k7 root=/dev/hda1 ro single
    initrd /boot/initrd.img-2.6.15-26-k7
    boot

    title Debian GNU/Linux, kernel memtest86+
    root (hd0,0)
    kernel /boot/memtest86+.bin
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    Komaj zdaj vidim da tukaj za vse vnose piše Debian, meni pa v grubu piše Ubuntu če se ne motim. Grem še enkrat probat.
  • christooss Član Ubuntu.si
    Kar piše pod title ni važno glede kernela. To je samo za uporabnika da lažje vidi kater kernel bo naložil
  • Hmm... Baje tole na debianu ne dela, tko da če ma debian in ne ubuntu ne bo nič s tem vodičem.
  • christooss Član Ubuntu.si
    GregaS kaj pa če bi še ti grub postal da se lahko primerja
  • Če si mislu menu.lst potem je to to:
    gfxmenu /boot/grub/message.kubu
    # 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/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue
    splashimage (hd1,0)/boot/grub/splashimages/kgs.xpm.gz

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=/dev/hdd1 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd1,0)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery mode) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## ## End Default Options ##

    title Kubuntu 6.06 "Dapper Drake"
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hdd1 ro quiet splash
    initrd /boot/initrd.img-2.6.15-26-686
    savedefault
    boot

    title Kubuntu 6.06 (Varni zagon)
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hdd1 ro single
    initrd /boot/initrd.img-2.6.15-26-686
    boot

    #title Ubuntu, kernel 2.6.15-23-386
    #root (hd1,0)
    #kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdd1 ro quiet splash
    #initrd /boot/initrd.img-2.6.15-23-386
    #savedefault
    #boot
    #
    #title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
    #root (hd1,0)
    #kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdd1 ro single
    #initrd /boot/initrd.img-2.6.15-23-386
    #boot
    #
    title Kubuntu 6.06 (memtest86+)
    root (hd1,0)
    kernel /boot/memtest86+.bin
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Ostali operacijski sistemi:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hdc1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1
  • christooss Član Ubuntu.si
    # Pretty colours
    #color cyan/blue white/blue
    splashimage (hd1,0)/boot/grub/splashimages/kgs.xpm.gz



    ???
  • Ne ne, mam kar Ubuntu. Čudi me to da v menu.lst piše pod title Debian, a grub mi ob zagonu napiše Ubuntu.
  • christooss tist sm še pozabu zbrisat, ker sm mel prej drugačno ozadje na grub. Tista vrstica ni potrebna (ne vem kako to da je še nism pobrisu.)
  • Naredu tko k piše, lepo dela :)
Za komentiranje se prijavite ali pa se vpišite.