On Sat, 21 Dec 2019 17:30:14 +0100 Adam Mizerski <adam@mizerski.pl> wrote:
W dniu 21.12.2019 o 16:10, Dave Howorth pisze:
I have a Raspberry Pi with a display and I'd like to run a program on my openSUSE PC but display the results on the pi's display. At the moment I'm running everything from the keyboard on my openSUSE box (i.e. the pi is just a display, no input).
So I have opened an ssh session to the pi and disabled access control:
$ ssh -X pi@RpiBplus pi@rpibplus's password: Linux RpiBplus 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l [etc] pi@RpiBplus:~ $ DISPLAY=:0 xhost + access control disabled, clients can connect from any host pi@RpiBplus:~ $
but if I then use another session on the openSUSE box to try to use the remote display, it fails:
$ DISPLAY=192.168.1.22:0.0 xeyes Error: Can't open display: 192.168.1.22:0.0
and just to confirm the address:
pi@RpiBplus:~ $ ip address list ... inet 192.168.1.22/24 brd 192.168.1.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever ...
Does anybody have any idea what might be preventing this connection?
FWIW I don't have a firewall on the openSUSE box, and AFAIK there isn't one on the pi (standard buster image).
Xorg usually has disabled listening on tcp, for security reasons.
Aargh! I was going to complain about Debian but I see openSUSE does it too :( I guess I can't complain too much since it's clear I haven't tried to use a remote display since whenever the change was made.
There are two ways of resolving this:
1) Make sure Xorg is listening on tcp port on public ip. Beware that this has serious security implications, especially if you disable access control completely with "xhost +".
If somebody gets onto my network, I expect I'm dead already. So I've added a new file /usr/share/lightdm/lightdm.conf.d/100-custom.conf that contains: [SeatDefaults] xserver-allow-tcp=true Then I restarted lightdm. That seems to have done the trick.
2) use ssh ability to forward unix domain sockets. On one terminal run "ssh -L /tmp/.X11-unix/X7:/tmp/.X11-unix/X0 pi@RpiBplus". On second run "DISPLAY=:7 xeyes".
Ah OK. I may have a play with that. I just read there's also an equivalent using socat. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org