July 29, 2015

bashttpd – the Bash HTTP server

Filed under: Technical — Tags: , , — James Bunton @ 8:11 pm

So I was bored on the bus trip to work this morning. Back in Uni I’d thought about whether it would be possible to write an HTTP server as a shell script for bash. So I did it! Presenting bashttpd.

(more…)

July 15, 2015

Monitoring hard disks and alerting on errors with smartmontools on Linux

Filed under: Technical — Tags: , — James Bunton @ 12:00 am

A simple configuration to regular check all local disks for errors. Any problems will go to syslog/journald as well as being emailed to root.

(more…)

July 1, 2015

IPv6 with over ADSL with PPP on Debian Linux using Internode

Filed under: Technical — Tags: , , , , , , , , — James Bunton @ 12:00 am

Many years ago Internode started offering IPv6. This is proper dual stack IPv6 with a /56 block of addresses. I get 256 subnets, each with 2^64 addresses. Awesome! I signed on for the trial immediately and got it working without too much difficulty. The documentation wasn’t great though, so here’s how I my setup works today.

(more…)

June 15, 2015

Debian and Arch Linux package cleanup – aptorphan/pacorphan

Filed under: Technical — Tags: , , , , — James Bunton @ 12:00 am

Once upon a time there was a tool called deborphan. It finds orphaned packages which could be removed from the system. You can maintain a list of ‘keepers’ to stop it suggesting removal of things that you want.

I wanted to extend this to work with the builtin “auto-installed” flag that aptitude stores for all packages. I also wanted it to work with Arch Linux.

(more…)

June 1, 2015

iMac G4 as a DVI monitor

Filed under: Technical — Tags: , , — James Bunton @ 12:00 am

A few years ago I found an old iMac G4. It’s now over ten years old and these days PowerPC chips are not too useful. However it did have a very nice 20″ 1680×1050 IPS display in an attractive case.

If only I could connect this display to some other computer! I decided to try to hook it up to the Mac Pro I recently purchased from Atlassian.

I bit of web searching found the incredibly helpful dremeljunkie.com. I discovered that internally the iMac does use the same TMDS signalling as a DVI connector.

That means in theory I just have to hook everything up the right way and it will work! :)

(more…)