Home of the quasi-official Hiawatha Webserver Debian packages


Of all the scripts I've written over the course of the last several years, there are a handful which I keep coming back to. Thus they contain some utility, at least for me. Perhaps they might save you some time as well.

RamNode Primer [download] — The RamNode Primer was initially written when RamNode's only available Debian image for OpenVZ was quite sloppy out-of-the-box. The situation has improved a lot since then, but the script still has a lot of practical value. It will do the following when run on a newly-provisioned RamNode OpenVZ host: purge lots of default cruft, add some new mirrors, update system packages, install some common and useful tools, harden the system, setup a non-root admin user, and more. After which, the system can be used as a light, secure and up-to-date platform for whatever purposes you intend.

HPKP Generator [download] — Getting HTTP public key pinning correct is a hassle. It's already stressful enough to begin with since, should you make a big enough mistake, it has the potential to break your website for a very long while. I wrote this script to at least ease the preperation phase for deploying HPKP, as it handles many of the more pedantic details for you. See my article "A script to simplify HPKP" for more detail.

XFS Optimizer [download] — I wrote this tool primarily to be called via cron on systems which utilize XFS, the popular, high-performance 64-bit journaling file system by SGI. It checks to make sure underlying mdadm RAID devices are healthy before reordering the filesystem for optimal fragmentation.

Red Hat RNGD Init [download] — Years ago, I noticed that there was no init script for RNGD on Red Hat or CentOS. There was a bug report with a proposed script, but it was never accepted, and further, contained several pretty fundamental bugs. I did some cursory fixes, so it'd at least run, and put it up on my old wiki for others in the same situation. It's been downloaded thousands of times over the years, so I'm guessing this is still a problem for at least some Red Hat users out there. For that reason, I've preserved it here for you ‐ warts and all.

MySQL Tuning Primer [download] — Matthew Montgomery wrote the extremely useful MySQL Tuning Primer script several years ago to give us non-career-DBA types a quick overview of our databases for the purposes of identifying and correcting shortcomings in MySQL tuning policies. Since it hasn't been updated since 2011-08-06, I thought I'd patch it to work on current versions of MySQL (including MariaDB and Percona) and host it here. That said, these days you're probably better off using MySQLTuner-perl instead.

Media Scripts

FLAC Distiller [download] — A FLAC to MP3 transcoder script which works on multiple files in parallel. I wrote it to seamlessly transcode the lossless FLAC music I'd been purchasing to near-lossless MP3's for use on various commodity media devices, such as my phone or my car's stereo system. Just point it at one or more FLAC files, or directories containing your FLAC files, and it'll transcode them to VBR MP3's for you (without destroying the source media in the process). FLAC-Distiller even preserves metatags as part of the transcoding process.

MP3-O-Matic [download] — Similar to FLAC Distiller, MP3-O-Matic transcodes raw PCM "WAV" files, in parallel, into near-lossless VBR MP3 files. It can optionally normalize audio volume as part of the process. This can be especially handy in a studio environment where one is working with lots of raw files.

Debian Packages

For a while now, I've been hosting some Debian packages which I was building for my own use, but thought might hold some value to others also. The most noteworthy of these is Hiawatha Webserver, which is a secure, reliable, modern webserver written by Hugo Leisink and released under the GNU GPL. Hiawatha has some interesting security features, its configuration format is refreshingly sane, and it scales well on everything from tiny, embedded systems to extremely busy servers handling millions of requests daily.

Since Hiawatha isn't included in mainstream Debian, and because it's nice to track the latest stable version rather than backporting bugfixes, I'm making my own builds available to you here. I also host a secure apt repository which contains exactly the same packages. I'd recommend using the repository if you plan to use Hiawatha in the long term.

All builds are compiled in a secure, clean-room environment with minimal dependencies, and should work on Debian 7 (Wheezy-LTS), 8 (Jessie-LTS), 9 (Stretch), and probably Sid as well as certain downstream distributions such as Ubuntu, Mint, and the like. Since it makes a surprisingly large performance impact, in addition to the standard AMD64 and i386 packages I've also built a non-standard i686 variation which is targeted at CPUs which support the accelerated instruction sets of the Intel Pentium 3 and later. If you're running Hiawatha on a 32-bit architecture and your CPU isn't too ancient, you'll likely prefer the i686 builds. Note that the non-standard i686 package isn't available via apt for technical reasons so, if you want to use that oddball package, you'll need to download it directly.

Content ©2020 TuxHelp.org