BootText

Differences between revisions 2 and 3
Revision 2 as of 2005-07-23 14:26:35
Size: 1801
Editor: gw
Comment:
Revision 3 as of 2005-12-28 17:50:55
Size: 1959
Editor: c01v-212-194-173-185
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:

'''NOTE : does not work with 5.10 Breezy. Use solution given [http://www.ubuntuforums.org/showpost.php?p=395004&postcount=37 there].''' (ed. 28/12/2005)

This will not give you a splash image or hide the boot text. It will only make it look better.

Increase resolution

Edit /boot/grub/menu.lst

sudo gedit /boot/grub/menu.lst

Add vga=792 to your default boot option.

Example:

titleUbuntu, kernel 2.6.10-5-k7 Default 
root(hd0,0)
kernel/vmlinuz root=/dev/hde6 ro quiet splash vga=792
initrd/initrd.img
savedefault
boot

Colorize "[ ok ]"

NOTE : does not work with 5.10 Breezy. Use solution given [http://www.ubuntuforums.org/showpost.php?p=395004&postcount=37 there]. (ed. 28/12/2005)

We make the "[ ok ]" during bootup green

  • Edit /lib/lsb/init-functions

sudo gedit /lib/lsb/init-functions
  • Find the log_end_msg () function, all the way at the bottom of the file and add GREEN=`$TPUT setaf 2` below RED=`$TPUT setaf 1`

  • Change echo "$UP$END[ ok ]" to echo "$UP$END[ ${GREEN}ok${NORMAL} ]"

The function should look like this:

log_end_msg () {

# If no arguments were passed, return
[ -z "$1" ] && return 1

# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
TPUT=/usr/bin/tput
EXPR=/usr/bin/expr
if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ -n "$COLS" ]; then
COL=`$EXPR $COLS - 7`
else
COL=73
fi

UP=`$TPUT cuu1`
END=`$TPUT hpa $COL`
START=`$TPUT hpa 0`
RED=`$TPUT setaf 1`
GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
echo "$UP$END[ ${GREEN}ok${NORMAL} ]"
else
echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]"
fi
else
if [ $1 -eq 0 ]; then
echo "   ...done."
else
echo "   ...fail!"
fi
fi
return $1
}

Finalize

Reboot, and your resolution should be increased. Your [ ok ] messages should now be green.

Credits: [http://www.ubuntuforums.org/showthread.php?t=50054&highlight=spice dudinatrix]


CategoryDocumentation

BootText (last edited 2008-08-06 16:26:27 by localhost)