Jump to content











Photo

GFXMenu on Grub4Dos

set configs to boot screens

  • Please log in to reply
27 replies to this topic

#1 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 12 September 2011 - 02:50 AM

*
POPULAR

Hello everyone, this is my first tutorial, and as it was a hard time to me to gather all information to make this, i'll share with you guys.
First of all...

* What are we going to do?
We are going to set some configurations, so our bootscreen will look pretty.
Here is some exemple:

Posted Image

* What do we need?
I will start assuming that you already have your bootable thing (HardDrive, USB Stick, External HD, SD Card) with the needed files, such as a menu.lst entry.
You'll need the following:
- Bottable thing
- Source Files - Mediafire

* How we do this?
Its quite simple.
First of all, download the Source File, wich is a .rar file, and extract it to your "C:" local driver.
You are going to have 2 folders and 2 files inside it.
- Folder "cpio": needed files to pack and unpack our configuration file
- Folder "files": configuration files, wich we are going to change and do it at our own style
- File "unpack.cmd": executable batch file, to unpack our configuration file
- File "repack.cmd": executable batch file, to repack our configuration file

Lets now work inside our FILES folder.
There are 2 main files we need to play with inside here.
Lets start with our background file, its named "back.jpg" and should remain with that name, all you have to do to change the background on your bootscreen, is replace it witi your own JPG 800x600 file. Later we are going to see how to change the resolution of the screen.
Now that you're done replacing it, its time to make the screen look like you want it to do:
Lets play with the "gfxboot.cfg" file, the one carring all information about our stylish menu:


All entries are binaries, so... 0 means ON and 1 means OFF.

welcome=1 # Shows the welcome message on the screen (0=on, 1=off)

boot_show=0 # Show boot options, not supported anyway, so better leave it alone
xmenu_hide_current=0 # if set to 1, hide the current selection item below the bottom menu.

menu_start_x=450 # Horizontal position of the menu
menu_start_y=105 # Vertical position of the menu
menu_max_entries=10 # Number of entries on the panel to select, if you have more, it will scroll down
menu_bar_min_width=1 # The minimum width of menu select bar.

menu_text_normal=0x4AC950 #Normal text color, use RGB value such as 0xffffff.
menu_text_select=0x000000 #Color of selected item
boot_text_options=0xffffff #Color of boot options label
boot_text_normal=0xffffff #Color of boot options text
infobox_bg=0xd8deed #Background color of info box
infobox_text_normal=0 #Text color of info box
menu_bar_color=0xffffff #Color of menu bar
loading_color=0x295202 #Color of load bar
title_bg=0x4f9805 #Background color of dialog background

hide_reboot=0 #If set to 1, hide the reboot button (F9)
hide_poweroff=0 If set to 1, hide the poweroff button (F10)
disable_num_key=1 #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=1 #If set to 1, hide the help button (F1)
hide_lang=1 #If set to 1, hide the language button (F2)
custom_width=800 #By default, the screen resolution is 800x600x16, if you want a higher resolution, set these three variables, for example:
custom_height=600 #custom_width=1024; custom_height=768; custom_depth=16
custom_depth=16 #The mode must be supported by bios, otherwise, it just fallback to default.

panel_normal=0xffffff #Color of panel text
panel_title=0xffffff #Color of panel title
panel_high=0xffe050 #Color of panel hotkey (Fn)
panel_bg=0xd8deed #Background color of panel pop-up box
panel_border=0xeff2f6 #Border color of panel pop-up box


Make your own configuration, as you wish, and if something goes wrong, post it here, so i or any other member can help you.

Now that you have it all done, all you have to do, is to run the "repack.cmd" file.
It will create a file called "message".
This file is holding all your configuration, font and background file.

To use it properly, copy it, and paste it to the same place where your menu.lst file is located.
Now to finish thing up, open your menu.lst file, and it should look something like this:


color NORMAL HIGHLIGHT HELPTEXT HEADING
timeout 30
default 0

title WinPE 1.0 /nWindows XP Lite


find --set-root --ignore-floppies /_Imagens/xp_lite.ISO
map /_Imagens/xp_lite.ISO (hd32)
map --hook
root (hd32)
chainloader (hd32)


All you have to do, is to set the gfxmenu parameter inside the file, so it will look something like this:



color NORMAL HIGHLIGHT HELPTEXT HEADING
timeout 30
default 0
gfxmenu /message

