-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
No RDP on ChromeOS #982
Comments
Don't have a ChromeOS to test this, sorry. Did you try to run the command line generated by Ásbrú outside Ásbrú ? I mean, Ásbrú cannot do better than freerdp so please first double check it works outside Ásbrú. |
No. I didn't even see it; what should I look at? Besides that "imagine a minimal Debian system without any GUI stuff installed that magically has a few strange environt variables like GTK_IM_MODULE=cros |
In the connection settings, go to You should run that same command in a shell outside Ásbrú and see if this works differently. If it does not work using the same command line, I do fear we cannot do much and you should get some help from the ChromeOS team. |
The command line is actually trying to connect If I use the command line
and
If I'm running a correct ssh invocation (-L port:target:port) it is working across the ssh tunnel, too, so I have to assume that it is the surrounding asbru infrastructure that is hitting a wall. I still believe that there is an assumption of a full GTK installation available which is not fitting the minimalist Debian environment. |
Thanks for the additional information, so it looks like there is a mix between options for So not sure this is related to ChromeOS, there must be something else. The missing local port is also something to investigate. Do you have both installed ? |
I currently hav xfreerdp, wlfreerdp and rdesktop installed. I just added remmina and now I guess I got something really useful but did n ot have time to look into your source code: remmina isn't working either, it's just not crashing doing so. Instead I'm getting an error that it can't connect to 127.0.0.1:3389. To me it is looking like there is a problem with the ssh tunnel, not the RDP connection. While tcpdump is showing packets being exchanged between jump host and client even at log level debug2 absolutely nothing is getting into the sshd log file on the jump host. Executing a correct ssh command and using its local port for the RDP session out of asbru is working too. Is there a way to trace what's happening when setting up the ssh tunnel and for you to gracefully handle unexpected errors? |
Ok I found that one. When displaying the command, the local port was not shown correctly but when Ásbrú is actually launching it, it will be defined correctly. I'll fix this for the next version. I setup a small lab here and tried to reproduce the case : both xfreerdp and rdesktop installed, connection through a jump server. And, ... all is working as expected. I don't see the "mix" of options you are seeing in the command line, that likely the root issue to find out. Maybe one idea: did you switch the connection type from "rdesktop" to "freerdp" (or vice versa) ? Did you try to recreated the "freerdp" connection from scratch ?
Not much traces available in that part of the code today. What I would suggest is to use You should also see the traces of
Not much either but any error message shall be see in the RDP terminal window. |
Whenever you create a new session it starts out as "ssh" anyway; you have to edit it in any case. I tried but it did not change anything.
There is no opportunity to get that done; the root is gone by the time I could even consider to start typing. My best guess is that the ssh tunnel setup is failing, whatever tries using the tunnel doesn't check for its presence at all, fails to connect in a spectacular way and entire asbru-cm dies. But my guess might actually be wrong. I tried strace on asbru-cm and the process that is crashing is the initial asbru-cm itself, immediately after the message
and whatever is happening it's triggered by sending and receiving data on file descriptor 6 which is ( I guess you will need a Wayland-infested system for debugging this. |
Yes. I tried on Fedora 37 and got this:
This cannot be obvious enough, it does not work with Wayland :-/ So at the end of the day, this is actually a duplicate of #974, isn't it ? |
No, not at all. ChromeOS is providing a tool (named sommelier) to forward connections from the Linux container inside a Linux VM to the "real" Wayland server running on the host. I'm ending up with this
in my environment and a "real" X application should never know that there is a Wayland server it could even talk to (this is coming at a cost like X applications getting appropriate scaling to make 96dpi the expected 96dpi no matter what the real dot pitch is and becoming a bit blurry). Even ancient pure X applications like xeyes are (nearly) working as expected (due to layering they can't track the mouse outside their window and look like having a stroke). So unless some part of your application or library tree is explicitly looking for WAYLAND_DISPLAY and trying to connect to the Wayland proxy the application should have been completely unaware of it -- sommelier is more or less an X11 server with Wayland as back end. All X11 and Qt (and Gnome) libraris on the system are standard Debian packages; there are no special considerations for this environment. asbru is actually the only application who ever showed this kind of behavior and it does not matter whether I'm using the appimage, a packaged version or compiling it myself against my local libraries... |
Describe the bug
As soon as an RDP connection is started asbru-cm is dumping a core.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A connection being started
Environment (please complete the following information):
Additional context
Terminal output:
(asbru-cm:6896): Gdk-WARNING **: 02:02:59.658: ../../../../../gdk/x11/gdkwindow-x11.c:5653 drawable is not a native X11 window
[xcb] Unknown sequence number while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
perl: ../../src/xcb_io.c:153: append_pending_request: Assertion `!xcb_xlib_unknown_seq_number' failed.
The x11 inside the Linux VM is based on wayland inside wayland. It might be better to use freerdp2-wayland instead.
The text was updated successfully, but these errors were encountered: