Skip to content

Conversation

@navii98
Copy link
Contributor

@navii98 navii98 commented Oct 16, 2024

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 socat also 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.yml file. I've modified the instructions for that as well, but again it needs to be tested on more systems before merging.

4. (Linux Wayland only) Run the following command for X11 forwarding:
```
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CONNECT:/tmp/.X11-unix/X0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this identical for Mac? We can say mac or wayland here if so (not only linux wayland).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi curtis,
For MacOS it's UNIX-CLIENT:\"$DISPLAY\" while for wayland it's UNIX-CONNECT:/tmp/.X11-unix/X0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants