Nothing Works to Set Display Back During SSH

1.) Made sure servers were running on both Librem 5 and on PC.
sudo systemctl status ssh

2.)ssh -X purism@192.168.0.90
enter L5 password and connect via terminal.

3.)export DISPLAY=192.168.0.74:0.0
echo $DISPLAY
192.168.0.74:0.0

4.)gnome-chess
(gnome-chess:5794): dbind-WARNING **: 21:15:24.613: could not open x display

5.)opened gnome-chess on my L5 from my PC more times than I can count, trying everything to set the display back to the PC, with no luck.

6.) Tried using xephyr several different ways and just got errors.

Anyone know what I am doing wrong?

I forgot to mention that the PC is Ubuntu 20.04.

1 Like

The -X creates its own DISPLAY env var, which works fine:

$ uname -s
FreeBSD
$ ssh -X purism@192.168.178.59
Linux pureos 6.6.0-1-librem5 #1 SMP PREEMPT Mon May  6 16:09:52 EDT 2024 aarch64

The programs included with the PureOS system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

PureOS comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun  2 09:42:48 2024 from 192.168.178.22
OK
inhibiting suspend ...
purism@pureos:~$ env | grep DISPLAY
DISPLAY=localhost:10.0
purism@pureos:~$ xterm

brings up the window of xterm in my KDE-plasma on FreeBSD fine.

2 Likes

To elaborate on that: With that option X is automatically forwarded back over the secure SSH connection. So it basically should look like a local display / display connection at both ends.

1 Like