I have a linux machine which I am accessing via ssh with a MacBook. I wish to be able to view some .png files. I have run ssh with the
-X option, edited
ssh_config with these lines:
ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes
When I try running
$display fileName.png I get the error
display: unable to open X server ' @ error/display.c/DisplayImageCommand/426.
and if i run
$ DISPLAY=:0 display fileName.png
then it acts as if something is running in the terminal but I can't view the image.
I've also tried opening it with
eog fileName.png and get the error
Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused