View previous topic :: View next topic |
Author |
Message |
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Mon Dec 16, 2002 3:37 am Post subject: Boot Splash (background pic ala Suse) TIP of the YEAR! |
|
|
Boot Splash (background picture ala Suse)
If you follow this procedure you will hopefully end up with
a jpg image on your tty consoles with boot up text displayed
ontop.
NOTES:
Lets get started...
Download the gentoo sources. I used gentoo-sources 2.4.20-r1 you need the tk package to use make xconfig later.
Code: |
emerge gentoo-sources tk
|
While that is downloading lets grab the files we need.
ftp://ftp.suse.com/pub/people/stepan/bootsplash/kernel/bootsplash-3.0.7-2.4.20-vanilla.diff
ftp://ftp.suse.com/pub/people/stepan/bootsplash/rpm-sources/bootsplash/splashutils.tar.bz2
These last ones are optional (note you may have to type in the geocities url)
http://www.geocities.com/kachaffeous/gentoo.jpg
http://geocities.com/kachaffeous/template.zip
Lets make our utilities. cd to where ever you saved the files too.
I used ~/splash
The splash binary is what makes the intrid images.
Code: |
me@Blazen me $ cd ~/splash
me@Blazen splash $ tar xvjf splashutil.tar.bz2
splashutils/
splashutils/Makefile
splashutils/splash.c
splashutils/progress.c
splashutils/getkey.c
splashutils/fbresolution.c
splashutils/ChangeLog
splashutils/COPYING
me@Blazen splash $ cd splashutils
me@Blazen splashutils $ make
gcc -Os -Wall splash.c -o splash
gcc -Os -Wall progress.c -o progress
gcc -Os -Wall fbresolution.c -o fbresolution
gcc -Os -Wall getkey.c -o getkey
strip splash progress fbresolution getkey
me@Blazen splashutils $ cp splash /bin/
me@Blazen splashutils $ cd ..
|
Make splash directory and copy this config file there.
Code: |
# ftp://ftp.suse.com/pub/people/stepan/bootsplash for
# more information. Comments are welcome by stepan@suse.de
# config file version
version=3
# should the picture be displayed?
state=1
# fgcolor is the text forground color.
# bgcolor is the text background (i.e. transparent) color.
fgcolor=7
bgcolor=0
# (tx, ty) are the (x, y) coordinates of the text window in pixels.
# tw/th is the width/height of the text window in pixels.
tx=40
ty=116
tw=944
th=612
# ttf message output parameters
text_x=204
text_y=544
text_size=26
text_color=0xeef4ff
# name of the picture file (full path recommended)
jpeg=/usr/share/splash/themes/SuSE/images/bootsplash-1024x768.jpg
silentjpeg=/usr/share/splash/themes/SuSE/images/silent-1024x768.jpg
progress_enable=1
# background
box silent noover 204 582 820 612 #04045498
box silent inter 204 583 204 611 #ffffff #ffffff #526bb0 #526bb0
box silent 204 583 820 611 #ffffff #ffffff #526bb0 #526bb0
# black border
box silent 204 582 820 582 #313234
box silent 204 612 820 612 #eef4ff
box silent 204 582 204 612 #313234
box silent 820 582 820 612 #eef4ff
# text box (left, top)
box 35 111 35 729 #313234
box 36 111 985 111 #313234
# (right, bottom)
box 985 112 985 729 #eef4ff
box 36 729 985 729 #eef4ff
# box itself
box noover 36 112 984 728 #04045498
overpaintok=1
|
Code: |
me@Blazen splash $ mkdir -p /usr/share/splash/
|
Lets get ready to patch the kernel
Code: |
me@Blazen splash $ vi *.diff
|
Replace 2.4.20.orig and 2.4.20 with linux in the patch file. In vi
you can do this
Code: |
esc
:%s/linux-2.4.20.orig/linux/g
:%s/linux.2.4.20/linux/g
:wq
|
Move patch file to /usr/src
Code: |
me@Blazen splash $ mv *.diff /usr/src/
|
Change user to root
Code: |
me@Blazen splash $ su -
|
As root patch and build kernel
Code: |
root@Blazen splash # cd /usr/src/
root@Blazen src # patch -p0 < bootsplash-3.0.7-2.4.20-vanilla.diff
patch -p0 < bootsplash-3.0.7-2.4.20-vanilla.diff
patching file linux/drivers/char/console.c
patching file linux/drivers/char/keyboard.c
patching file linux/drivers/char/n_tty.c
patching file linux/drivers/video/Config.in
Hunk #1 succeeded at 232 (offset 10 lines).
Hunk #3 succeeded at 369 (offset 10 lines).
patching file linux/drivers/video/Makefile
patching file linux/drivers/video/fbcon-jpegdec.c
patching file linux/drivers/video/fbcon-jpegdec.h
patching file linux/drivers/video/fbcon-splash.c
patching file linux/drivers/video/fbcon-splash.h
patching file linux/drivers/video/fbcon-splash16.c
patching file linux/drivers/video/fbcon.c
patching file linux/include/video/fbcon.h
patching file linux/kernel/panic.c
root@Blazen src # cd linux
root@Blazen linux # make xconfig
|
Now the gui for configuring your kernel pops up. You need to
select your hardware specific stuff (I don't know what you have)
The following items are needed for the bootsplash screen. Compile
into the kernel ie NOT as modules.
Block Devices -> RAM disk support
Block Devices -> Loopback device support
Block Devices -> Initial RAM disk (initrd) support
Console Drivers -> Video mode selection support
Console Drives -> Frame-buffer support -> Support for frame buffer devices
Console Drives -> Frame-buffer support -> VESA VGA graphics console
Console Drives -> Frame-buffer support -> Use splash screen instead of boot logo
Select "Save and Exit" from the gui.
Compile time.
Code: |
root@Blazen linux # make dep && make clean bzImage modules modules_install
|
After about 15-20mins you are ready to move your new kernel
I'm using lilo, not sure about grub stuff here.
Code: |
root@Blazen linux # mount /boot
root@Blazen linux # cp arch/i386/boot/bzImage /boot/vmlinuz
|
To recap you should have
a /bin/splash binary
a newly compiled kernel
a /usr/share/splash directory with the following files
bootsplash.cfg
bootsplash.jpg
Edit /etc/lilo.conf mine looks like this
Code: |
#menu-scheme=Wb
boot = /dev/hda
#prompt
map = /boot/System.map
lba32
#MENU
image = /boot/vmlinuz
read-only
label = Blazen
vga = 791
root = /dev/hda3
initrd=/boot/initrd
|
The *important* lines here are the
vga = 791
initrd=/boot/initrd
The vga=791 sets your console to a resolution of 1024x768 16 Bit
and /boot/initrd is what contains the the splash picture.
NOTE: VGA color depth vs resolution chart
depth------640x480-----800x600-----1024x768-----1280x1024
256----------769----------771-----------773-------------775
32000-------784----------787-----------790-------------793
65000-------785----------788-----------791-------------794
16.7 Mill.----786----------789-----------792-------------795
Make the initrd image and update lilo
NOTE:
The images don't get stretched, so it is important that you resize the picture to the desired framebuffer resolution.
Make sure /boot is mounted before running the next command.
Code: |
root@Blazen boot # splash -s -f /usr/share/splash/bootsplash.cfg > /boot/initrd
root@Blazen boot # lilo
Added Blazen *
|
The splash program will build a initrd image, and append the /usr/share/splash/bootsplash.jpg to it.
Cross your fingers and reboot to see some eye candy!
Hopefully.....
Once booted you can add splash screens to additional tty's using the following
Code: |
splash -s -u 1 /usr/share/splash/bootsplash.cfg
|
This will upate the 2nd tty with a splash screen (Ctrl-Alt-F2). This could be put in a init script...
To auto update your other tty's (on boot) you can do the following
Code: |
cd /usr/share/splash
for i in tty2 tty3 tty4 tty5 tty6; do mkdir $i ; cp boot* $i ; done
|
add the following lines to /etc/conf.d/local.start
Code: |
/bin/splash -s -u 1 /usr/share/splash/tty2/bootsplash.cfg
/bin/splash -s -u 2 /usr/share/splash/tty3/bootsplash.cfg
/bin/splash -s -u 3 /usr/share/splash/tty4/bootsplash.cfg
/bin/splash -s -u 4 /usr/share/splash/tty5/bootsplash.cfg
/bin/splash -s -u 5 /usr/share/splash/tty6/bootsplash.cfg
|
NOTE: You can copy different pictures (in each of the dir's)on top of bootsplash.jpg to
have a different splash on each tty.
reboot and enjoy!
Last edited by kachaffeous on Tue Mar 25, 2003 3:49 pm; edited 11 times in total |
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Mon Dec 16, 2002 11:22 am Post subject: |
|
|
Thanks! Will try it as soon as I get home |
|
Back to top |
|
|
tojo n00b
Joined: 09 Dec 2002 Posts: 72
|
Posted: Mon Dec 16, 2002 12:58 pm Post subject: |
|
|
And here's my grub.conf file, if someone has use for it:
Code: | default 0
timeout 15
splashimage=(hd0,5)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,5)
kernel /bzImage root=/dev/hda3 vga=791 video=vesa:1024x768@70
initrd=/initrd
title=Gentoo Linux (wo splash)
root (hd0,5)
kernel /bzImage.work001 root=/dev/hda3 vga=791 video=vesa:1024x768@70
title=Windows XP
root (hd0,0)
chainloader +1
|
Anyone know where to find "lighter color" background image? This is too dark for me, but better than nothing.. |
|
Back to top |
|
|
fu_fish n00b
Joined: 16 Dec 2002 Posts: 21 Location: Knoxville, TN
|
Posted: Mon Dec 16, 2002 10:28 pm Post subject: graphic formats & website |
|
|
What graphic formats can be used with this patch? Also, is there a web site with more information about this patch? I was looking at the "Linux Progress Patch" (http://lpp.freelords.org) for a while, but it seems to have gone stale...I haven't seen any updates since 2.4.12 or something like that. Does anybody know if this patch can mask out the boot messages for intimidated newbies? |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Mon Dec 16, 2002 11:54 pm Post subject: |
|
|
Quote: | Anyone know where to find "lighter color" background image? |
http://geocities.com/kachaffeous/template.zip (note may have to type url)
This is a xcf file (gimp layered format) with only the translucent box in the center. I like the box for the text. So you can do the following to add any picture. Or just use any jpg and don't use the box.
Open up the image you want to use.
Press "Ctrl + a" to select all
Press "Ctrl + c" to copy picture
Open up template.xcf in gimp.
Press "Ctrl + L" to bring up layer dialog
Click on "New Layer" button
Hit "OK" on layer options
On template.xcf picture Right click -> Edit -> Paste into
In the layer dialog menu click on the anchor.
Click on the down arrow until your picture is on the bottom.
Select the box layer and play with the effects.
Use the "save as" dialog to save your picture as a jpg and when prompted
export the image.
Quote: |
What graphic formats can be used with this patch?
|
I have only tried jpg's.
Quote: |
Also, is there a web site with more information about this patch? |
There are README files on the ftp server where the files are downloaded from. |
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Tue Dec 17, 2002 12:28 am Post subject: |
|
|
I got it working! Thanks! Was looking for some way to make the startup sequence look nicer
Btw, is it possible to change the refresh rate? 1024x786@60 hz just makes my eyes want to burst |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Tue Dec 17, 2002 1:13 am Post subject: |
|
|
Here is a chart for the vga modes
Code: |
colour depth | 640x480 800x600 1024x768 1280x1024
256 (8bit) | 769 771 773 775
32000 (15bit) | 784 787 790 793
65000 (16bit) | 785 788 791 794
16.7 Mill. (24bit) | 786 789 792 795
|
|
|
Back to top |
|
|
tojo n00b
Joined: 09 Dec 2002 Posts: 72
|
Posted: Tue Dec 17, 2002 9:11 am Post subject: |
|
|
kachaffeous wrote: | http://geocities.com/kachaffeous/template.zip (note may have to type url)
This is a xcf file (gimp layered format) with only... |
Thanks for the template!
slougi wrote: | Btw, is it possible to change the refresh rate? 1024x786@60 hz just makes my eyes want to burst |
This is working to me, just put this your lilo/grub config (kernel parameteres), see the previous message from me: Code: | video=vesa:1024x768@70 |
|
|
Back to top |
|
|
slougi Apprentice
Joined: 12 Nov 2002 Posts: 222 Location: Oulu, Finland
|
Posted: Tue Dec 17, 2002 10:27 am Post subject: |
|
|
tojo wrote: | kachaffeous wrote: | http://geocities.com/kachaffeous/template.zip (note may have to type url)
This is a xcf file (gimp layered format) with only... |
Thanks for the template!
slougi wrote: | Btw, is it possible to change the refresh rate? 1024x786@60 hz just makes my eyes want to burst |
This is working to me, just put this your lilo/grub config (kernel parameteres), see the previous message from me: Code: | video=vesa:1024x768@70 |
|
I did put it in the conf file but it does not seem to work I tried it with 85hz tho, I will try with 70 hz when I get home |
|
Back to top |
|
|
wpichler n00b
Joined: 11 Oct 2002 Posts: 42 Location: Austria
|
Posted: Tue Dec 17, 2002 3:21 pm Post subject: Re: graphic formats & website |
|
|
fu_fish wrote: | What graphic formats can be used with this patch? Also, is there a web site with more information about this patch? I was looking at the "Linux Progress Patch" (http://lpp.freelords.org) for a while, but it seems to have gone stale...I haven't seen any updates since 2.4.12 or something like that. Does anybody know if this patch can mask out the boot messages for intimidated newbies? |
for lpp and gentoo sources take a look at:
https://forums.gentoo.org/viewtopic.php?t=7514[/url] |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Tue Dec 17, 2002 4:06 pm Post subject: What can I say? |
|
|
Just an indication of how cool this tip is; I opened it up another 3 times in the same mozilla session, after having initially read it, over a period of 30 minutes and didn't realise until I flicked back through my tabs! _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
garo Bodhisattva
Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Wed Dec 18, 2002 4:32 pm Post subject: |
|
|
I use the vanilla-sources (2.4.20).
Can i get a boot splash without going to gentoo-sources ? |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Wed Dec 18, 2002 8:40 pm Post subject: |
|
|
garo wrote: | I use the vanilla-sources (2.4.20).
Can i get a boot splash without going to gentoo-sources ? |
same question here!
...i think most people tend to use vanilla (or is my faith misguided?) _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Wed Dec 18, 2002 9:10 pm Post subject: |
|
|
Quote: |
Can i get a boot splash without going to gentoo-sources ?
|
I haven't tried with vanilla but it should work. Procedure will be exactly the same. I'm on dialup so it is hell to download new sources
Quote: |
if someone could publish a LotR themed splash-screen...
|
Just download the template and make a new jpg, its really simple |
|
Back to top |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Wed Dec 18, 2002 10:17 pm Post subject: How about... |
|
|
garo wrote: | Can i get a boot splash without going to gentoo-sources ? |
Yes, just follow the instructions but substitute gentoo-sources for vanilla-sources! _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi
Last edited by charlieg on Tue Jan 07, 2003 4:05 pm; edited 1 time in total |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Thu Dec 19, 2002 9:54 pm Post subject: |
|
|
Oh man, this is just too cool! This is great, thanks for the information (and for the vader pic )
EDIT: BTW, I have the acpi-sources-2.4.20-r8 (which is just vanilla-sources + 1 patch) and it worked fine.
Last edited by duff on Fri Dec 20, 2002 1:23 am; edited 1 time in total |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Fri Dec 20, 2002 12:38 am Post subject: |
|
|
kachaffeous wrote: | I'm on dialup so it is hell to download new sources | Unless something has totally and drastically changed since last I checked, gentoo-sources uses vanilla-sources applies 5 MB worth of bzip2'ed patches. Thus, as long as linux-2.4.xx.tar.bz2 is in /usr/portage/distfiles/, you can emerge vanilla-sources without downloading anything. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Twink Apprentice
Joined: 06 Dec 2002 Posts: 178 Location: New Zealand
|
Posted: Fri Dec 20, 2002 4:39 am Post subject: |
|
|
wow, that's really cool, now to make my system really unstable to force me to reboot more often so I can see it more then once a month |
|
Back to top |
|
|
Gibberx Apprentice
Joined: 20 Oct 2002 Posts: 217 Location: UMBC
|
Posted: Fri Dec 20, 2002 4:44 am Post subject: |
|
|
On my system, tty1's console is stuck with the splash screen and the console cropped to the white section... you can look at it there .
I don't use tty1 much anyway... never bothered to solve that "Cannot open smtp port (25)" (or something like that) bug since I re-installed Gentoo.... oh wells. |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Fri Dec 20, 2002 10:18 am Post subject: |
|
|
i agree ...it's cool and eye-candy ...but i'm still not going to install it for one sole reason: when i use the pure console (tty) i usually stare at it for hours ...so such an eye-candy could actually cause eye-pain (as in physical pain)
but i have to egree it's really pleasant to look at it ...but as i said ...not for me _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
kachaffeous Tux's lil' helper
Joined: 07 Jun 2002 Posts: 86
|
Posted: Sun Dec 22, 2002 11:58 pm Post subject: |
|
|
Quote: | looks great btw only switching between tty's does work only the rest is in the old style(tty2 till tty 12)
|
Code: |
splash -s -u 1 /usr/share/splash/bootsplash.cfg
|
You can use the -u option with a number to do the other virtual consoles |
|
Back to top |
|
|
ph03nix n00b
Joined: 04 Dec 2002 Posts: 5
|
Posted: Wed Dec 25, 2002 9:07 pm Post subject: splash screen with vanilla kernel 2.4.20 |
|
|
Just to report that the patch works without problem with a vanilla 2.4.20 kernel on a GeForce 2. |
|
Back to top |
|
|
scrllock Tux's lil' helper
Joined: 14 Oct 2002 Posts: 102
|
Posted: Thu Jan 02, 2003 3:44 am Post subject: |
|
|
Anyone asked any of the devs to try and get this into the livecd/install documentation? Dang... You own. |
|
Back to top |
|
|
GurliGebis Retired Dev
Joined: 08 Aug 2002 Posts: 509
|
Posted: Thu Jan 02, 2003 3:47 am Post subject: |
|
|
Someone please create a bugreport on this one (I'm too tired to do it), so the devs will give it some attension. _________________ Queen Rocks. |
|
Back to top |
|
|
H-Pi Apprentice
Joined: 26 Jun 2002 Posts: 175 Location: Delft (NL)
|
Posted: Thu Jan 02, 2003 3:25 pm Post subject: |
|
|
First, thanks a lot for this guide and te posted images, I have combined one of them with a strange picture of me and my girl and it looks great
RickDB wrote: |
I tried alot of thing but it does not show that cool splash image like lilo does |
I haven't got lilo installed, works perfect with grub, here's my part of grub.conf:
Code: |
default 0
timeout 3
splashimage=(hd0,5)/grub/splash.xpm.gz
title=Gentoo Linux (new kernel)
root (hd0,5)
kernel /bzImage root=/dev/hda5 vga=791 video=vesa:1024x768@70
initrd=/initrd
|
you can see, the difference is that I haven't got the vga= line under the timeout line, is that to have a bigger resolution already in grub itself? I don't know if this is possible, may be you can try to remove that line
(and I don't have the hdd=ide-scsi, but that's another story you can read here)
make sure you have mounted /boot when running
Code: |
splash -s -f /usr/share/splash/bootsplash.cfg > /boot/initrd
|
Last edited by H-Pi on Thu Jan 02, 2003 7:16 pm; edited 2 times in total |
|
Back to top |
|
|
|