Step 1: obtain an EU residence document
Step 2: register your address and get a CPR number.
Step 3: request NemID
Step 4: apply for a tax card