title KbBoot XP Lite\nInicia o Disco de Inicializacao da KB Informatica com base em Windows XP.\nMinimo de 128MB de RAM.
find --set-root --ignore-floppies /_Imagens/xp_lite.ISO
map /_Imagens/xp_lite.ISO (hd32)
map --hook
root (hd32)
chainloader (hd32)


With this, when you enter in your boot screen, instead of all those letter and stuff, you gonna see your own background, and with some sytilish menu.

Hope it helps someone.
I used the files and information in here, so i have no credits at all... i just re-wrote in some place easier for people to find.
Thanks Diddy, and a hug to Nuno Brito... luv ya bro.
  • Brito, staff and Mahmoud Kandeel like this

#2 tgs2010

tgs2010
  • Members
  • 2 posts
  •  
    Netherlands

Posted 27 September 2011 - 01:00 AM

Thank you for this tutorial.

#3 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 27 September 2011 - 01:59 AM

No problem dude... i'm glad i helped u out.

#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 27 November 2011 - 09:48 AM

Users may also find my grub4dos tutorial at http://www.rmprepusb...orials/grub4dos useful - Part 3 is about gxfmenu

#5 Husain-The New Rookie

Husain-The New Rookie

    Newbie

  • Members
  • 10 posts
  • Location:Burhanpur ,{M.P} India
  • Interests:Computer Related Everything
  •  
    India

Posted 08 December 2011 - 07:36 AM

i already knew about it but coldnt find time to make a tutorial for others
thanks for the tutorial bro

#6 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 02 January 2012 - 01:43 PM

Dear Shibby,
I'm facing some problems during prepare my multiboot USB like change color bar menu to transparent and also I want to add label above the menu (I need the codes for that to add it in file gfxboot.cfg)
Thanks alot for your efforts.


Posted Image



#7 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 02 January 2012 - 01:49 PM

perhaps you should have a look at this thread:
http://reboot.pro/15689/

#8 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 02 January 2012 - 01:56 PM

My Friend Patsch,
Thanks for your quick responce, I believe this issue is different than my request.

#9 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 02 January 2012 - 02:05 PM

Eng Mohamed,


I understood your issue.
To put the label in, i would recomend you to edit the jpg background picture, and put it in there, this way, you can use any font/effects you wish, and the regular "DOS" font from grub.

To change the selected text background color, you should play with this variable inside your gfxboot.cfg: menu_bar_colors I'm not 100% sure, a'm at work i can't tell you 100% sure right now. You could comment the line too, or delete the line regarding this option to test it.

as soon as i get home, i can take a look at it for you.

#10 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 02 January 2012 - 02:07 PM

really? Sorry then I misunderstood your post ...
your request was to set the select bar to transparent and to add an info line, or not?
I use Ripper-GFX for my own customized boot menu and with that program I can set color/transpareny of the select bar and I also set a info line (you called it label) and much more. After watching the tutorials linked in that thread it took me 10 minutes to create my own personalized grub4dos boot menu with my own background image, size/position of the menu entries, info line etc.

#11 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 02 January 2012 - 02:14 PM

You can do it using this meethod too, i just don't have access to the files atm.
It may be easier or harder, depending on how much you know of each tool.

really? Sorry then I misunderstood your post ...
your request was to set the select bar to transparent and to add an info line, or not?
I use Ripper-GFX for my own customized boot menu and with that program I can set color/transpareny of the select bar and I also set a info line (you called it label) and much more. After watching the tutorials linked in that thread it took me 10 minutes to create my own personalized grub4dos boot menu with my own background image, size/position of the menu entries, info line etc.



#12 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 02 January 2012 - 02:29 PM

Well... i'm gonna be at work for more 7hrs, so if your problem is not solved till then, or you decided to not follow on patsch tip... i'll take a look and run some tests when i get back to home.
Just let me know it its needed ok?

#13 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 02 January 2012 - 02:59 PM

Guys,
Thanks for your co-operation but, I am still confused.
Shippy,
Regarding the bar color issue I was attempting to remove the value and sometimes replaced it (menu_bar_color=0xeeeeee) without any responce.[Could you please try again to solve this issue with me]
Regarding the label, I know its easy to do it in photoshop as example but I prefer to make it with code in file gfxboot.cfg or in menu.lst and I have added the following code in menu.lst but it didn't appear.

