-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Debian connect to GNOME desktop environment #2579
Comments
If you say a message "something went wrong" appears instead of the gnome desktop, can you confirm that you where not concurrently logged in on the machine? If you where see https://github.com/neutrinolabs/xrdp/wiki/Tips-and-FAQ#why-cant-i-log-the-same-user-on-on-the-graphical-console-and-over-xrdp-at-the-same-time |
As @akarl10 says, a common problem is to try to log in to the console and an xrdp session at the same time with the same user. If that's not it, let us know and we'll look further. |
confirm, I'm not logged in twice and even not with other users. And it works using xfce4. |
@beppo-ivel ah ok, xfce works then (I thought both desktop environments don't start) If you followed #1723 then probably it crashed because debian does not have the ubuntu desktop. What I would suggest is taking upstream startwm.sh (https://github.com/neutrinolabs/xrdp/raw/devel/sesman/startwm.sh) Then starting with that script you need to look for the available desktop environment names: ls /usr/share/xsessions I guess there is a file called gnome.desktop. If that is true put a new file in /etc/profile.d/90-xrdp-default-desktop.sh [ -n "$XRDP_SESSION" ] && export DESKTOP_SESSION=gnome replace DESKTOP_SESSION with the appropriate one (that is the .desktop file name above without the .desktop suffix) |
Another possibility is something in your hardware config is preventing 3D acceleration working for GNOME. To prevent this getting confusing, go with @akarl10's suggestion first and see what happens. |
@akarl10 @matt335672 followed your steps, same behavior. I also reviewed the script (https://github.com/neutrinolabs/xrdp/raw/devel/sesman/startwm.sh) and think that main parts quite similar to the default startwm.sh I pasted below. I also checked if scripts are executeable:
/var/log/xrdp.log
/var/log/xrdp-sesman.log
|
@beppo-ivel the startwm.sh you posted does not do the same thing as upstream. The upstream variant derives the session startup command AND environment variables from a configuration file. calling gnome-session is probably not enough. To be sure to not get any interference you should delete btw, what does |
@akarl10 I agree, but imo both scripts try to run
I deleted
~/.xsession-errors
|
@beppo-ivel true, both call Xsession, but if STARTUP is set then Xsession behaves differently/should use that as session startup command. anyhow, that does not seem to be your problem since according xsession-errors the environment seems ok. |
|
@beppo-ivel according to this log [email protected] crashes. This is obviously not good and very probably the reason why you get the failure screen. is the xrdp/xorgxrdp version used the "official" bullseye version? @matt335672 do you know if the randr warnings are normal or if they could be the issue (that is gnome requiring this extension to respond in a specific way) |
$ apt-cache policy xrdp $ xrandr |
The RandR errors don't look normal to me, and that could well be the cause of the problem. This looks like neutrinolabs/xorgxrdp#156 to me. See also #1969 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995573 which suggest a workaround |
@akarl10 @matt335672 thx for the links. the workaround solved the issue for now. |
I installed xRDP on Debian GNU/Linux 11 (bullseye). When connected via remote desktop from windows, a logout window appears with message "Oh no, something went wrong!" (img below).
Then I installed xfce4 desktop environment and edit last 3 lines of startwm.sh, because found a lot references they use xfce4. After restart xrdp login worked as expected.
But I want to use the gnome-session compare to this question, which is the default desktop environment of the Debian installation.
xrdp-sesman.log
xrdp.log
The text was updated successfully, but these errors were encountered: