how can i enter in nse and bse.?

tell me briefly that how can i invest in bse and nse market.and please tell me step by step.first of all what can i do for this,then second step and then third.i want to invest can i purchase a share of a company,and how can i sells it?wat is the requirment of this.