I logged in remotley and did:
sudo service gdm stop sudo /usr/bin/Xorg -br -ac -audit 0 |
And it works. So it is a problem with the gdm custom.conf file.
*edit*
Here is my solution:
1. Disable gdm via grub (I don't need gdm on a remote machine)
In /etc/default/grub set
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text" |
,
than run update-grub
2. In /etc/X11/Xwrapper.config set
3. In /usr/bin/startx set
Done.
Login with ssh and run:
and everything should be fine.