thoughtlover
11-17-2000, 05:57 PM
I recently installed RH 7.0 and discovered RH's LILO now comes with a GUI.. and a rather boring picture I might add.
I discovered through experimentation that it is possible to change this image without any code diving.
Heres what I have learned:
The PCX Image can be installed into LILO by:.
By creating a 320x200 pcx file less than 65535 bytes in size,
moving it into in the /boot directory,
changing the /etc/lilo.conf to include the line "message=/boot/HomerX2.pcx",
and running the "lilo" command.
Color Index Stats:
Index 0 - The color of the border around the picture.
Index 127 - The color of un-highlighted text.
Index 255 - The color of highlighted text.
Index 0-255 - All can be used for the LILO picture...but I'd suggest using only Indexes 0-127.. unless you want to get tricky...the reason is:
Whenever any color X in the index color range 0-127 is highlighted, it becomes the index color X+128. I assume the opposite occurs when the color-range 128-255 is highlighted (X-128), but I have not tried this yet.
My first attempt turned out fairly nice.
I used range 0-127 for my picture,
copied indexes 0-127 into indexes 128-255,
applied an offset of neg #000022 to range 128-255 (to give highlighting a yellow tinge),
set index 127 to black (some pixel juggling involved),
set index 255 to white,
and here is the result in pcx format... if anyone wants to try:
HomerX2.pcx (http://members.home.net/thoughtlover/HomerX2.pcx)
This one was only my Learning picture. I plan on making a Tux one when I get the chance. I will post it here when I do.
I also plan to do a little digging to see if there is any way to change the text location (If there isn't a way without source diving, it should be changed), and see if perhaps the font can be changed (It would be nice.. but not necessary).
I discovered through experimentation that it is possible to change this image without any code diving.
Heres what I have learned:
The PCX Image can be installed into LILO by:.
By creating a 320x200 pcx file less than 65535 bytes in size,
moving it into in the /boot directory,
changing the /etc/lilo.conf to include the line "message=/boot/HomerX2.pcx",
and running the "lilo" command.
Color Index Stats:
Index 0 - The color of the border around the picture.
Index 127 - The color of un-highlighted text.
Index 255 - The color of highlighted text.
Index 0-255 - All can be used for the LILO picture...but I'd suggest using only Indexes 0-127.. unless you want to get tricky...the reason is:
Whenever any color X in the index color range 0-127 is highlighted, it becomes the index color X+128. I assume the opposite occurs when the color-range 128-255 is highlighted (X-128), but I have not tried this yet.
My first attempt turned out fairly nice.
I used range 0-127 for my picture,
copied indexes 0-127 into indexes 128-255,
applied an offset of neg #000022 to range 128-255 (to give highlighting a yellow tinge),
set index 127 to black (some pixel juggling involved),
set index 255 to white,
and here is the result in pcx format... if anyone wants to try:
HomerX2.pcx (http://members.home.net/thoughtlover/HomerX2.pcx)
This one was only my Learning picture. I plan on making a Tux one when I get the chance. I will post it here when I do.
I also plan to do a little digging to see if there is any way to change the text location (If there isn't a way without source diving, it should be changed), and see if perhaps the font can be changed (It would be nice.. but not necessary).