Here is a pdf on the topic, I would give credit to whoever it was that posted it a while back, but I don't recall who. It is detailed, I use a simplified system very similar to this.

http://sustainable.cchrc.org/docs/REMOTE_Manual.pdf

Tim