Why Nostr? What is Njump?
2024-12-17 15:38:52

Leonard/Janis Robert König on Nostr: Today's Linux tip: Most GUI/non-server(!) distros default to KillUserProcesses=yes by ...

Today's Linux tip: Most GUI/non-server(!) distros default to KillUserProcesses=yes by now¹, so SSH-ing to a desktop and opening a tmux/screen to do something will still kill the processes when SSH drops. In case you don't want this behavior for a single command, you can just do something like:

```
systemd-run --scope --user tmux
```

This will persist throughout the whole user session.

If you also want this to persist over a complete log-out (i.e., even logging out on the GUI), you may need to `loginctl enable-linger`, too.

¹ For good reason, it's what most people would expect. Yes, it breaks existing behavior but if we want Linux to be on the desktop, it shouldn't behave like a server running a GUI. If you need different behavior, have a look at `systemd-analyze cat systemd/logind.conf` and check the files you need to touch to change this.
Author Public Key
npub1uf6cu9nwq4tvcrgeahfxf2mx9ppq4nxdldf22a0kmhtuk7dq2mjqmm774h