Jonathan McDowell: Prettifying Debian boot output
Being a bit of a freak I actually tend to read my boot output. Well, when I'm not using that time to go grab a cup of coffee first thing on a Monday morning. However I don't always find Debian's default output as clear as I'd like (especially when I haven't had that coffee yet, or when I'm half watching a remote machine boot over its serial console). ISTR that RedHat had much nicer boot output (I'm talking about text based here, not the fancy Plymouth stuff) with a row of OK/FAILED etc down the right hand side that made it nice and obvious what was happening. Of course we can do that with Debian, at least for packages that use the lsb-base logging functions. Drop the following into /etc/lsb-base-logging.sh and enjoy a slightly prettier boot. I'm slowly filing wishlist bugs with patches for those bits and pieces I use that don't use lsb-base for their init script logging.
# Colour our init scripts output
# int log_end_message (int exitstatus)
log_end_msg ()
# If no arguments were passed, return
if [ -z "$ 1:- " ]; then
return 1
fi
retval=$1
log_end_msg_pre "$@"
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
if log_use_fancy_output; then
RED= $TPUT setaf 1
GREEN= $TPUT setaf 2
YELLOW= $TPUT setaf 3
NORMAL= $TPUT sgr0
$TPUT hpa $(( $TPUT cols - 12))
else
RED=''
GREEN=''
YELLOW=''
NORMAL=''
fi
if [ $1 -eq 0 ]; then
/bin/echo -e " [ $ GREEN OK$ NORMAL ]"
elif [ $1 -eq 255 ]; then
/bin/echo -e " [$ YELLOW WARNING!$ NORMAL ]"
else
/bin/echo -e " [ $ RED FAILED$ NORMAL ]"
fi
log_end_msg_post "$@"
return $retval
log_action_end_msg ()
log_action_end_msg_pre "$@"
if [ -z "$ 2:- " ]; then
end=""
else
end=" ($2)"
fi
/bin/echo -n "$ end "
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
if log_use_fancy_output; then
RED= $TPUT setaf 1
BLUE= $TPUT setaf 4
NORMAL= $TPUT sgr0
$TPUT hpa $(( $TPUT cols - 12))
else
RED=''
BLUE=''
NORMAL=''
fi
if [ $1 -eq 0 ]; then
/bin/echo -e " [ $ BLUE DONE$ NORMAL ]"
else
/bin/echo -e " [ $ RED FAILED$ NORMAL ]"
fi
log_action_end_msg_post "$@"
(This is mostly for my own future reference, because I keep trying to search for details on it and not finding exactly what I want. I forget where I even found the basis for this, though there are lots of similar snippets out there. I've not tried it with a concurrency based boot so it may well look horrible under that.)
The shiny new 0.2.1 release of

5 years ago I founded my own company
Debian's package manager dpkg has the perhaps unique feature that it distinguishes between removing and purging a package. Removing it removes the program files but keeps the configuration files (and sometimes the logs) around, purging it really removes everything. While this distinction undoubtedly has some uses, I have found that I almost never make use of it. I think in about six years of using Debian I have actually needed a remove-but-not-purge functionality about five times, during some really tricky upgrades (and using Aptitude instead of APT might have helped, not sure) and once when I wanted to build a package that had a build dependency that conflicted with a package I had installed (cowbuilder came later).
After
Is it just me, or did Jeff Addiss just say, Fuck you dolphin,
fuck you, whale. ?

I run a
With the help of a couple of friends, we ve put a 4.5T RAID-5 machine on our network and I m trying to figure out how to share the storage with the rest of the hosts. In the past, I have used NFS and CIFS/Samba to provide access to remote hosts. This has generally worked okay so long as the server stays online.
I don t know if the results are going to be much different, but I am now trying a different approach. I plan to run an iSCSI server, and I ve already configured AoE (ATA over Ethernet). I ve exported a block device on the network segment and mounted it on a remote host. This was pretty easy to configure. There is a bit of documentation on the internet already, but I ll give another quick overview.
I gave the storage server the unoriginal name san0 . This host is running debian lenny. I am testing the configuration from my debian sid development host, which has the similarly unoriginal name dev0 . So, think server when you see san0 and client when you see dev0 .
I assume that you ve already got an LVM volume group set up. Mine is called vg0 . Correct the following examples to account for any differences. You can use disk partitions instead of LVM logical volumes.
Yes, aptitude can list packages by priority, but what I wanted was a simple list of just package names. I've got two ways of getting a bare list: