Detach from remote login session without killing it? (Persistent headless sessions)

Hello,

I was able to enable remote login via GDM by making SELinux permissive in order to workaround bug 2271661 and this works great: I can RDP into my desktop and be greeted by the GDM login screen.

The problem is that if I disconnect from RDP, then GDM always kills the session: everything running is killed.

Is it possible to leave the headless session running in the background? I would like to be able to disconnect, then reconnect to find my existing session as it were…

Have you tried running a Tmux session instead?

Yes, but this is about graphical login, not a detachable terminal. The feature I am talking about gives you a full headless GUI session where you can run any app (e.g. even Firefox, or Lireoffice). I want to be able to detach this GUI session and then resume it when I log in again (like Windows does when you use Remote Desktop).

Ok, I have found what I am describing is actually an open issue that is already logged in the project. They refer to it as “persistent headless sessions”.

Fortunately, it’s already being actively worked on. See:

2 Likes