Step 1: Acquire the hardware.
A raspberry pi -- Model A will work fine, I have the original Model B which has the same specs as the new Model A (minus network).
A pan/tilt bracket
A GPIO Ribbin Cable
A Pi-Supported Webcam -- I used a Logitech C210
Assuming you already have a raspberry pi and a webcam the additional hardware will run you about $25