gdm: prepare to running gdm