winapps-org / winapps

The winapps main project, forked from https://github.com/Fmstrat/winapps/
Other
1.21k stars 57 forks source link

Issue with Custom freerdp Command in Flatpak Installation #117

Closed eternity4318 closed 4 months ago

eternity4318 commented 5 months ago

I am experiencing an issue with xfreerdp version 3 installed via Flatpak. When I specify the custom xfreerdp command flatpak run com.freerdp.FreeRDP, I receive you have supplied a custom FreeRDP command, but the command is not available.

oskardotglobal commented 5 months ago

The config option has to be a single command. However, you could write a shell wrapper, make it executable and specity that in the config like:

#!/usr/bin/env bash
flatpak run --command=xfreerdp com.freerdp.FreeRDP "$@"

Make sure the flatpak version is freerdp3 though.

eternity4318 commented 5 months ago

Thank you so much for your help.

After I created the above command and ran bin/winapps check, the screen freezes up (either trying to log in or just a black screen). Could this be due to not deleting known hosts? If yes, I can't seem to find the file in Flatpak.

LDprg commented 5 months ago

@menachem1 Could you post your system info and winapps logs?

eternity4318 commented 5 months ago

Thank you for taking the time to help. Here is my bin/winapps check logs. I ran it twice, and here are the results.

Time one: `[21:49:19:920] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: [experimental] sdl-freerdp client is currently experimental! [21:49:19:926] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: If problems occur please check https://github.com/FreeRDP/FreeRDP/issues for known issues or create a new one! [21:49:19:926] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: Developers hang out in https://matrix.to/#/#FreeRDP:matrix.org?via=matrix.org - dont hesitate to ask some questions. (replies might take some time depending on your timezone) [21:49:20:186] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0 [21:49:20:186] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: CN = DOCKERW-TIOR4CD

[21:49:20:377] [2:00000004] [INFO][com.winpr.timezone] - [winpr_detect_windows_time_zone]: tzid: America/New_York [21:49:20:399] [2:00000004] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping. [21:49:22:992] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] OpenGL shaders: ENABLED [21:49:22:992] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] Created renderer: opengl [21:49:23:62] [2:00000004] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format PIXEL_FORMAT_BGRA32 [21:49:23:62] [2:00000004] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32 [21:49:23:110] [2:00000037] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static) [21:49:23:124] [2:00000004] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd [21:49:23:124] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput [21:49:23:126] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx [21:49:23:126] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp [21:49:23:126] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd [21:49:23:468] [2:0000003c] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd `

Time two: `[21:51:09:344] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: [experimental] sdl-freerdp client is currently experimental! [21:51:09:344] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: If problems occur please check https://github.com/FreeRDP/FreeRDP/issues for known issues or create a new one! [21:51:09:344] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [freerdp_client_warn_experimental]: Developers hang out in https://matrix.to/#/#FreeRDP:matrix.org?via=matrix.org - dont hesitate to ask some questions. (replies might take some time depending on your timezone) [21:51:09:457] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0 [21:51:09:457] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: CN = DOCKERW-TIOR4CD

[21:51:09:465] [2:00000004] [INFO][com.winpr.timezone] - [winpr_detect_windows_time_zone]: tzid: America/New_York [21:51:09:470] [2:00000004] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping. [21:51:09:511] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] OpenGL shaders: ENABLED [21:51:09:511] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] Created renderer: opengl [21:51:09:535] [2:00000004] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format PIXEL_FORMAT_BGRA32 [21:51:09:535] [2:00000004] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32 [21:51:09:573] [2:00000037] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static) [21:51:09:573] [2:00000004] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd [21:51:09:573] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput [21:51:09:573] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx [21:51:09:573] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp [21:51:09:573] [2:00000004] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd [21:51:10:739] [2:0000003c] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd [21:51:10:72] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] OpenGL shaders: ENABLED [21:51:10:72] [2:00000002] [INFO][com.freerdp.client.SDL] - [winpr_LogOutputFunction]: [SDL_LOG_CATEGORY_RENDER] Created renderer: opengl [21:52:13:272] [2:00000037] [INFO][com.freerdp.channels.rdpdr.client] - [device_announce]: registered [ drive] device #1: home (type=8 id=1) [21:52:14:12] [2:0000003c] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::DisplayControl:11} OnOpen=(nil), OnClose=0x7fef6ad5fb60 ^C[21:52:22:563] [2:00000002] [ERROR][com.freerdp.utils.signal] - [term_handler]: Caught signal 'Interrupt' [2] `

Every time I run it, it freezes my screen. also What command should i run to get sys info?

LDprg commented 5 months ago

@menachem1 For sys info just run neofetch.

You are using sdl-freerdp. It doesn't support streaming apps only (this will change but takes some time). Since winapps check runs the explorer it won't work. Use the x11 command instead.

eternity4318 commented 5 months ago

Are you referring to freerdp2-x11 Or is x11 something I can add to the flatpak command?

LDprg commented 4 months ago

Are you referring to freerdp2-x11 Or is x11 something I can add to the flatpak command?

I mean freerdp3-x11.

eternity4318 commented 4 months ago

flatpak with freerdp3-x11 How should I go about enabling x11 with flatpak?

eternity4318 commented 4 months ago

Sorry about all the questions I'm new to this.

MrTumnis commented 4 months ago

Can you share the output of:

inxi -Fxz
eternity4318 commented 4 months ago

System: Kernel: 5.15.0-112-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy Machine: Type: Laptop System: HP product: HP Laptop 15z-ef2xxx v: N/A serial: <superuser required> Mobo: HP model: 887A v: 59.11 serial: <superuser required> UEFI: AMI v: F.17 date: 10/18/2021 Battery: ID-1: BAT0 charge: 9.4 Wh (25.4%) condition: 37.0/37.0 Wh (100.0%) volts: 10.8 min: 11.3 model: HP Primary status: Discharging CPU: Info: 8-core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB Speed (MHz): avg: 1582 high: 1922 min/max: 1400/1800 boost: enabled cores: 1: 1617 2: 1607 3: 1829 4: 1922 5: 1518 6: 1718 7: 1760 8: 1665 9: 1452 10: 1396 11: 1397 12: 1396 13: 1501 14: 1545 15: 1595 16: 1397 bogomips: 57497 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm Graphics: Device-1: AMD Lucienne vendor: Hewlett-Packard driver: amdgpu v: kernel bus-ID: 03:00.0 Device-2: Chicony HP TrueVision HD Camera type: USB driver: uvcvideo bus-ID: 1-3:2 Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa gpu: amdgpu resolution: 1920x1080~60Hz OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.42 5.15.0-112-generic) v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes Audio: Device-1: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 03:00.1 Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel bus-ID: 03:00.5 Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 03:00.6 Sound Server-1: ALSA v: k5.15.0-112-generic running: yes Sound Server-2: PulseAudio v: 15.99.1 running: yes Sound Server-3: PipeWire v: 0.3.48 running: yes Network: Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rtw_8822ce v: N/A port: f000 bus-ID: 01:00.0 IF: wlo1 state: up mac: <filter> IF-ID-1: br-dcd28b2dccf3 state: up speed: 10000 Mbps duplex: unknown mac: <filter> IF-ID-2: docker0 state: down mac: <filter> IF-ID-3: veth30c01b1 state: up speed: 10000 Mbps duplex: full mac: <filter> Bluetooth: Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 1-4:3 Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running rfk-block: hardware: no software: yes address: <filter> Drives: Local Storage: total: 1.14 TiB used: 41.02 GiB (3.5%) ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB temp: 29.9 C ID-2: /dev/sda type: USB model: SSK SSK Storage size: 238.47 GiB Partition: ID-1: / size: 233.21 GiB used: 40.93 GiB (17.6%) fs: ext4 dev: /dev/sda2 ID-2: /boot/efi size: 256 MiB used: 95.3 MiB (37.2%) fs: vfat dev: /dev/nvme0n1p1 Swap: ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) file: /swapfile Sensors: System Temperatures: cpu: 49.0 C mobo: N/A gpu: amdgpu temp: 38.0 C Fan Speeds (RPM): N/A Info: Processes: 415 Uptime: 2m Memory: 14.96 GiB used: 6.66 GiB (44.5%) Init: systemd runlevel: 5 Compilers: gcc: 11.4.0 Packages: 2395 Shell: Bash v: 5.1.16 inxi: 3.3.13

MrTumnis commented 4 months ago

