How to demat account

What is the general process to set up or manage a demat account?