This section documents how bootsplash was setup with a Debian GNU/Linux desktop computer. Laptops with with unusual setting requires further modifications.
Bootsplash requires a kernel patch and its subsequent compilation but contrary to some believes, it plays well with suspend2 in the machines we've tested. Please read article on Software Suspend2. The alternative to in-kernel patch is to use the userspace bootsplash which we will not cover here.
This disclosure is made in the spirit of Free Software so that users can help themselves and their neighbours.
All material presented are licensed under The GNU Free Documentation License.
Please report problems and direct enquiries to Contact US.
Note: Bootsplash will be superceded by Splashy in the next version of the Debian distribution - Sid
.
Splashy is a userspace application requiring no kernel modifications but it is currently sitting in the unstable branch.
To get Bootsplash working on your Debian machine, you will need:
/usr/srcdirectory.
srcgroup.
Updated: 2007-07-09
Back to topSelect Application->Accessories->Terminal and Change directory into source, uncompress the kernel source file and create a symbolic link to it.
$ cd /usr/src $ tar --bzip2 -xf linux-source-2.6.18.tar.bz2 $ ln -s linux-source-2.6.18 linux
Edit kernel-pkg.conf
, to add maintainer, email and version information. You will need to SU to root prompt to accomplish that.
$ su # editor /etc/kernel-pkg.conf # exit
... # The maintainer information. maintainer := Linuxvillage.ca email := support@linuxvillage.ca ... # debian = $(version)-0.01.Custom debian = 10.03 ...
Test patch the kernel, if no errors patch it.
$ cd /usr/src/linux $ cat /usr/src/bootsplash-3.1.6-2.6.18.diff | patch -p1 --dry-run $ cat /usr/src/bootsplash-3.1.6-2.6.18.diff | patch -p1
Copy init-suspend2
to /etc/initramfs-tools/scripts/init-premount/
if you also have suspend2 enabled.
See Software Suspend2 for details.
$ su # cp /usr/src/init-suspend2 /etc/initramfs-tools/scripts/init-premount # exit
Get a copy the running kernel's configuration as a starting point. Replace the name found in /boot
directory.
Change directory to source, initialize the environment and configure kernel.
$ cp /boot/config-2.6.18-7-k7 /usr/src/linux/.config $ cd /usr/src/linux $ make menuconfig
In menuconfig:
[*] Support for frame buffer devices,
[*] VESA VGA Graphics Support,
[*] VGA text console,
[*] Video mode selection support,
[*] Framebuffer Console support,
[*]Framebuffer Console rotation.
[*]Select compiled-in fonts,and select a few fonts,
Bootsplash.
Note: Don't be tempted to turn on hardware specific framebuffer driver support; use the generic VESA vga graphics support instead.
Compile the kernel.
$ cd /usr/src/linux $ make-kpkg clean $ fakeroot make-kpkg --initrd --append_to_version -custom kernel_image modules_image
If there are no errors, remove the init-suspend2 file and install the custom kenrel.
$ cd /usr/src $ su # rm /etc/initramfs-tools/scripts/init-premount/init-suspend2 # dpkg -i linux-image-2.6.18-7-custom_10.03_i386.deb # exit
That's it for kernel compile and patching.
Updated: 2007-09-05
Back to topAfter bootsplash program from Synaptic Package Manager was installed. A few extra configurations are needed. Each computer model may have slightly different settings, the patchset form the private repository contain patch files to update them automatically. Alternately, a separate rc.patch file is provided for your convenience in the Downloads section.
To fix the bootsplash progress bar, Select Application->Accessories->Root Terminal and rc startup script file.
# cd /etc/initrd # cat /usr/src/rc.patch | patch -p1 --dry-run # cat /usr/src/rc.patch | patch -p1
If the bootsplash-theme was downloaded manually and it is a Debian package, do the following:
# dpkg -i bootsplash-theme-XXX-XXX.deb # dpkg-reconfigure bootsplash
If downloading through apt-get or synaptic manager just run:
# dpkg-reconfigure bootsplash.
If downloading the bootsplash-theme.tar.gz package, you will need to untar it and place in /etc/bootsplash/theme
directory manually.
You may need to change the symbolic link for the current theme.
Updated: 2007-09-05
Back to topEdit grub parameters in /boot/grub/menu.lst
and add the console resolution parameters.
# defoptions=... vga=794 splash=silent # altoptions=(single-user mode) single splash=verbose ...
Update grub. Make sure not to update the kernel parameters in the selection menu because they would disappear mysteriously next time grub is updated. Check the updated menu.lst file with less.
$ su # editor /boot/grub/menu.lst # update-grub # less /boot/grub/menu.lst # exit
The vga parameter has the following possible values:
| Color depth | 640x480 | 800x600 | 1024x768 | 1280x1024 | 1400x1050 | 1600x1200 |
|---|---|---|---|---|---|---|
| 15-bit | 784 | 787 | 790 | 793 | 832 | 797 |
| 16-bit | 785 | 788 | 791 | 794 | 833 | 798 |
| 24-bit | 786 | 789 | 792 | 795 | 834 | 799 |
Updated: 2007-09-05
Back to top/boot/grub/menu.lst. Check also to see if the vga=video mode is the same as the resolution chosen in dpkg-reconfigure bootsplash.
# update-initramfs -uto recreate initrd image.
Updated: 2007-09-05
Back to topLinux Desktop Hacks- Tips & Tools for Customizing and Optimizing your OS. By Nicholas Petreley, Jono Bacon. First Edition March 2005.