Running 'nweb' on Mac OS X

For some time I've admired the simple web server code called nweb, which can be found here. It's written in C and shows how you can build a nice simple little HTTP server without scary amounts of code. The code even runs on the Raspberry Pi.

It's written for Unix and Linux systems, but I wanted to see if it would work on my MacBook (which runs Mac OS X, obviously). Since Mac OS X has a Unix heritage, I hoped it would work without too much trouble...

So I fired up Xcode and created a blank "Command Line" application in C, then I just pasted in the nweb source code. It gave just one compilation error.

All I needed to do was replace SIGCLD with SIGCHLD in one line of code. Then it worked! Nice.

So that's awesome, a very handy little command line web server for Mac OS X.

I'm sure I will find a use for that. The old brain cogs are whirring as I type this in fact.

Unix v1: taking IsoCobbler for a spin

After finding that Unix v1 was out there, and that it can run on the PDP-11, I thought that it was an ideal target for taking my IsoCobbler tool for a spin. So this is how I used IsoCobbler to make a bootable CD containing the first version of Unix, circa 1972:

1) Download a copy of SIMH 3.81 for DOS, from this location:
2) Inside the "" file, find this path: simh/pdp11/unixv1. Extract the 6 files inside to a folder.
3) With the extracted files, rename unixv1.bat to start.bat. This will then be started automatically by the disk image.
4) Now add the files in the folder to a new zip file called This zip file will be inflated automatically when your boot disk starts.
5) Get IsoCobbler and move your file into the same folder as the IsoCobbler binaries.
6) Run CobblerConsole (as an administrator), and enter these commands:
   SAVE unix1.iso
7) You should now see a file called UNIX1.ISO in the folder containing the IsoCobbler binaries.

That's it! You have made a bootable ISO containing First Edition Unix. When you boot from the ISO and you're prompted, login as root.  Oh, here's the one I created:

  IsoCobbler CD image with Unix v1