I am trying to re-create functionality I’ve had for years; namely, installing an app, GIMP, on a remote server and running it remotely and seeing the graphical output locally, over ssh -X.
$ snap version snap 2.44.1 snapd 2.44.1 series 16 ubuntu 18.04 kernel 5.3.0-46-generic
Before posting this I have, on the remote machine:
- verified that /root is real (not a symlink, nor a bind to another directory)
(Note: I have to reveal this because of an earlier install issue I posted)
- “started fresh” in the sense I:
- removed the snap: sudo snap remove purge gimp
- removed snap itself: apt remove snap/apt purge snap
- reinstalled snap: sudo apt install snap
- reinstalled gimp’s snap: sudo snap install gimp
Then I logged in the customary way.
% ssh -X remotehost
Note that other graphical apps work:
[both work, meaning output visible on localhost]
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
X11 connection rejected because of wrong authentication.
Cannot open display:
However, the DISPLAY variable has been set (presumably by ssh, to send it back to the logging-in host):
$ env|grep DISPLAY
What more may I check?
[Incidentally, I have edited this post a few times trying to get the remaining cmdlines and responses to be “Preformatted Text” but the editor is ignoring the codes in the Preview while showing them in the Composer.]