Score:0

Make XRDP connect to existing Xorg Server after a xrdp restart

ml flag

I run a Ubuntu 22.04 server with lubuntu desktop (LXQT). I have installed the latest XRDP using the extremely useful scrip provided by c-nergy.be. From time to time though XRDP will stop passing through the clipboard. When this happens I just do a systemctl restart xrdp and that fixes the clipboard issue. However, when I restart xrdp lose my rdp session with all my windows and apps that are running.

I discovered that when I start an RDP session to the server xrdp sets up a Xorg server: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log

When I gracefully close my RDP client, Xorg :10 remains active, which means when I launch my RDP client again, I get connected to my last session with all my windows and apps still open. But if I have to restart XRDP using systemctl XRDP creates Xorg :11 despite Xorg :10 still being there. When I launch my RDP client after the restart, I get connected to Xorg :11.

I have spent the last few days researching the web and trying various suggestions related to sesman.ini, xrdp.ini and xorg.conf. These are just some of the suggestions I tried. I have even asked chatGPT!!

  • specifying a default xorg display in xrdp.ini
  • allowing multiple connections per server in xorg.conf
  • specifying the display in sesman.ini: XorgParams=-config xrdp/xorg.conf -display :10 -auth .Xauthority -noreset

Sadly I am no closer to forcing XRDP to reuse the initial Xorg server it created. I hope someone here has solved this issue and can share their solution. Thank you

I sit in a Tesla and translated this thread with Ai:

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.