In Canada the first step to legal gun ownership is emailing the RCMP and asking for gun safety training. Then they email you back a list of qualified instructors in your city.
Once you get the safety training then you can apply for a Possession and Acquisition License which allows you to buy firearms and ammunition. Once in possession of a firearm you need go register it so that if you are caught with it you don't get in trouble.
"Restricted" firearms include hand guns and revolvers so if you want one of those then you need to repeat the process once more including the safety training and get a Restricted Possession and Acquisition License