general/other Linuxlator: using a GUI linux app (Rustdesk) in XFCE on FreeBSD

Hello,

I’m currently trying to run the Rustdesk client on FreeBSD 14.2-RELEASE.
I’ve setup a Linux environment in /compat/debian_rustdesk (debootstrap and all) and mounted variust FS on top of it:

Code:
devfs           /compat/debian_rustdesk/dev      devfs           rw,late                      0       0
tmpfs           /compat/debian_rustdesk/dev/shm  tmpfs           rw,late,size=1g,mode=1777    0       0
fdescfs         /compat/debian_rustdesk/dev/fd   fdescfs         rw,late,linrdlnk             0       0
linprocfs       /compat/debian_rustdesk/proc     linprocfs       rw,late                      0       0
linsysfs        /compat/debian_rustdesk/sys      linsysfs        rw,late                      0       0
/tmp            /compat/debian_rustdesk/tmp      nullfs          rw,late                      0       0
/home           /compat/debian_rustdesk/home     nullfs          rw,late                      0       0

I’ve set security.bsd.unprivileged_chroot to 1, in order to start the rustdesk binary as myself and not as root.

But when I try to use rustdesk, it starts, fails to display any window even though I think there is a transparent one that takes a part of the screen. I see those errors in the terminal:

Bash:
$ rustdesk

(rustdesk:95788): Gtk-WARNING **: 10:56:18.927: Locale not supported by C library.
    Using the fallback 'C' locale.

(rustdesk:95788): dbind-WARNING **: 10:56:18.931: Couldn't connect to accessibility bus: Failed to connect to socket /var/run/xdg/patpro/at-spi/bus_0: No such file or directory
Cannot load libcuda.so.1
Try setting transparent
Cannot load libcuda.so.1

(rustdesk:95788): Gdk-CRITICAL **: 10:56:18.956: gdk_gl_context_make_current: assertion 'GDK_IS_GL_CONTEXT (context)' failed

** (rustdesk:95788): WARNING **: 10:56:18.956: Failed to initialize GLArea: No GL implementation is available

** (rustdesk:95788): CRITICAL **: 10:56:18.987: gboolean fl_keyboard_manager_handle_event(FlKeyboardManager *, FlKeyEvent *): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed

** (rustdesk:95788): CRITICAL **: 10:56:24.353: gboolean fl_keyboard_manager_handle_event(FlKeyboardManager *, FlKeyEvent *): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed

Screenshot_2025-04-20_12-37-02.png


Any idea is welcome :)
 
Thanks.

I’m not into wine64, but I might take a look if everything else fails.

Building the client is not an option unless someone can provide dependencies (Flutter for a start)

Poking around with /var/run I realized permissions were not great on my /var/run/xdg, and setting that straight helped. Also I’ve had to install debian-side a boatload of dependencies (libcuda1 came with 1.2GB worth of friends).

Now I’m running the app OK — but — I cannot setup network preferences or any other settings that requires admin privileges: it fails with an error about /bin/sudo…
I’ve installed sudo on the debian side, I’ve recreated my user account there too, with the same password. No luck. Any attempt to elevate my privileges in Rustdesk client fails with the same error.
Anyway I think I’m going to drop the ball as it seems I can just use the web client instead of the desktop one.
 
Ah yes, they do now have an actually pretty usable web client. You could try hosting that web client on your own network also. But I'm not sure how much work that would require.
 
Ah yes, they do now have an actually pretty usable web client. You could try hosting that web client on your own network also. But I'm not sure how much work that would require.
From blog (V2 is web client):
Once the V2 version is stable, we will also integrate the web client into the Pro version, allowing you to access it via https://rustdesk.yourcompany.com/web.

There is alternative: MeshCentral, which have even FreeBSD agent.
 
Back
Top