How do I apply for the German residence once I have arrived?

After students are enrolled and have registered their place of living at the townhall they can apply for the residence permit.