Closed igorfk closed 2 years ago
hundreds of these processes spawn while in blackscreen:
username 149955 0.0 0.0 2420 84 ? S 13:56 0:00 /bin/sh /etc/X11/Xsession
username 149956 0.0 0.0 5304 504 ? S 13:56 0:00 sleep 3
username 149961 0.0 0.0 2420 80 ? S 13:56 0:00 /bin/sh /etc/X11/Xsession
username 149962 0.0 0.0 5304 504 ? S 13:56 0:00 sleep 3
...
username 150146 0.0 0.0 2420 84 ? S 13:56 0:00 /bin/sh /etc/X11/Xsession
username 150147 0.0 0.0 5304 564 ? S 13:56 0:00 sleep 3
username 150152 0.0 0.0 2420 80 ? S 13:56 0:00 /bin/sh /etc/X11/Xsession
username 150153 0.0 0.0 5304 572 ? S 13:56 0:00 sleep 3
It looks like /etc/X11/Xsession
is failing to start a session for some reason, and retrying something.
I can't find any sleep
commands in my session startup scripts.
Can you post the output of this command?
DISPLAY= /bin/sh -x /etc/X11/Xsession
Don't miss out the space after DISPLAY=
If that command ends with lines something like this:-
+ ERRFILE=/home/username/.xsession-errors
+ [ -w /home/username/.xsession-errors ]
+ [ ! -L /home/username/.xsession-errors ]
+ chmod 600 /home/username/.xsession-errors
+ stat -c%s /home/username/.xsession-errors
+ [ 388129 -gt 500000 ]
+ exec
you'll find more information in ~/.xsession-errors
. That would be useful to see too.
First: Thank you for all your work in this project @matt335672 and all other Devs
Second: I'm dumb.
Trying to make USB redirection work for me, eventually I executed the following command:
cp /etc/xrdp/startwm.sh /etc/X11/Xsession
instead of
cp /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.backup
cp /etc/X11/Xsession /etc/xrdp/startwm.sh
I was following a good article but the problem was... me.
Restoring the original /etc/X11/Xsession
file did the trick: XRDP server running without problems, get in the session and everything smooth.
Well, it had the interesting side-effect of giving us something unusual to think about!
I'm very sure you're not dumb - we all fat-finger stuff from time-to-time.
Thanks for getting back to us.
Hi!
Debian 11 with xrdp 0.9.12 from pre compiled packages (apt install xrdp xorgxrdp)
I was connecting to the XRDP server very well, only trying to make USB redirection work for me, but just modifying the "FuseMountName=..." line in
sesman.ini
and various other parameters in the RDP clients, after one of the several service restarts I could not log anymore just that black screen after the default XRDP login screen. Tried several suggestions that I find over the web and here in the project but none work, as:Tried to log with an account different from root and not already logged in the system, give me the black screen. (reboot/restart service)
Tried to uninstall dbus-user-session and install dbus-x11, rebooting, and still with the black screen issue (reverting back to dbus-user-session and remove dbus-x11 and reboot/restart service)
After adding the folowing lines to /etc/xrdp/startwm.sh
Just before the "test -x /etc/X11/Xsession && exec /etc/X11/Xsession" line. Still black screen, after that I revert back the file and reboot/restart service.
Modified /etc/X11/Xwrapper.config from
allowed_users=console
toallowed_users=anybody
Still black screen, then I revert back the file and reboot/restart service.Tried to log with xfreerdp, rdesktop, mstsc, and from different hosts, always black screen after the XRDP login screen.
Any clue on how can I get to the session?
These are my logs and configuration files (clients and server in the same VLAN), now, without caring with usb redirection:
/var/log/xrdp.log
/var/log/xrdp-sesman.log
/home/username/.xorgxrdp.10.log
cat /etc/xrdp/xrdp.ini #Comments removed for brevity
cat /etc/xrdp/sesman.ini #Comments removed for brevity