1 |
On 17 August 2005 18:22, John Dangler wrote: |
2 |
> Uwe~ |
3 |
> Yes, please share! I'd be interested to see how this goes together |
4 |
|
5 |
Alright, it took me less time than I thought. ;-) |
6 |
|
7 |
Here it goes: |
8 |
|
9 |
1. |
10 |
Cd to /etc/splash. Create a subdirectory with the name of your theme. That's |
11 |
"sysex" in my case because that's the name of my company for which I have |
12 |
done it (just to squash any snide remarks before the come my way: It's SysEx |
13 |
rather than SySex). Inside that subdirectory, you create another one by the |
14 |
name "images". |
15 |
|
16 |
2. |
17 |
Use an existing images or create one with your favourite program for that. I |
18 |
used an existing one and edited with The Gimp. Actually, you need two |
19 |
matching ones, one for the "silent" screen, one for the "verbose" screen. The |
20 |
silent one is for the splash screen showing a progress bar and hiding all |
21 |
boot-up messages. The verbose one is for hitting "F2" during the boot process |
22 |
and for the virtual text consoles. At this stage, you have to decide which |
23 |
resolution you can use with your video card. I only use 1024x758, so I skip |
24 |
all the other resolutions. If you want all of them (like in emergence you |
25 |
have to create them all but you don't need to. Resize the images in The Gimp |
26 |
to 1024x768 (or whatever resolution you want and can use) and save them as |
27 |
"silent-1024x768.jpg" and "verbose-1024x768.jpg". Copy them over |
28 |
to /boot/grub/. |
29 |
|
30 |
3. |
31 |
Create a file with this content: |
32 |
|
33 |
--- start file --- |
34 |
|
35 |
# Copyright 2004 Gentoo Foundation |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
# |
38 |
# |
39 |
***************************************************************************** |
40 |
# Gentoo-Emergence - a sample gensplash theme, bootsplash compatibility mode |
41 |
# This file should be placed in /etc/splash/emergence/ |
42 |
# |
43 |
***************************************************************************** |
44 |
|
45 |
bgcolor=0 |
46 |
|
47 |
tx=25 |
48 |
ty=28 |
49 |
tw=979 |
50 |
th=728 |
51 |
|
52 |
text_x=204 |
53 |
text_y=544 |
54 |
text_size=26 |
55 |
text_color=0xeef4ff |
56 |
|
57 |
pic=/etc/splash/sysex/images/verbose-1024x768.jpg |
58 |
silentpic=/etc/splash/sysex/images/silent-1024x768.jpg |
59 |
#pic256=/etc/splash/emergence/images/verbose-1024x768-240.png |
60 |
#silentpic256=/etc/splash/emergence/images/silent-1024x768-256.png |
61 |
|
62 |
box silent noover 204 582 820 612 #04045498 |
63 |
box silent inter 204 583 204 611 #ffff00 #ffff00 #526bb0 #526bb0 |
64 |
box silent 204 583 820 611 #ffffff #ffffff #526bb0 #526bb0 |
65 |
|
66 |
box silent 204 582 820 582 #313234 |
67 |
box silent 204 612 820 612 #eef4ff |
68 |
box silent 204 582 204 612 #313234 |
69 |
box silent 820 582 820 612 #eef4ff |
70 |
|
71 |
box noover 20 20 1004 750 #04045498 |
72 |
|
73 |
--- end file --- |
74 |
|
75 |
Save it to /etc/splash/sysex/1024x768.cfg. Replace any occurrence fo "sysex" |
76 |
by the name you call your theme. |
77 |
|
78 |
4. |
79 |
Create another matching image with very few colours. Save it as sysex.jpg. If |
80 |
you haven't emerge ImageMagick yet do it now. Use "convert -colors 16 -depth |
81 |
8 sysex.jpg sysex.xpm". Gnuzip "sysex.xpm" (gzip sysex.xpm) and copy |
82 |
"sysex.xpm.gz" to /boot/grub/". |
83 |
|
84 |
5. |
85 |
Assuming your /usr/src/linux points to your current kernel sources, do a |
86 |
"genkernel --menu-config --gensplash=sysex --gensplash-res=1024x768 all". |
87 |
Replace "sysex" by your theme name and "1024x768" by your resolution. When |
88 |
the kernel configuration comes up, go to "Device Drivers" --> "Graphics |
89 |
Support". Enable "VESA VGA Graphics Support", and in there also "vesafb-tng". |
90 |
Also enable "Support for framebuffer splash". Do whatever else configuration |
91 |
you need. Let everything build. |
92 |
|
93 |
6. |
94 |
This should generate "/boot/kernel-genkernel-x86-2.6.12-gentoo-r6" |
95 |
and /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6", or whatever other kernel |
96 |
you are using. If not so, well, you made a mistake somewhere along the line. |
97 |
(or I mistyped something ;-) |
98 |
|
99 |
7. |
100 |
Create an entry in your /boot/grub/grub.conf like this: |
101 |
|
102 |
--- start config file ---- |
103 |
|
104 |
default 0 |
105 |
timeout 10 |
106 |
splashimage=(hd0,1)/boot/grub/sysex.xpm.gz |
107 |
|
108 |
title= NOS - The Namibian Office Solution by SysEx (Pty) Ltd. |
109 |
root (hd0,1) |
110 |
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 |
111 |
init=/linuxrc ramdisk=8192 real_root=/dev/hda2 udev quiet CONSOLE=/dev/tty1 |
112 |
video=vesafb:ywrap,mtrr,1024x768-16 splash=silent,theme:sysex |
113 |
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r6 |
114 |
|
115 |
--- end config file --- |
116 |
|
117 |
Obviously, you have to edit everything "sysex" and the harddisk to fit your |
118 |
system. Also the kenel version. If your boot partition is on SCSI you |
119 |
probably also have to add the option "doscsi" to the kernel options. |
120 |
|
121 |
|
122 |
|
123 |
Compared to the recommended HOWTO somewhere on Gentoo, this gives you a splash |
124 |
screen that kicks in far earlier and does hardware recognition far superior. |
125 |
|
126 |
Uwe |
127 |
|
128 |
|
129 |
-- |
130 |
95% of all programmers rate themselves among the top 5% of all software |
131 |
developers. - Linus Torvalds |
132 |
|
133 |
http://www.uwix.iway.na (last updated: 20.06.2004) |
134 |
-- |
135 |
gentoo-user@g.o mailing list |