Method 1:
1,vi /etc/gdm/custom.conf
[xdmcp]
Enable=ture
[security]
AllowRemoteRoot=true
2,Reboot computer.
Method 2:
1,Logon to server's graphic interface by monitor or VNC.
2,Run gdmsetup, and change related configuration.
3,Reboot computer.