code:
write (md)0x220+1 !BATnecho -n -P:0000 $[0107] AIO Bootable USB 0 initscript (md)0x220+1
Is that possible or not?


#14 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 02 January 2012 - 03:16 PM

mainmenu.bar.transparency=100

Try doing this my friend

#15 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 02 January 2012 - 03:58 PM

I have tried that before, incorrect code and I did this code menu_bar_color=transparent no result till now.

#16 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 03 January 2012 - 12:48 PM

Shibby,
I am waiting your help
Thanks

#17 yangjh

yangjh
  • Members
  • 4 posts
  •  
    China

Posted 06 January 2012 - 08:47 AM

See here ......

Edited by yangjh, 06 January 2012 - 08:54 AM.


#18 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 06 January 2012 - 09:45 AM

Today is the day... got back home... so i'll look at your problem... sorry bro, i've been busy

#19 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 06 January 2012 - 09:50 AM

Dude.. it may be simple, the first line where you define the basics...
color NORMAL HIGHLIGHT HELPTEXT HEADING

Rip off the HIGHLIGHT?
I was just reading my post.... and it seems to work... i'll try now

#20 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 06 January 2012 - 05:51 PM

See here ......


Yangjh,
Thanks for your help.
But I can't read china language, so can you explain by english if possible? and I have download MsgDiyer file but if you have english version it will be better and I faced a problem during open this file with antiviruse AVG please advice me my friend.

#21 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 06 January 2012 - 05:55 PM

Dude.. it may be simple, the first line where you define the basics...
color NORMAL HIGHLIGHT HELPTEXT HEADING

Rip off the HIGHLIGHT?
I was just reading my post.... and it seems to work... i'll try now


Sorry, I can't get your point.

#22 yangjh

yangjh
  • Members
  • 4 posts
  •  
    China

Posted 09 January 2012 - 01:04 AM

Yangjh,
Thanks for your help.
But I can't read china language, so can you explain by english if possible? and I have download MsgDiyer file but if you have english version it will be better and I faced a problem during open this file with antiviruse AVG please advice me my friend.


Hello Eng Mohamed,
About AVG,Please see here ;About English version...The authors say..“My English is very poor..” .. so sorry~~

reference

#23 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 09 January 2012 - 03:01 AM

I managed it to work in my example... but first off all, sorry for taking so long... its been a busy week.

So... grub understands black as transparent, as it looked like im my example... so...
Set
menu_bar_color=0x000000
and
menu_text_select=0xffffff

This way, there was no bar for me, just the text changed color when i selected it.
It worked for me now... and i'm using it... it looks better than that line across the screen.
xD

I hope it helped you.. i didnt know how to do this, but hey... it worked xD

#24 Shibby

Shibby

    Member

  • Members
  • 78 posts
  • Location:SM/RS
  • Interests:Rule the e-world
  •  
    Brazil

Posted 09 January 2012 - 03:13 AM

And about that another question about you wanting to add a title...
That way you tried, would word if you were in text mode... not loading a gfxmenu with a picture as background.
So... in the normal menu, it would work...

The best way to add a title, would be to edit in some image editor, like photoshop... but i'lll do some research and tell you my founds ok?
So far... i didnt manage do make it work... but i'll try.

#25 Eng Mohamed

Eng Mohamed

    Newbie

  • Members
  • 11 posts
  •  
    Egypt

Posted 09 January 2012 - 05:54 AM

Hello Eng Mohamed,
About AVG,Please see here ;About English version...The authors say..“My English is very poor..” .. so sorry~~

reference


No problem and alot of thanks.

I managed it to work in my example... but first off all, sorry for taking so long... its been a busy week.

So... grub understands black as transparent, as it looked like im my example... so...
Set
menu_bar_color=0x000000
and
menu_text_select=0xffffff

This way, there was no bar for me, just the text changed color when i selected it.
It worked for me now... and i'm using it... it looks better than that line across the screen.
xD

I hope it helped you.. i didnt know how to do this, but hey... it worked xD


Sibby,
I'll try do that and inform you by result soon, many of thanks ... my friend.


And about that another question about you wanting to add a title...
That way you tried, would word if you were in text mode... not loading a gfxmenu with a picture as background.
So... in the normal menu, it would work...

The best way to add a title, would be to edit in some image editor, like photoshop... but i'lll do some research and tell you my founds ok?
So far... i didnt manage do make it work... but i'll try.


Really I appreciate your cooperation and sorry to disturb you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users