Skip to main content

Custom d-i banner for your Debian blend

The GUI version of the Debian Installer (d-i for short) comes with a pinkish banner with Offical debian logo and GNU/Linux text embossed. If you are going to use live-installer tool to create a Debian Blend you may as well like to have your own d-i banner for your blend. Here are the quick steps:

  • Open GIMP image editor tool and create a new image of size 800x75 pixels. 800 corresponds to vga=788, which is the default command line option for vga, passed in boot menu.
  • Create the banner that suites your tastes and save the image as banner.png
  • Select menu->image->Flatten Image to flatten the image (i.e., remove Alpha) and save it again.
Now, your banner is ready to use. You can use a custom binary-hook script in live-helper such as the following, to get your banner replacing the original d-i banner. The below hook is derived from live-helper configuration for Webconverger.

#!/bin/sh
# This is an binary hook for live-helper(7) to overwrite the banner
# in the graphical Debian Installer. To enable it, coppy or symlink
# this hook into your config/binary_local-hooks directory and add a
# replacement banner.png at:
#  config/binary_local-includes/binary/install/banner.png

# The file should be a PNG image of dimensions 800 x 75.

set -e

TARGET_INITRD=”binary/install/gtk/initrd.gz”
REPACK_TMPDIR=”unpacked-initrd”

# cpio does not have a “extract to directory”, so we must change directory

mkdir -p ${REPACK_TMPDIR}
cd ${REPACK_TMPDIR}
gzip -d  ../${TARGET_INITRD}
cd ..
rm -rf ${REPACK_TMPDIR}
Then, go ahead and build your Debian blend with debian-installer option enabled in your live-helper configuration. If all goes well, you should see your custom banner in d-i (Graphical install option).

Comments

Popular posts from this blog

Using USB CDMA modem to setup a home/private WiFi network

The idea here is to give a ‘how-to’ on setting up a a home WiFi network using mobile, CDMA based USB modem, hoping that bandwidth that you obtain from this service is satisfactory :-)

Hardware Requirements:
Linux PC/Notebook/Netbook
Wifi Access point connected to ethernet port of the Linux box
CDMA-1x USB Modem (Device used: Reliance M880)

Software/OS Requirements:
Linux Operating System with “usbserial” and “cdc_acm” device driver modules
“pppd”, “wvdial”, “iptables”, and “dnsmasq” applications and their dependencies installed on the System

Setup: The steps followed in setting up this CDMA based connectivity can be split into 3 steps, as follows.
Configuring kernel modules for auto-loading at bootupConfiguring “wvdial” application for dialup / ppp connectionInitializing / starting the CDMA modem connectionSetting up “iptables” for NAT forwardingSetting up “dnsmasq” for resolving DNS and as DHCP server
Configuring kernel modules for auto-loading at bootup
Open a terminal and type the co…

Debian Squeeze and Mac OSX Lion - Dual boot

With Mac OSX Snow Leopard, things were much simpler to install and run a Linux operating system just by using rEFIt boot manager utility, on my Mac Mini(4,1 Mid-2010 model). With the introduction of Lion, Apple has introduced a hidden, OS recovery partition. In total, there will be 3 partitions for Mac OSX alone, for Lion. They are ESP (EFI System Partition), Mac OSX installation partition and, the OS recovery partition. Also, as per the GUID Partition Table(GPT) which Mac uses, there can be maximum of 4 primary partitions, with no scope for Extended partitions like in typical MSDOS Partition Table setup. It is also recommended to follow GPT when using Mac.

With all these constraints, I'm actually left with one partition where I can install and run GNU/Linux (in this case, Debian Squeeze). I didn't try resizing an existing Mac OSX installation partition and creating an Ext4 partition for Linux. Rather, I choose to go for fresh installation. You can try with the resizing method…

Creating GRUB/Syslinux splash images

GRUB splash image creation:
Open GIMP application.Create an image of size 640x480 pixels. You may open an existing image and resize it too.Reduce the number of colors to 14 by selecting menu item “Image->Mode->Indexed”. Don’t use any color dithering.Save the resulting image as splash.xpm and close GIMP.Compress the image file by running; gzip splash.xpmCopy the resulting splash.xpm.gz file to /boot/grub.Run update-grub to upgrade the grub configuration to include this splash image.
Syslinux splash image creation:
Open GIMP application.Create an image of size 640x480 pixels. You may open an existing image and resize it too.Reduce the number of colors to 14 by selecting menu item “Image->Mode->Indexed”. Don’t use any color dithering.Save the resulting image as splash.ppm and close GIMP.Install the package syslinux-common by running; apt-get install syslinux-common as sudo/root. Convert the saved image to syslinux format by running; ppmtolss16 ‘#ffffff=7’ <splash.ppm >spl…