I’ve been dealing with this frustrating issue that I really hope someone here can help me with. So, I’m trying to log into my Ubuntu 18.04.3 LTS machine using xrdp, and every time I enter my credentials, I get hit with a “login failed” message for display 0. It feels like I’m stuck in a loop because I know for a fact that the username and password I’m using are correct.
I’ve tried a few things on my own to troubleshoot this. To start, I made sure that xrdp is actually running on my system. I even went into the terminal to restart the service, but that didn’t give me any luck. I also checked the xrdp configuration files and looked for any possible typos—everything seems normal there too.
Oh, and I did some digging online and read about the potential issues with the session type. Apparently, xrdp requires the right desktop environment to be set up for it to work properly, but I’m not entirely sure how to verify that. I think I’m using Xfce, but I’m not even sure if that’s what’s configured for xrdp sessions. It just seems like there’s something off with the way it’s trying to connect.
If anyone has been through this or has a fix, I would really appreciate it! I’ve seen some people talking about modifying certain config files or installing different desktop environments, but I’m not super comfortable with diving too deep without knowing exactly what to do. I just want to get back to using my machine remotely without all this hassle. Also, if there are any logs I can check to get more information about where things are going wrong, that would be super helpful!
Thanks in advance for your help. I’m looking forward to any tips or advice you might have.
It sounds like you’re in a bit of a mess with the xrdp login! No worries, let’s see if we can get this sorted.
First off, you definitely want to make sure your xrdp and the desktop environment (Xfce in your case) are configured properly. Here are a few things you can try:
~/.xsession
file to specify Xfce. You can do this by running:/etc/xrdp/xrdp.ini
file. Make sure that your session type is set to Xfce. You can do this by adding or modifying the following line under the[Xvnc]
section:If it’s still not working, you can check the xrdp logs. Look at the logs located at
/var/log/xrdp.log
and/var/log/xrdp-sesman.log
. They can give you a clue about what’s going wrong when you try to log in.Lastly, if all else fails, consider reinstalling xrdp:
Hopefully, one of these steps will get you up and running again! Just take it one at a time, and remember to check back if you get stuck.
It sounds like you’re facing a challenging issue with xrdp on your Ubuntu machine. Since you’ve confirmed that xrdp is running and you’ve checked for typos in the configuration files, the next step would be to verify that the desktop environment you’re using (Xfce) is correctly configured for xrdp sessions. To do this, you’ll want to ensure that the session type is set properly in the xrdp configuration. You can edit the `~/.xsession` or `~/.xsessionrc` file to explicitly set your session. For Xfce, you can add the line `startxfce4` to the `~/.xsession` file. This will direct xrdp to use the Xfce environment upon login. Additionally, ensure you have Xfce installed with the appropriate dependencies.
If you continue to encounter a “login failed” message after making these adjustments, checking the xrdp logs can provide further insight. The logs are typically located in `/var/log/xrdp-sesman.log` and `/var/log/xrdp.log`. Analyzing these log files might reveal permission issues, failed environment variables, or additional configuration problems. If you’re not comfortable making changes to your system, consider backing up your configuration files before making any edits. Remember to restart the xrdp service after making changes by running `sudo systemctl restart xrdp`. Seeking assistance from the community forums or documentation related to xrdp and Ubuntu can also reveal unique configurations or troubleshooting steps that could resolve your dilemma.