In addition to CanisLucidus's great advice, there's a great tutorial written by RareCola about what things to do before bed that are conducive to lucid dreaming:

Night-Time Routine Guide for Dream Recall and Lucidity