3

So I am using RDP with Ubuntu 24.04. However, whenever I disconnect or close the session, all the apps that I had open terminate. Next rdp starts with a clean environment.

Is there a way I can keep the sessions saved like in Windows 11 where even if I disconnect the session, all the apps are still in the same state when I reconnect using RDP ?

2 Answers2

0

That's not what I have observed. After reading your question, and while I was just starting to type this comment, I hit the x on the RDP session. When I reconnected, I finished making this comment. I too use a windows client with RDP to access the Ubuntu 24.04 system. I do not attempt to access the primary ID which is always 'logged on' at the Ubuntu system console. I created a different ID for my Ubuntu needs, including the firefox I am now using to make this response.

My windows clients are XP

My installation notes to get remote desktop on XUbuntu include:

  • Install xrdp
  • Be sure the firewall allows it to use port 3389
  • Prior to XUbuntu 22.04, it was necessary to modify /etc/xrdp/sesman.ini to insure it included KillDisconnected=1, which is no longer necessary as of 22.04
  • Changes to /etc/xrdp/xrdp.ini include
    • change crypt_level to none
    • change ssl_protcols from TLSV1.2, TLSv1.3 to be
      TLSv1, TSLv1.1, TLSv1.2, TLSv1.3
    • allow_channels was TRUE, make it FALSE
quill
  • 1,015
0

As mentioned in my comment, there are two options available under config|System:

1. Desktop Sharing

To use this, you have to be logged into the remote machine already. You will then connect to that session and when you disconnect, you can re-connect later and continue where you left off.

2. Remote Login

This creates a new session each time you connect. When you disconnect, the session is ended. This is similar to logging into a remove shell using ssh. When you disconnect, that session end.

These are my observations of how these two implementations were done. It would be nice to have to the option to use "remote login" and keep the session active on disconnect and maybe there is a way. Please share of you know how and I'll update my answer.

3. Ubuntu 24.10

Update: It seems that Ubuntu 24.10 allows the session to be resumed. It's a Gnome feature that wasn't ready yet for 24.04.

LifeBoy
  • 2,392