In a similar thing, I run it on a laptop running Ubuntu 24.04 but the laptop always has the lid closed and I actually use it from an M1 Mac.
`ssh -X` works but very very slowly, and if I exit and try to run it again (or even leave it idle for a while) it fails and I have to start a new ssh session. `nomachine` works much better.