You can try to download http://ports.ubuntu.com/pool/universe/f/freerdp3/freerdp3-x11_3.5.1+dfsg1-0ubuntu1_arm64.deb Then dpkg it. It will likely need the updated dependencies.

eternity4318 commented 4 months ago

I am not using an ARM CPU.

eternity4318 commented 4 months ago

uname -m x86_64

MrTumnis commented 4 months ago

My bad. But the method remains the same. you would just need to locate the freerdp3 deb package.

eternity4318 commented 4 months ago

Basically, I ran into dependency hell trying to install a deb package, but what did work is appending --command=xfreerdp to flatpak run --command=xfreerdp com.freerdp.FreeRDP

Now, the error I'm getting is `bin/winapps check [12:38:04:627] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0 [12:38:04:627] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: CN = DOCKERW-TIOR4CD

[12:38:04:710] [2:00000003] [INFO][com.winpr.timezone] - [winpr_detect_windows_time_zone]: tzid: America/New_York [12:38:04:718] [2:00000003] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping. [12:38:04:29] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format PIXEL_FORMAT_BGRA32 [12:38:04:29] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32 [12:38:04:31] [2:00000029] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static) [12:38:04:56] [2:00000003] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd [12:38:04:56] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput [12:38:04:56] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx [12:38:04:57] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp [12:38:04:57] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd [12:38:05:236] [2:0000002e] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd [12:38:05:510] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow [12:38:05:523] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow

[12:38:05:526] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow

[12:38:05:546] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow

[12:38:05:679] [2:00000003] [INFO][com.freerdp.client.x11] - [xf_logon_error_info]: Logon Error Info LOGON_FAILED_OTHER [LOGON_MSG_BUMP_OPTIONS]

[12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 0: dli_fname=/app/bin/../lib/libwinpr3.so.3 [0x7f79a1263000], dli_sname=winpr_backtrace [0x7f79a12d9b30] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 1: dli_fname=/app/bin/../lib/libwinpr3.so.3 [0x7f79a1263000], dli_sname=winpr_log_backtrace_ex [0x7f79a12db3d0] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 2: dli_fname=xfreerdp [0x55bacadbc000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 3: dli_fname=/usr/lib/x86_64-linux-gnu/libX11.so.6 [0x7f79a1113000], dli_sname=_XError [0x7f79a11600d0] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 4: dli_fname=/usr/lib/x86_64-linux-gnu/libX11.so.6 [0x7f79a1113000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 5: dli_fname=/usr/lib/x86_64-linux-gnu/libX11.so.6 [0x7f79a1113000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 6: dli_fname=/usr/lib/x86_64-linux-gnu/libX11.so.6 [0x7f79a1113000], dli_sname=_XReply [0x7f79a115dba0] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 7: dli_fname=/usr/lib/x86_64-linux-gnu/libX11.so.6 [0x7f79a1113000], dli_sname=XSync [0x7f79a1159050] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 8: dli_fname=xfreerdp [0x55bacadbc000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 9: dli_fname=xfreerdp [0x55bacadbc000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 10: dli_fname=/app/bin/../lib/libwinpr3.so.3 [0x7f79a1263000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 11: dli_fname=/usr/lib/x86_64-linux-gnu/libc.so.6 [0x7f79a0ddf000], dli_sname=(null) [(nil)] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 12: dli_fname=/usr/lib/x86_64-linux-gnu/libc.so.6 [0x7f79a0ddf000], dli_sname=clone [0x7f79a0ef5980] [12:38:05:783] [2:00000003] [ERROR][com.freerdp.client.x11] - [winpr_log_backtrace_ex]: 13: unresolvable, address=(nil) X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 62 (X_CopyArea) Serial number of failed request: 198 Current serial number in output stream: 201 `

MrTumnis commented 4 months ago

You can check out the flatpak docs and possibly enable the x11 socket. https://docs.flatpak.org/en/latest/sandbox-permissions.html

You could also try building the docker container using sudo or create a distrobox of a current distro that already has freerdp3 (ex:Fedora40), download it in the box, then export it to the host.

eternity4318 commented 4 months ago

Ok that works thanks, (only for the check not installer but will look through other issues to see if I can find a solution to that) Thanks again for all your help