Summary.

The PICkit connector is 6 pins, but the last pin is the Auxiliary pin.

This pin doesn’t seem to be used that often. The setup could be simplified by snipping the 6th pin.

https://www.kickstarter.com/projects/1897710270/digirule-the-interactive-binary-ruler/posts/1444571

http://www.bradsprojects.com/the-digirule/

After looking in to it, it seems the PICkit 2 is discontinued.

http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DV164121

There isn’t even a download link there for the software.

I found the source code a rather backwards way. The link is here:

http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit2_PK2CMD_WIN32_SourceV1-21_RC1.zip

A newer device file is here (just overwrite):

http://www.microchip.com/forums/download.axd?file=0;749972

I discovered it by grabbing this package, opening the PKGBUILD file. As it turns out, they still have the files on their website, they’re just not linked publicly.

I’m not entirely convinced this is the latest version, but it is what I found.

Build like so.

That should output this:

You can then program a hex file. Before you start, figure out the PIC chip you’re programming, the name of your hex file, and adjust this accordingly.

References:

http://hsblog.mexchip.com/en/2010/07/how-to-use-the-pickit2-programmer-under-linux/

http://curuxa.org/en/Program_PICs_with_a_PICkit2_using_the_command_line_on_Linux

http://www.waveguide.se/?article=programming-pics-using-the-pickit2-and-pk2cmd

http://askubuntu.com/questions/434948/install-archlinux-package-pk2cmd-plus-on-ubuntu-12-04-64bit