How can I start KDE Plasma session after logging in to the remote host via ssh?
The reason I need this is because then I want to use a tool like KRdp or RustDesk to have remote access to such a session.
Trying startplasma-wayland ends with the error:
$ startplasma-wayland
Error: could not determine $DISPLAY.
Error: Can not contact kdeinit5!
org.kde.startup: "kdeinit5_shutdown" QList() exited with code 255
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.
Output from `kinfo`
$ kinfo
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.9-200.fc41.x86_64 (64-bit)
Graphics Platform: offscreen
Processors: 12 × AMD Ryzen 5 7600 6-Core Processor
Memory: 14.8 GiB of RAM
I don’t believe you can. If you want to start a graphics session you have to do so from the actual device (I could be wrong but at least that has been my experience)
What I did to solve the same issue was to switch the SDDM compositor from kwin to sway so I could install wayvnc, which I access via ssh tunnel. This allows me access to SDDM via vnc, so I can log into my plasma session, I think switch to RDP to remote-desktop into the started session.