Change Color of PXE Fog Screen
-
There is an image file in /var/www/html/fog/service/ipxe The name of the file is bg<something>. Just get / extract the background image from a 1.2.0 tar file and put it in that directory I mentioned above.
Or you can create your own custom background with your company’s branding. That is up to your imagination, really.
-
@george1421 Thanks!! This solves my issue!
-
@kman1232 The only issue I can see (maybe) is the menu color. The old screen had white text on a dark background where the new screen has dark text on a white(ish) screen.
-
@george1421 Oh good catch!! Where in the system do you change the blue menu color to white?
-
@kman1232 Yeah the developers don’t make changing that one easy.
While I don’t know for absolute, I can tell you where to look.
You want to edit this file with your favorite editor: /var/www/html/fog/lib/fog/bootmenu.class.php
If you have an existing 1.2.0 fog server you can do some comparison. If you have one functioning I can tell you know to access the code behind that menu so you can do a side by side.
[edit] You will probably want to read up on iPXE colors here http://ipxe.org/cmd/colour
You can access the iPXE menu via the browser by connecting to http://<fog_server_ip>/fog/service/ipxe/boot.php?mac=00:00:00:00:00 That will display the code behind the iPXE screen. -
@george1421 I do have a 1.2 server that I can access to do a side by side. Thanks for these tips. You moderators rock!
-
Understand this is an unofficial answer and I would never recommend you hack FOG.
With that said, I think I found it. Look for this code in the file I referenced before.
colour --rgb 0x00567a 1 ||
colour --rgb 0x00567a 2 ||
colour --rgb 0x00567a 4 ||You want to change 0x00567a to another color. So you might ask how do I know what color that number is?
Use this web page and key in only the 00567a part. http://neildowning.com/HEX_to_RGB_color_converter.php
You can test different color combinations and see the results. My guess is that you will want something close to 0xffffff
Just be aware the next time you update fog, these updates will go away. So plan accordingly. Once 1.3.0 is released then you won’t have to be so mindful of the updates.
-
@george1421 Thanks George. This might be something others would like to do on their environments. Maybe it is a “feature” which could be considered in a future edition through the web gui.
-
@kman1232 this is something that i’ve been thinking about for a while. just made a note in the feature requests about it so maybe i’ll stop forgetting about it.
-
https://forums.fogproject.org/topic/7738/customizable-ipxe-menu-text-colors
Cross linking.
Hopefully this helps.