Por que o uso do parâmetro “autorun” do xRDP não consegue se conectar ao servidor VNC?

1

Estou executando o Linux 4.4.48-2-ARCH # 1 SMP seg 13 de fevereiro 19:47:53 MST 2017 armv7l GNU / Linux em um Raspberry Pi 3.

Aplicativos instalados relevantes

  • xrdp
  • tigervnc
  • lightdm
  • Xdmcp
  • systemd

Situação

Trabalhando

  1. O LightDM está em execução sem o assento automático ativado para que possa ser executado em segundo plano.
  2. Faça logon usando a Área de Trabalho Remota na máquina Windows pela porta 3389 (padrão para rdp) selecionando manualmente "vnc-any" no menu ( autorun= está comentado em /etc/xrdp/xrdp.ini ).
  3. Conecte-se ao servidor TigerVNC acima de 5900, que está no modo multiusuário, usando um soquete systemd para iniciar as sessões por login que usam o LightDM.

Não funciona

As mesmas etapas acima, exceto a configuração autorun=xrdp4 in /etc/xrdp/xrdp.ini , de modo que eu possa pular o menu de login do xrdp.

[xrdp4]
name=vnc-any
lib=libvnc.so
ip=127.0.0.1
port=5900
username=na
password=na

Configuração TigerVNC

/etc/systemd/system/xvnc.socket

[Unit]
Description=XVNC Server

[Socket]
ListenStream=5900
Accept=yes

[Install]
WantedBy=sockets.target

/ etc / systemd / system / xvnc @ service

[Unit]
Description=XVNC Server

[Socket]
ListenStream=5900
Accept=yes

[Install]
WantedBy=sockets.target
[root@archpi system]# cat [email protected]
[Unit]
Description=XVNC Per-Connection Daemon

[Service]
ExecStart=-/usr/bin/Xvnc -inetd -query localhost -once -SecurityTypes=None
User=nobody
StandardInput=socket
StandardError=syslog

Saída do log xRDP

[20170216-18:19:59] [INFO ] A connection received from: 10.18.0.57 port 58163
[20170216-18:19:59] [INFO ] An established connection closed to endpoint: 10.18.0.57:58163 - socket: 8
[20170216-18:19:59] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
[20170216-18:19:59] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 8
[20170216-18:19:59] [INFO ] A connection received from: 10.18.0.57 port 58164
[20170216-18:19:59] [INFO ] An established connection closed to endpoint: 10.18.0.57:58164 - socket: 8
[20170216-18:19:59] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
[20170216-18:19:59] [DEBUG] MCS_CJRQ - channel join request received
[20170216-18:20:00] [DEBUG] MCS_CJRQ - channel join request received
[20170216-18:20:00] [DEBUG] MCS_CJRQ - channel join request received
[20170216-18:20:00] [DEBUG] MCS_CJRQ - channel join request received
[20170216-18:20:00] [DEBUG] xrdp_0000065c_wm_login_mode_event_00000001
[20170216-18:20:00] [WARN ] local keymap file for 0x0407 found and dosen't match built in keymap, using local keymap file
[20170216-18:20:00] [INFO ] The following channel is allowed: rdpdr (0)
[20170216-18:20:00] [INFO ] The following channel is allowed: rdpsnd (1)
[20170216-18:20:00] [INFO ] The following channel is allowed: cliprdr (2)
[20170216-18:20:00] [INFO ] The following channel is allowed: drdynvc (3)
[20170216-18:20:00] [DEBUG] The allow channel list now initialized for this session
[20170216-18:20:00] [DEBUG] returnvalue from xrdp_mm_connect 0
[20170216-18:20:00] [INFO ] An established connection closed to endpoint: 10.18.0.57:58164 - socket: 8
[20170216-18:20:00] [DEBUG] xrdp_mm_module_cleanup
[20170216-18:20:00] [DEBUG] VNC mod_exit
[20170216-18:20:00] [INFO ] An established connection closed to endpoint: 127.0.0.1:5900 - socket: 11
    
por Jonathan Komar 16.02.2017 / 19:18

0 respostas