2026-03-19

lastb on Debian

 
So there is this post  which says:
"Yes, the people who are likely to care are admins with cobwebby
homebrew cronjobs that regularly generate painstakingly formatted
security reports and send them to the fax machine, or whatever."


...I feel extremely personally attacked by this :)
(Replace fax with mail, or whatever.)

I want my freshly upgraded to Debian Trixie Raspberry Pi to keep sending this cobwebby report... even if it is only for a couple of years to come... thus:

How to get lastb back on Debian


install dependencies:
apt install build-essential gettext autoconf flex bison libtool autopoint

get the source:
git clone https://github.com/util-linux/util-linux.git

rtfm:
cd util-linux
more Documentation/howto-compilation.txt 


compile:
./autogen.sh && ./configure --disable-all-programs --enable-last
make last


install:
cp ./last /usr/bin/last
ln -s /usr/bin/last /usr/bin/lastb


happiness:
# lastb

btmp begins Thu Dec  4 15:50:47 2025