I hope that someone can assist me with my remote desktop problem. As I can’t find similar entries here on discourse (or elsewhere) I don’t believe it’s a general one.
I’ve followed: Remote Desktop - NixOS Wiki
So the remote server has:
services.x2goserver.enable = true;
additionally (it might be influencing):
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.forwardX11 = true;
services.openssh.permitRootLogin = "no";
##
services.sshguard.enable = true;
# Enable the TOXVPN
services.toxvpn.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "de";
# Enable touchpad support.
services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.mate.enable = true;
ssh connectivy is working fine and stable ( also with X11).
I tried to debug with:
x2goclient --debug 1> /tmp/x2goclient.stdout.log 2> /tmp/x2goclient.stderr.log
Only the error channel gets output. ssh seems to be ok from the log:
x2go-DEBUG-../src/sshmasterconnection.cpp:702> Login Check - OK
x2go-DEBUG-../src/onmainwindow.cpp:2947> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3374> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via SshProcess object 0: "x2golistsessions"
x2go-DEBUG-../src/sshprocess.cpp:213> this=SshProcess(0x1ed90e0) Running masterCon->addChannelConnection(this, '"5555093b-d7d5-47a7-9abb-36cc1dfd3580"', '"bash -l -c 'echo \"X2GODATABEGIN:5555093b-d7d5-47a7-9abb-36cc1dfd3580\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2golistsessions; echo \"X2GODATAEND:5555093b-d7d5-47a7-9abb-36cc1d"');
It looks like PATH isn’t including:
$ which x2golistsessions
/run/current-system/sw/bin/x2golistsessions
I’m using Mate on the remote Nixos box because I had seen problems with KDE in other environments.
The client on my Nixos laptop should be fine because the software can connect flawlessly to an old Ubuntu box (with Mate as WM).
Many thanks in advance!