I recently had to set up a web viewer for a bzr branch hosted on my ubuntu server and decided to go with loggerhead as it seems to be the most commonly used one. However, all the instructions I could find have been written before the inclusion of loggerhead in the ubuntu repositories, so here is an updated tutorial on how to install and configure loggerhead on ubuntu.