Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5561

Networking and servers • Re: login to raspi with ssh -X; bookworm runs Xwayland; see xeyes on raspi display not desktop

$
0
0
Some feedback/comments.
  • While I don't use it, (because doing so is more hassle than it's worth for me see viewtopic.php?t=358853&start=25#p2196529) the way I understand waypipe is used is this:

    Code:

    waypipe ssh user@host xeyes
    not

    Code:

    waypipe ssh -X user@host
  • You can set display on a per command basis:

    Code:

    DISPLAY=:0 xeyes
    This does not change the value set by export and shown by env
  • If you're only going to run GUI apps on the PI's desktop you can leave out the -X argument to ssh.
  • It's not always and not guaranteed to be localhost:10.0. The first concurrent ssh -X connection gets that. Each subsequent concurrent connection gets the display number incremented by 1 (localhost:11.0, localhost:12.0, etc). They stay at those values even if a connection with a lower display number is closed. It also doesn't matter if all the ssh -X connections logged in as the same or different users.
  • xhoat + may still be relevant but only if you want to login to your Pi as a different user to the one currently logged in to its desktop and want to run a GUI application on that desktop. In which case you'd need to run it from within the logged in desktop. Even then xhost +username is a more secure option.
    [/list

    Now, that said, you have a solution that works for you. The above is intended to make things easier still and to help you and others avoid some potential pitfalls.

Statistics: Posted by thagrol — Fri Mar 01, 2024 2:00 pm



Viewing all articles
Browse latest Browse all 5561

Trending Articles