bandwidthd is a great tool to graph traffic on your network interfaces, especially when you’re acting as an ISP for the better part of the city. Unfortunately, bandwidthd on Ubuntu Precise Pangolin (12.04) stopped getting updated at 2.0.1+cvs20090917-4.1. This package contains a pretty serious bug that causes bandwidthd to lose all data every 6 hours or so. Fortunately, there’s a more recent package (2.0.1+cvs20090917-5) with the fix committed, but it’s only available for Ubuntu 12.10+. (NB: 2.0.1+cvs20090917-7 has a dependency on a higher version of Apache than 12.04 has, so we’re ignoring it.) Solution: backport! (Here’s a dpkg that you can just
dpkg -i if you don’t want to do it yourself.)
It’s actually not very difficult to do a backport, but it’s not trivial the find the correct instructions.
- Grab all sources from LaunchPad: .orig.tar.gz, .debian.tar.gz, .dsc
dpkg-source -x *.dsc
dpkg-buildpackage -rfakeroot -uc -b
dpkg -i bandwidthd_2.0.1+cvs20090917-5_amd64.deb
You will probably also need to install build dependencies, but just
apt-get whatever you need.
This could potentially all be automated with backportpackage, but I haven’t investigated yet.