winapps-org / winapps

The winapps main project, forked from https://github.com/Fmstrat/winapps/
544 stars 26 forks source link

bin/winapps check opens black fullscreen window #112

Closed kaanchinar closed 1 month ago

kaanchinar commented 1 month ago

I switched to Docker image because KVM method became obsolete.

After that steps, I get black screen certificate dialog on terminal.

[14:21:53:801] [11535:00002d10] [INFO][com.freerdp.client.x11] - [xf_setup_x11]: Enabling X11 debug mode.
[14:21:53:879] [11535:00002d10] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0
[14:21:53:879] [11535:00002d10] [WARN][com.freerdp.crypto] - [verify_cb]: CN = RDPWindows
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: New host key for 127.0.0.1:3389
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: @    WARNING: NEW HOST IDENTIFICATION!     @
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: The fingerprint for the host key sent by the remote host is 77:f5:3a:d7:3a:a0:32:94:eb:94:73:c7:ef:ab:6c:a6:f0:16:22:65:72:c4:05:75:17:2b:32:30:cb:e5:25:da
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: Please contact your system administrator.
[14:21:53:880] [11535:00002d10] [ERROR][com.freerdp.crypto] - [tls_print_certificate_error]: Add correct host key in /home/kaan/.config/freerdp/server/127.0.0.1_3389.pem to get rid of this message.
!!!Certificate for 127.0.0.1:3389 (RDP-Server) has changed!!!

New Certificate details:
        Common Name: RDPWindows
        Subject:     CN = RDPWindows
        Issuer:      CN = RDPWindows
        Thumbprint:  77:f5:3a:d7:3a:a0:32:94:eb:94:73:c7:ef:ab:6c:a6:f0:16:22:65:72:c4:05:75:17:2b:32:30:cb:e5:25:da

Old Certificate details:
        Subject:     CN = DOCKERW-P9QGR4G
        Issuer:      CN = DOCKERW-P9QGR4G
        Thumbprint:  7a:5e:1e:7e:33:8c:02:22:d6:bf:f2:6b:e7:5e:84:14:b6:45:e7:7d:ce:b1:74:ce:a4:89:3d:5f:71:19:e2:52

The above X.509 certificate does not match the certificate used for previous connections.
This may indicate that the certificate has been tampered with.
Please contact the administrator of the RDP server and clarify.
Do you trust the above certificate? (Y/T/N) y
[14:21:58:965] [11535:00002d10] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5glue_get_init_creds (Client 'Docker@ATHENA.MIT.EDU' not found in Kerberos database [-1765328378])
[14:21:59:781] [11535:00002d10] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5glue_get_init_creds (Client 'Docker@ATHENA.MIT.EDU' not found in Kerberos database [-1765328378])
[14:21:59:814] [11535:00002d10] [INFO][com.winpr.timezone] - [winpr_detect_windows_time_zone]: tzid: Asia/Baku
[14:21:59:814] [11535:00002d10] [ERROR][com.winpr.timezone] - [winpr_get_current_time_zone_rule]: Unable to get current timezone rule
[14:21:59:817] [11535:00002d10] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping.
[14:22:00:967] [11535:00002d10] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format  PIXEL_FORMAT_BGRA32
[14:22:00:967] [11535:00002d10] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32
[14:22:00:969] [11535:00002d40] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static)
[14:22:00:969] [11535:00002d10] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd
[14:22:00:969] [11535:00002d10] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput
[14:22:00:969] [11535:00002d10] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx
[14:22:00:969] [11535:00002d10] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp
[14:22:00:969] [11535:00002d10] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd
[14:22:00:782] [11535:00002d45] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd
[14:22:00:790] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:792] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:792] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:22:00:800] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:800] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:22:00:801] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:801] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:22:00:818] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:818] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:22:00:860] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:22:00:860] [11535:00002d10] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:22:00:865] [11535:00002d10] [INFO][com.freerdp.client.x11] - [xf_logon_error_info]: Logon Error Info LOGON_FAILED_OTHER [LOGON_MSG_BUMP_OPTIONS]

Here is full logs on my terminal.

My host specs:

I use FreeRDP3 from repo.

xfreerdp3 --version
This is FreeRDP version 3.5.1 (n/a)

My winapps.conf file:

RDP_USER="Docker"
RDP_PASS="1"
#RDP_DOMAIN="MYDOMAIN"
RDP_IP="127.0.0.1"
RDP_SCALE=100
#RDP_FLAGS=""
#MULTIMON="true"
#DEBUG="true"
FREERDP_COMMAND="xfreerdp3"
XperiorTR commented 1 month ago

I'm having the same exact issue on

LDprg commented 1 month ago

The error log says that it wasn't able to create the x11 window. So it seems like a freerdp bug. Check of xwayland is installed and working. But I am afraid it another of those wayland related bugs.

Note: Wayland is not supported until sdl-freerdp has support for streaming only a specific app. xfreerdp with xwayland is know to have strange bugs and is not supported by winapps or freerdp. This will change in the future, but might take a while.

kaanchinar commented 1 month ago

I use Xwayland already, I guess.

Graphics:
  Device-1: NVIDIA AD107 [GeForce RTX 4060] vendor: Gigabyte driver: nvidia
    v: 555.42.02 arch: Lovelace pcie: speed: 5 GT/s lanes: 8 ports: active: none
    off: HDMI-A-2 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:2882
  Device-2: AMD Raphael vendor: Micro-Star MSI driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none empty: DP-3,
    DP-4, DP-5, HDMI-A-3, Writeback-1 bus-ID: 10:00.0 chip-ID: 1002:164e
    temp: 39.0 C
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: X: loaded: nvidia gpu: nvidia,amdgpu
    display-ID: 0
  Monitor-1: HDMI-A-2 res: 1920x1080 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: radeonsi
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland:
    drv: nvidia x11: drv: zink inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 555.42.02
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4060/PCIe/SSE2
    display-ID: :1.0
  API: Vulkan v: 1.3.279 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: nvidia device-ID: 10de:2882
oskardotglobal commented 1 month ago

This is an issue with xfreerdp on wayland. Wayland is currently unsupported, see #19 for more information.