[You must be registered and logged in to see this link.]
Gfxmenu là gì ?

Gfxmenu (also referred to as gfxboot) is an external package supported by Grub4dos, which allows the use of background images (in .jpg format) and animation in menus.

Tạm dịch

Gfxmenu (hay còn gọi là gfxboot) là một thành phần mở rộng hỗ trợ cho Grub4dos, với Gfxmenu ta có thể thêm ảnh nền và tùy biến menu boot.



Grub4dos là gì ?

Xem thêm ở đây : [You must be registered and logged in to see this link.]

Nói nôm na nó là trình hỗ trợ boot từ dos được sử dụng rộng rãi nhất hiện nay ( tích hợp trong các đĩa , usb cứu hộ máy tính vd : Hiren Boot ,... )


Hướng dẫn cấu hình (dành cho người dùng windows)

Download các gói sau :

+ gfxboot-3.3-custom.zip , link : [You must be registered and logged in to see this link.]


+ binaries .zip và dependencies .zip link : [You must be registered and logged in to see this link.]


Các bước tiến hành :

+ Tạo các folder C:\gfxmenu\filesC:\gfxmenu\cpio
+ Giải nén bin\cpio.exe(trong file binaries .zip) và bin\libiconv2.dll,bin\libintl3.dll (trong file dependencies .zip) vào thư mục C:\gfxmenu\cpio
+ Giải nén file message_en đến C:\gfxmenu (file message_en là file cấu hình mặc định của Gfxmenu nếu bạn thích menu boot có dạng hình phía trên thì có thể giữ nguyên file message_en và bỏ qua các bước sau )
+ Tạo file C:\gfxmenu\unpack.cmd với nội dung bên dưới và click vào để chạy nó.
@echo off
CD %~dp0files
%~dp0cpio\cpio.exe -i < %~dp0message_en
pause


(thao tác nầy sẽ giải nén nội dung file C:\gfxmenu\message_en đến thư mục C:\gfxmenu\files )

+ Để thay đổi ảnh nền cho menu boot ta dùng 1 ảnh .jpg có kích thướt 800x600 đặt tên làback.jpg chép đè anh ảnh gốc C:\gfxmenu\files\back.jpg . Để thay đổi vị trí màu sắc và các đặc tính khác của menu boot ta phải chình sữa file cấu hình c:\gfxmenu\files\gfxboot.cfg với các tham số bên dưới :
boot_show (default: 0)
if set to 1, show the "Boot Options" box. As grub4dos currently don't use this feature, it might be better to hide it.

xmenu_hide_current (default: 0)
if set to 1, hide the current selection item below the bottom menu.

menu_start_x, menu_start_y
Position of menu

menu_max_entries (default: Cool
Maximum number of menu entry to display.

menu_bar_min_width
The minimum width of menu select bar.

menu_text_normal
Normal text color, use RGB value such as 0xffffff.

menu_text_select
Color of selected text

boot_text_options
Color of boot options label

boot_text_normal
Color of boot options text

infobox_bg
Background color of info box

infobox_text_normal
Text color of info box

menu_bar_color
Color of menu bar

loading_color
Color of load bar

title_bg
Background color of dialog background

hide_reboot (default: 0)
If set to 1, hide the reboot button (F9)

hide_poweroff (default: 0)
If set to 1, hide the poweroff button (F10)

disable_num_key (default: 0)
This message file has added keyboard shortcut function, for example, pressing '1' would choose the first menu item. If you don't want it, set this variable to 1.

hide_help (default: 0)
If set to 1, hide the help button (F1)

hide_lang (default: 0)
If set to 1, hide the language button (F2)

custom_width, custom_height, custom_depth
By default, the screen resolution is 800x600x16, if you want a higher resolution, set these three variables, for example:
custom_width=1024
custom_height=768
custom_depth=16
The mode must be supported by bios, otherwise, it just fallback to default.

panel_normal
Color of panel text

panel_title
Color of panel title

panel_high
Color of panel hotkey (Fn)

panel_bg
Background color of panel pop-up box

panel_border
Border color of panel pop-up box


+ Sau khi tùy chỉnh xong tất cả ta cần lưu lại file message_en đã thay đổi bằng file thực thiC:\gfxmenu\repack.cmd với nội dung bên dưới

@echo off
DIR %~dp0files /A-D /B /ON > %~dp0cpio_contents.txt
CD %~dp0files
%~dp0cpio\cpio.exe -ov < %~dp0cpio_contents.txt > %~dp0message
DEL %~dp0cpio_contents.txt
pause



( lệnh trên sẽ đóng gói thư mục C:\gfxmenu\files thành file C:\gfxmenu\message )

+ Bước cuối cùng là chép gói message (C:\gfxmenu\message) vào cùng thư mục với file menu.lstsau đó mở file menu.lst và thêm vào đoạn bên dưới ở dòng đầu tiên
gfxmenu /message


Vd: 1 file menu.lst đã được cấu hình
# The menu.lst file for gfxmenu
default=0
timeout=5
gfxmenu /message
configfile /another.lst
title 0..........
................
title 1..........
................
title 2..........
................
# End of menu.lst




Một vài ảnh minh họa


[You must be registered and logged in to see this link.]