Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading libxorgxrdp.so #3325

Open
gtellalov opened this issue Nov 30, 2024 · 4 comments
Open

Error loading libxorgxrdp.so #3325

gtellalov opened this issue Nov 30, 2024 · 4 comments
Labels

Comments

@gtellalov
Copy link

gtellalov commented Nov 30, 2024

xrdp version

0.10.1-1

Detailed xrdp version, build options

xrdp 0.10.1
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2024 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --prefix=/usr
      --sysconfdir=/etc
      --libexecdir=/usr/lib
      --localstatedir=/var
      --sbindir=/usr/bin
      --with-systemdsystemunitdir=/usr/lib/systemd/system
      --enable-jpeg
      --enable-tjpeg
      --enable-fuse
      --enable-fdkaac
      --enable-opus
      --enable-rfxcodec
      --enable-mp3lame
      --enable-pixman
      --enable-painter
      --enable-vsock
      --enable-ipv6
      --enable-pam-config=arch
      --enable-rdpsndaudin
      --with-imlib2
      CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/joro/build/xrdp/src=/usr/src/debug/xrdp -flto=auto
      LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -flto=auto
      CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/joro/build/xrdp/src=/usr/src/debug/xrdp -flto=auto

  Compiled with OpenSSL 3.4.0 22 Oct 2024

I'm trying to reuse an existing X session started by a DM. My xrdp.ini looks like this:

[xrdp1]
name=Xorg
; lib=libxup.so
lib=/lib/xorg/modules/libxorgxrdp.so
param=-display :1
username=ask
password=ask
port=-1
code=20

I use the full path to the library, just to make sure it's found. I get the same error if I use just the library name. From /var/log/xrdp.log:

[ERROR] xrdp_wm_log_msg: error loading /lib/xorg/modules/libxorgxrdp.so specified in xrdp.ini, please add a valid entry like lib=libxrdp-vnc.so or similar

I'm on Arch linux and my xorgxrdp version is 0.10.2-3

Operating system & version

Arch linux

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

Xorg

What desktop environment do you use?

xfce4

Environment xrdp running on

physical machine, integrated Intel GPU

What's your client?

remmina

Area(s) with issue?

Other

Steps to reproduce

On a current Arch installation:

  1. get xrdp and xorgxrdp from AUR
  2. make the packages and install them
  3. start xrdp (systemctl start xrdp)
  4. connect with remmina from another machine

✔️ Expected Behavior

I'm expecting to connect to a running Xorg session.

❌ Actual Behavior

I get a window with an error message that there is an error loading libxorgxrdp.so

Anything else?

No response

@gtellalov gtellalov added the bug label Nov 30, 2024
@metalefty
Copy link
Member

Why do you want to do such a thing? lib=libxup.so should work.

It is not an expected usage and you don't need to do that. Get back to lib=libxup.so.

@gtellalov
Copy link
Author

libxup will start a new X session. I want to reuse an existing one in order to access my running programs.

@metalefty
Copy link
Member

libxorgxrdp.so is not designed to do such a thing so it is natural the wrong configuration shows an error.

@matt335672
Copy link
Member

@gtellalov - you can connect to an existing xrdp session. You cannot connect to an X session which is started by another DM.

Your options for this (that I am aware of) are:-

  1. Run x11vnc in your DM session and connect to it over xrdp using the VNC protocol between xrdp and the desktop.
  2. Use a desktop-specific service to share an existing desktop (X11 or Wayland) over the RDP port. GNOME contains 'GNOME remote desktop' (GRD) for this. KDE Plasma contains KRDP, although this is a newer feature and I've never tried it myself.

Will either of these satisfy you use case(s)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants