21:51michael: Can wayland listen on port 6000 for X clients? I have an embedded client (a 1990's HP logic analyzer instrumnent) that uses a a connection to an X server to display its screen and take imput. Its working on the current Xorg but I'd like to switch to wayland.
22:03linkmauve: michael, you have Xwayland which should be enabled by default on most compositors, which provides X11 for legacy applications.
22:04linkmauve: It’s just a build of Xorg, but lives in the same repository.
23:06michael: I do not see anything listening on port 6000 as I do when Xorg is running. Is there something I need to do to enable this on Wayland?
23:24soreau: by default, X listens on a unix domain socket, not a network socket port
23:24soreau: you might be able to use ssh -X or something
23:25michael: no, this is a legacy appliance... I don't have the ability to change the client. It expects the Xserver to be listening for connections on 6000
23:28soreau: well like linkmauve said, it should basically work the same with Xwayland
23:29soreau: have you tried simply running the client in an Xwayland-enabled wayland compositor?
23:30michael: as I said, the client is burned into ROM on the instrument and cannopt be changed.
23:32soreau: this has some information that might be useful, it mentions port 6000 too https://goteleport.com/blog/x11-forwarding/
23:33michael: that would be the way I would do it IF I COULD CHANGE THE CLIENT!
23:34whot: michael: Xwayland -listen tcp and that should start it on the default port 6000
23:35whot: IOW you need to start Xwayland on your machine specifically so it does listen to TCP, the client doesn't need any changes
23:36soreau: with a wlroots compositor, you can use WLR_XWAYLAND env var to specify a path to a binary or script that starts Xwayland
23:37michael: OK, I'll try that. thanks. I need to find out how gdm starts wayland in order to pass the option. Another possibility is to connect port 6000 to wayland with "socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CONNECT:/tmp/.X11-unix/X0 &"
23:37soreau: so I imagine a script that calls something like `/usr/bin/Xwayland -listen tcp "$@"`
23:38soreau: but you can also just cd /usr/bin; mv Xwayland Xwayland.real and use /usr/bin/Xwayland as the thing that calls Xwayland.real
23:39michael: right!
23:39soreau: don't forget to chmod +x your scripts folks, and happy hacking!
23:53whot: michael: quick grep of the gdm sources suggest to add DisallowTCP=false to [security] in /etc/gdm/custom.conf
23:53whot:grumbles about negative boolean options
23:54michael: that used to work on Xorg (until recently) but has no effect on Xwayland