How to open demat account procedure

What is the full procedure to open a Demat account?