Score:0

Cannot connect to Xfce with remote desktop

br flag

I installed xrdp and xfce on Ubuntu 20.04:

sudo apt update && sudo apt upgrade -y

sudo apt install xfce4 xrdp -y

sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp

sudo ufw allow 3389

reboot

Now when using "Microsoft Remote Desktop" app, it opens for like 0.5 second (black) then quickly closes without any errors/etc.

Score:0
br flag

In case anyone else runs into this problem, the solution is:

  1. Edit /etc/xrdp/startwm.sh

sudo nano /etc/xrdp/startwm.sh

  1. Delete these lines

test -x /etc/X11/Xsession && exec /etc/X11/Xsession

exec /bin/sh /etc/X11/Xsession

  1. Instead type the following at same place:

startxfce4

  1. Restart xrdp

sudo /etc/init.d/xrdp restart

Score:0
cn flag

If you have not logged out locally from the machine. That could be the problem. Trying to connect via XRDP while logged on locally will not work. Coincidentally I just configured XRDP on one of my machines this morning.

This guide might help.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.