Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher: cannot connect to X server #2

Open
atk5025 opened this issue Mar 23, 2020 · 3 comments
Open

Launcher: cannot connect to X server #2

atk5025 opened this issue Mar 23, 2020 · 3 comments

Comments

@atk5025
Copy link

atk5025 commented Mar 23, 2020

I'm not sure there's something for this repo to fix or perhaps just update the documentation. I ran into an error trying to run the image per the commands in the readme file

Running Ubuntu 18.04.4 LTS

Command Input
docker run --net=host --rm -e DISPLAY -e QT_X11_NO_MITSHM=1 ballaerospace/cosmos

Command Result
No protocol specified
Launcher: cannot connect to X server :0

Fix
Fixed by entering this command on the command line and attempting again
xhost local:root

@DKlaren
Copy link

DKlaren commented May 14, 2020

I see the same issue after a reboot. I can fix it with a similar command to above or using startx then exiting.

@opensiriusfox
Copy link

xhost local:$(whoami) will also correct this issue.

@brsolomon-deloitte
Copy link

The xhost fix doesn't seem to do anything on RHEL 8. Same error:

cosmos-rhel-cannot-connect

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

No branches or pull requests

4 participants