You apply for the entry permit (Visa Type-D) and permanent residency at a consular office in your home country. All documentation is submitted by your legal representative to the Directorate for Migration Policy at the Ministry of Migration Policy in Greece.