Conversation
|
|
||
| 4. (Linux Wayland only) Run the following command for X11 forwarding: | ||
| ``` | ||
| socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CONNECT:/tmp/.X11-unix/X0 |
There was a problem hiding this comment.
Isn't this identical for Mac? We can say mac or wayland here if so (not only linux wayland).
There was a problem hiding this comment.
Hi curtis,
For MacOS it's UNIX-CLIENT:\"$DISPLAY\" while for wayland it's UNIX-CONNECT:/tmp/.X11-unix/X0
There was a problem hiding this comment.
Btw have you tried this?
Ideally we wouldn't need socat for wayland, but after scouring countless forums, it was the only solution that worked.
There was a problem hiding this comment.
Oh ok. Could you make a note there for mac as welI basically saying just what you did here. I don't have a system with wayland to test. I feel like every year x11 gets a little harder to support.
There was a problem hiding this comment.
Okay. Just to confirm, it would mean combining point 3 and 4, right?
Also, yes. Ubuntu and fedora both now has wayland as the default.
I tried to put together instructions for anyone who is on a Wayland server (which is now the default on all new distros). The same approach as MacOS with
socatalso works on linux wayland systems. But I've only tested it on my system, so it would need to be verified.I believe there should be a better way on Linux without using
socat, but in the meantime, I wanted to leave it as a draft PR in case anyone needs a solution for this particular problem.I had to restructure the installation instructions as inline notes for 3 separate systems were getting a little hard to read.
Also, apparently on X11 systems you don't need to change the
docker-compose.ymlfile. I've modified the instructions for that as well, but again it needs to be tested on more systems before merging.