Export Display não está funcionando no Ubuntu Gnome (gmd3)

1

Quando tento exportar o monitor remoto, faço:

No meu Ubuntu 17.04:

xhost +
access control disabled, clients can connect from any host

Então eu faço a conexão com o servidor:

ssh user@server

Uma vez no servidor, receba este erro:

user@server:~$ export DISPLAY=my_ip:0.0
user@server:~$ xeyes
Error: Can't open display: my_ip:0.0

Minha configuração do gdm é:

root @ my_ip: /etc/gdm3 # cat custom.conf

# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

[security]
DisallowTCP=false

[xdmcp]
Enable=true
DisplaysPerHost=10 

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true

Versão do GDM3

gdm3 --version
GDM 3.24.0

netstat -puta

Conexiones activas de Internet (servidores y establecidos)
Proto  Recib Enviad Dirección local         Dirección remota       Estado       PID/Program name    
tcp        0      0 0.0.0.0:x11-1           0.0.0.0:*               ESCUCHAR    1477/Xorg           

ps fax | grep X

 1211 tty1     Sl+    0:01  |       \_ /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
 1477 tty2     Sl+    0:35          \_ /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -listen tcp -background none -noreset -keeptty -verbose 3

tcpdump

11:41:20.065425 IP server.41874 > my_ip.x11: Flags [S], seq 1478700027, win 29200, options [mss 1460,sackOK,TS val 22197350 ecr 0,nop,wscale 7], length 0
11:41:20.065447 IP my_ip.x11 > server.41874: Flags [R.], seq 0, ack 1478700028, win 0, length 0
    
por bLuEdDy 29.06.2017 / 11:45

1 resposta

3

Resolvido. O problema estava com o meu número de exibição. Eu supus que meu DISPLAY fosse 0.0 mas:

xdpyinfo | grep display
name of display:    :1

Portanto, o DISPLAY de exportação deve ser:

export DISPLAY=my_ip:1
    
por 29.06.2017 / 15:43