How is demat account opened

What are the different steps involved in opening a Demat account?,