neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.59k stars 1.73k forks source link

Navigation does not work in thinclient_drives with the last PKG #2661

Closed JM-Teule closed 1 year ago

JM-Teule commented 1 year ago

Hello,

With the latest "Sudo Apt -Get Update - Upgrade" in my Buster Raspberry Pi distribution, XRDP has been updated.

The following packages will be updated: "... Vim-Tiny Wireless-Regdb XRDP Xserver-Common Xserver-Xorg-Core XXD"

Since then, navigation does not work in thinclient_drives. The shared file folder appears empty continuously.

The previous version that works (OK):

"PKG_CONFIG_PATH =/BUILD/XRDP-Q47NHL/XRDP-0.9.9/PKGCONFIG" XRDP-OK

The current version that does not work (KO):

"PKG_CONFIG_PATH =/BUILD/XRDP-X6KNLD/XRDP-0.9.9/PKGCONFIG" XRDP-KO

matt335672 commented 1 year ago

What does dpkg -l xrdp give you for both? Has xrdp been patched by the distro?

JM-Teule commented 1 year ago

1- dpkg -l xrdp xRDP OK ii xrdp 0.9.9-1+deb10u1 armhf Remote Desktop Protocol (RDP) server

xRDP KO ii xrdp 0.9.9-1+deb10u3 armhf Remote Desktop Protocol (RDP) server

2- Has xrdp been patched by the distro?

with sudo apt-get update + sudo apt-get upgrade

Lecture des listes de paquets... Fait Construction de l'arbre des dÈpendances
Lecture des informations d'Ètat... Fait Calcul de la mise ‡ jour... Fait Les paquets suivants ont ÈtÈ conservÈs†: libgl1-mesa-dri libjavascriptcoregtk-4.0-18 libvlc-bin libvlc5 libwebkit2gtk-4.0-37 mesa-va-drivers mesa-vdpau-drivers python-rpi.gpio python3-rpi.gpio python3-thonny python3-thonny-pi raspberrypi-sys-mods raspberrypi-ui-mods vlc vlc-bin vlc-data vlc-plugin-base vlc-plugin-qt vlc-plugin-skins2 vlc-plugin-video-output Les paquets suivants seront mis ‡ jour†: curl distro-info-data firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek git git-man isc-dhcp-client isc-dhcp-common libarchive13 libcurl3-gnutls libcurl4 libde265-0 libgif7 libgnutls-dane0 libgnutls30 libgs9 libgs9-common libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libksba8 libmariadb3 libnss3 libopenexr23 libpam-systemd libpcre2-16-0 libpcre2-8-0 libpcre2-posix0 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libssl1.1 libsystemd0 libtasn1-6 libtiff5 libudev1 libudisks2-0 libunbound8 libvlccore9 libxml2 linux-libc-dev mariadb-common mplayer openssl python-cryptography python-werkzeug python3-cryptography python3-werkzeug raspberrypi-bootloader raspberrypi-kernel sudo systemd systemd-sysv tzdata udev udisks2 vim-common vim-tiny wireless-regdb xrdp xserver-common xserver-xorg-core xxd 68 mis ‡ jour, 0 nouvellement installÈs, 0 ‡ enlever et 20 non mis ‡ jour. Il est nÈcessaire de prendre 219 Mo dans les archives. AprËs cette opÈration, 101 Mo d'espace disque supplÈmentaires seront utilisÈs. Souhaitez-vous continuer†? [O/n]

matt335672 commented 1 year ago

The differences between xrdp 0.9.9-1+deb10u1 and xrdp 0.9.9-1+deb10u3 don't seem to be related to this area:-

