Moving to St Petersburg........

Can anybody give me advice on how best and easiest way to go about getting permission to live there.It seems like a bit of a bureaucratic nightmare....I was hoping to move in with my girlfriend in St Petersburg....

hi to live here you have to marry or to buy permission