Step 1: edit gdm.conf to enable tcp listen
sudo nano /etc/gdm/gdm.conf
Find the line containing DisallowTCP=true and change it to DisallowTCP=false
Step 2: Kill the current gdm
sudo killall gdm
Step 3: login on a text terminal and relaunch gdm
sudo /usr/sbin/gdm
Step 4: check all is ok
$ sudo netstat -ntlp | grep 6000
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 13765/X
tcp6 0 0 :::6000 :::* LISTEN 13765/X