xrdp (0.9.1-9+deb9u3) stretch; urgency=high

  * Fix patch for CVE-2017-16927. (Closes: #884702)
    + Off-by-one mistake could crash xrdp in some cases.

 -- Dominik George <natureshadow@debian.org>  Thu, 12 Apr 2018 23:43:25 +0200

xrdp (0.9.1-9+deb9u2) stretch; urgency=medium

  * Fix CVE-2017-16927. (Closes: #882463)
  * Fix high CPU load on ssl_tls_accept. (Closes: #884453)

 -- Dominik George <nik@naturalnet.de>  Fri, 15 Dec 2017 19:28:28 +0100

Get a command prompt up. What do you get for ls ~/thinclient_drives?

JM-Teule commented 1 year ago
ls ~/thinclient_drives
My_LC

`ls /home/pi/thinclient_drives/My_LC

2019-10-11-125251_1920x1080_scrot.png '3d Tag Cloud.livecode' 'Achat Web.livecode' advanced-multimedia.livecode aGarderEtiquettesQR.livecode alignement.livecode .... ` and all the share is on the shell but not in pcmanfm of raspbian buster...

One more thing, I uninstalled XRDP and I reinstalled it: no difference.

matt335672 commented 1 year ago

Sorry, I don't understand what you are saying. What is My_LC? Is it a share?

JM-Teule commented 1 year ago

Yes from Microsoft Remote Desktop

Capture d’écran 2023-05-10 à 18 49 05
matt335672 commented 1 year ago

I still don't understand. It sounds to me like xrdp is working properly. Is it just the file manager on the desktop that isn't allowing the browsing?

JM-Teule commented 1 year ago

yes, xrdp working fine, not the mount of thinclient_drives, after the last update of xrdp or something else.

That's just what I indicated from the first post

matt335672 commented 1 year ago

@JM-Teule

I don't think we're understanding each other.

When I say "xrdp is working properly", I'm including the remote mount in that. You can browse files which are being exported by your xrdp client in your xrdp session from the command line using standard command like cd and ls. Is that right?

Can you access the files from the command line? What do you get for these commands:-

ls -l ~/thinclient_drives/My_LC/2019-10-11-125251_1920x1080_scrot.png
cksum ~/thinclient_drives/My_LC/2019-10-11-125251_1920x1080_scrot.png
JM-Teule commented 1 year ago

Hello,

Sorry for that.

2 short videos will be better than long texts :

https://nextcloud.inrae.fr/s/cC6cAfzgFH6WpK6

Le 11 mai 2023 à 10:51, matt335672 @.***> a écrit :

@JM-Teulehttps://github.com/JM-Teule

I don't think we're understanding each other.

When I say "xrdp is working properly", I'm including the remote mount in that. You can browse files which are being exported by your xrdp client in your xrdp session from the command line using standard command like cd and ls. Is that right?

Can you access the files from the command line? What do you get for these commands:-

ls -l ~/thinclient_drives/My_LC/2019-10-11-125251_1920x1080_scrot.png cksum ~/thinclient_drives/My_LC/2019-10-11-125251_1920x1080_scrot.png

— Reply to this email directly, view it on GitHubhttps://github.com/neutrinolabs/xrdp/issues/2661#issuecomment-1543599389, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APEQVSFZGEHDEYVLAZYRYP3XFSSCHANCNFSM6AAAAAAX4QB5BQ. You are receiving this because you were mentioned.Message ID: @.***>

Cordialement,

Jean-Marc Teulé IP - Informatique de Proximité @.***

INRAE UMR INRAE-UPPA 1224 Ecobiop INRAE - Aquapôle, Ibarron 64310 St-Pée-sur-Nivelle, France

Tel 05 59 51 59 45 Portable 06 99 06 52 09

[cid:890099A3-BD84-4431-A14A-4ABC1890D740]

matt335672 commented 1 year ago

I'm afraid I'll have to insist on the textual description.

Other people may be reading this and searching for a solution to their problem. Also, viewing unsolicited videos simply isn't safe on the modern internet.

JM-Teule commented 1 year ago

I have no more time for that !

JM-Teule commented 1 year ago

The share is running int shell but not in graphic way !

matt335672 commented 1 year ago

I'm sorry @JM-Teule. I'm not trying to upset you, but I have to think about the other users we have who read these forums. Videos make it very hard for anyone searching for information to find it. They also have an annoying habit of disappearing so these issues no longer make sense to anyone in the future.

If we can work together using text to solve this, everybody benefits.

If the shell is working fine, but the GUI application isn't there must be a simple solution to this.

I don't think it's an xrdp problem as such. xrdp just presents the files over the network in a particular directory - that's how we test it. It has no interface at all with any graphical components.

However, I can think of a possible way this could happen. There could be a race condition between the filesystem mount and the client connection.

If your file manager is managing to open the My_LC directory before xrdp mounts the filesystem, the file manager would see an empty directory.

Can I ask you some more questions :-)