Senin, 11 Maret 2013

on Leave a Comment

EDITING GRUB BACKTRACK 5 "KDE" MENJADI SIMPLE


Dipostingan kali ini saya akan berbagi cara bagaimana untuk editing grub di backtrack 5 “KDE” supaya lebih simple atau tanpa embel-embel memory test,dll seperti gambar dibawah ini.
Oke langsung saja, yang pertama buka terminal pada becktrack anda setelah itu masukkan command ini nano /boot/grub/grub.cfg
Setelah kalian masukkan command diatas pasti akan muncul script yang panjang seperti dibawah ini:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
unction recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
insmod png
if background_image /usr/share/grub/anonymous.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=white/black
 set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 3.2.6' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,2)'
        search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
        linux   /boot/vmlinuz-3.2.6 root=UUID=08f444ba-298a-48b6-8f19-d1ec40d5de60 ro   text splash vga=791
        initrd  /boot/initrd.img-3.2.6
}
menuentry 'Ubuntu, with Linux 3.2.6 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
        insmod ext2
        set root='(hd0,2)'
        search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
        echo    'Loading Linux 3.2.6 ...'
        linux   /boot/vmlinuz-3.2.6 root=UUID=08f444ba-298a-48b6-8f19-d1ec40d5de60 ro single
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.2.6
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        insmod ext2
set root='(hd0,2)'
        search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
        linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd0,2)'
        search --no-floppy --fs-uuid --set 08f444ba-298a-48b6-8f19-d1ec40d5de60
        linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" {    ( Disini saya menggunakan windows 7 )
insmod ntfs
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set B6EE34FEEE34B887
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Yang script nya saya kasih warna merah,  Nah  itulah script  yang harus kalian hapus ( Jangan sampai salah hapus ). Untuk yang saya garis bawahi dan bewarna biru, Script nya bisa kalian edit atau kalian ubah kalimat/scriptnya ( “Note : hanya yang didalam tanda petik dan juga jangan sampai tanda petiknya hilang, kalo hilang tanda petiknya, bisa tidak muncul pada awal booting nanti” ).Kalo sudah klik CTRL + O (enter) untuk menimpan, dan CTRL+ X untuk keluar.

Kalo kalian berhasil nanti hasilnya seperti contoh punya saya dibawah ini :
Oke, jika sudah selesai tinggal kalian restart saja, dan lihat hasilnya.J
Untuk kalian yang ingin materi ini silahkan download DISINI


“SELAMAT MENCOBA...GOOD LUCK”


0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.