Re: waypipe not working

2024-02-27 Thread Michel Dänzer
On 2024-02-26 19:02, Colin Rudakiewicz wrote:
> 
> 1. My remote Centos 9 host, centos92 (172.28.0.179), is using Wayland 
> (XDG_SESSION_TYPE=wayland) using a direct console connection it is possible 
> to run a non wayland glxgears (x11/GL) application from gnome-terminal, 
> confused why this is not proxied using waypipe ssh owner@172.28.0.179 
> glxgears, is it because when ssh -X is omitted, DISPLAY is not automatically 
> set i.e. Xforwarding has not been requested? 

Yes.


> 2. This works: waypipe ssh -X owner@172.28.0.179 glxgears, is X11 is being 
> proxied via waypipe?

No. Waypipe is only involved with Wayland clients, not with X clients. The 
latter are handled by SSH's own X forwarding (which works similarly to Waypipe, 
they're independent though).


> Can you advise please, is there an advantage/performance benefit to running 
> older X11/GL applications this way compared to simply running: ssh -X 
> owner@172.28.0.179?

It makes no difference whatsoever, since Waypipe isn't involved in any way with 
X clients.


-- 
Earthling Michel Dänzer|  https://redhat.com
Libre software enthusiast  | Mesa and Xwayland developer



RE: waypipe not working

2024-02-26 Thread Colin Rudakiewicz
Hi Michel,

Oh wow yes can confirm: /usr/bin/gnome-calculator works thank you! Indeed it 
displays calculator on my Windows 10 (Version 22H2 build 19045.4046) PC with 
Ubuntu-22.04 WSL2:

PS C:\WINDOWS\system32> wsl -l -v
  NAMESTATE   VERSION
* Ubuntu-22.04Running 2
  Ubuntu-20.04Stopped 2
PS C:\WINDOWS\system32> wsl -d Ubuntu-22.04
owner@Colin-PC:/mnt/c/WINDOWS/system32$ waypipe -c lz4=9 ssh  
owner@172.28.0.179 /usr/bin/gnome-calculator

Wayland in new to me and am a bit confused by it, can I ask some stupid 
questions please:

1. My remote Centos 9 host, centos92 (172.28.0.179), is using Wayland 
(XDG_SESSION_TYPE=wayland) using a direct console connection it is possible to 
run a non wayland glxgears (x11/GL) application from gnome-terminal, confused 
why this is not proxied using waypipe ssh owner@172.28.0.179 glxgears, is it 
because when ssh -X is omitted, DISPLAY is not automatically set i.e. 
Xforwarding has not been requested? 

2. This works: waypipe ssh -X owner@172.28.0.179 glxgears, is X11 is being 
proxied via waypipe? Can you advise please, is there an advantage/performance 
benefit to running older X11/GL applications this way compared to simply 
running: ssh -X owner@172.28.0.179?

Thanks again,

Colin

-Original Message-
From: Michel Dänzer  
Sent: Monday, February 26, 2024 4:40 PM
To: Colin Rudakiewicz 
Cc: wayland-devel@lists.freedesktop.org
Subject: Re: waypipe not working

On 2024-02-26 16:36, Colin Rudakiewicz wrote:
> 
>  1. From centos91 running:  waypipe ssh owner@centos92 gnome-terminal, a 
> terminal is launched on centos92 but was expecting to see it on centos91?

This is likely because the gnome-terminal executable itself doesn't create the 
terminal window, the gnome-terminal-server.service systemd user service does, 
which uses the local Wayland display. Try another Wayland terminal.


>  2. From centos91 running:  waypipe ssh owner@centos92 glxgears, get error: 
> Error: couldn’t open display (null). Watching both see the following  process 
> get created:

glxgears doesn't have anything to do with Waypipe. This is probably just 
missing the ssh -Y/-X option to enable SSH X forwarding.


-- 
Earthling Michel Dänzer|  https://redhat.com
Libre software enthusiast  | Mesa and Xwayland developer





Re: waypipe not working

2024-02-26 Thread Michel Dänzer
On 2024-02-26 16:36, Colin Rudakiewicz wrote:
> 
>  1. From centos91 running:  waypipe ssh owner@centos92 gnome-terminal, a 
> terminal is launched on centos92 but was expecting to see it on centos91?

This is likely because the gnome-terminal executable itself doesn't create the 
terminal window, the gnome-terminal-server.service systemd user service does, 
which uses the local Wayland display. Try another Wayland terminal.


>  2. From centos91 running:  waypipe ssh owner@centos92 glxgears, get error: 
> Error: couldn’t open display (null). Watching both see the following  process 
> get created:

glxgears doesn't have anything to do with Waypipe. This is probably just 
missing the ssh -Y/-X option to enable SSH X forwarding.


-- 
Earthling Michel Dänzer|  https://redhat.com
Libre software enthusiast  | Mesa and Xwayland developer



waypipe not working

2024-02-26 Thread Colin Rudakiewicz
Hallo,

 

Have two Centos 9 hosts centos91 (172.28.0.178) and centos92 (172.28.0.179);
VMWare cloned. Using owner account can ssh (using gnome-terminal) between
the two using private/public key (password-less/no ssh passphrase set).
Firwalled service is stopped and iptables flushed.

 

1.  From centos91 running:  waypipe ssh owner@centos92 gnome-terminal, a
terminal is launched on centos92 but was expecting to see it on centos91?
Watching both see the following  process get created:

 

centos91: ssh -R
/tmp/waypipe-server-TEm8CevF.sock:/tmp/waypipe-client-TEm8CevF.sock
owner@172.28.0.179   waypipe -c none
--unlink-socket -s /tmp/waypipe-server-TEm8CevF.sock --display
wayland-TEm8CevF server gnome-terminal

 

centos92: waypipe -c none --unlink-socket -s
/tmp/waypipe-server-TEm8CevF.sock --display wayland-TEm8CevF server
gnome-terminal

 

2.  From centos91 running:  waypipe ssh owner@centos92 glxgears, get
error: Error: couldn't open display (null). Watching both see the following
process get created:

 

centos91: ssh -R
/tmp/waypipe-server-PFD6jL7o.sock:/tmp/waypipe-client-PFD6jL7o.sock
owner@172.28.0.179   waypipe -c none
--unlink-socket -s /tmp/waypipe-server-PFD6jL7o.sock --display
wayland-PFD6jL7o server glxgears

 

centos92: bash -c waypipe -c none --unlink-socket -s
/tmp/waypipe-server-PFD6jL7o.sock --display wayland-PFD6jL7o server glxgears

 

Anyone seen this before?

 

Colin