-
-
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
XRDP session close immediately #2258
Comments
Thanks. |
Hi @matt335672 , When you say desktop installed ? can you confirm the name of software i have just installed xrdp only. When i go to my home directory inside i can't see xsession-errors |
To use xrdp you need a desktop installed, like GNOME or XFCE. You can' use xrdp on a pure server install, which is what you may have by the sound of it. Installing a desktop will greatly increase the amount of software on your system if you haven't got one installed. What do you get for the command |
If you already have a desktop installed, or directly installed a desktop environment, make sure that your remote sever is set to a multi-user target. I believe that xrdp needs to take control/launch it's own x-session, so if you already have your desktop environment running, this will fail. Steps to fix:
|
Thanks @GoofyAF - you're quite right. I don't think however we're at that stage yet. |
Getting the same behavior. Can connect to RDP remote port and authenticate. Creds are good. But the sessions just closes immediately. # lsb_release -a
Kali
Kali GNU/Linux Rolling
2022.2
kali-rolling # systemctl get-default
graphical.target set Kali rolling has |
I have one instance where it runs correctly and one instance where it doesn't. # wmctrl -m
Name: Xfwm4
Class: xfwm4
PID: 4476
Window manager's "showing the desktop" mode: N/A The only noticeably difference
Not Working:
|
If the session is closing immediately, it's likely the
|
I do not have |
Problem seems to be that the X server is exiting unexpectedly, or maybe isn't starting:-
|
What are the contents of /var/log/xrdp-sesman.log? Are you using the Xorg or the Xvnc backend? If you're using Xorg, what is in ~/.xorgxrdp.10.log? |
I still can't see anything definitive in there. Can you also provide the output of |
I see lots of errors in here. |
Your desktop appears to be segfaulting:-
Two possibilities spring to mind:-
|
I'm not entirely sure what this means or how to test this?
I am logged into the GUI via kali, which was what I was trying to RPD in as. I tried RDP via user root and it works completely. This is acceptable to me, as this is a kali machine and I always open terminals up as Let me know how you'd like to proceed. |
System console is the physical front end to the machine, if it's a physical machine (i.e. the keyboard, monitor and mouse connected to the machine). There's also a system console for a virtual machine, but it's generally harder to get to. XFCE is working fine if it works OK on the system console. That's generally the easiest way to check XFCE is correctly installed. You should be able to log in via XRDP to any user that isn't currently logged in to the system console. Does that make sense? |
Okay. I'm not sure I was aware of that. I can login to XFCE4 via the system console. but I was trying the same user. Once I changed to login as Are you asking about logging into the console as |
I will also share the steps with you that i tried in my redhat golden image system to login to into remote desktop using xrdp
…Sent from my iPhone
On 07-Jul-2022, at 9:00 PM, Tyler Bennett ***@***.***> wrote:
Okay. I'm not sure I was aware of that.
I can login to XFCE4 via the system console. but I was trying the same user. Once I changed to login as kali then xrdp as root it worked.
Are you asking about logging into the console as kali then trying to xrdp into localhost from the console session and rdp in as root? If that's what you are asking I can try that?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
@tbennett6421 - suggest you sent up another unprivileged user for xrdp only. Then you can use kali or root on the console without having any difficulties. |
No more ifno from poster(s) - closing. |
What I would do in this case:
|
All you need is to log out and remain logged out to connect to your computer you don't need to change from grphical.target to multi-user.target |
Typo should be: sudo systemctl set-default multi-user.target |
This is worked for me for Fedora Workstation 41 |
I had a similar issue, that the XRDP session got closed immediately. The log looked similar to OPs. But the reason for me was that I have a script in /etc/profile.d/ which uses bash functions like shopt. The script /etc/xrdp/startwm.sh is a /bin/sh script which couldn't interpret those bash functions. After changing the first line in |
Hi Team,
I have xrdp installed in GCP instance for Redhat 8 system.
when i checked the xrdp-sesman.log i can see below
I don't know why my system is getting close when im trying to login into instance
xrdp 0.9.19
How I can get rid of this.
The text was updated successfully, but these errors were encountered: