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

Update info about running GUI #44

Open
GlenNicholls opened this issue Dec 21, 2022 · 0 comments
Open

Update info about running GUI #44

GlenNicholls opened this issue Dec 21, 2022 · 0 comments

Comments

@GlenNicholls
Copy link

I recently asked this in the Gitter:

I'm using the ghdl/ext:latest image and would like to run the gtkwave GUI. I am SSH'd to a server with the image via MobaXTerm and can run GUI apps directly on that server. However, when I pass DISPLAY to the container, gtkwave gives an error. Is there a way to get this to work? The x11docker script that is mentioned seems like it's specifically for MSYS2?

I ended up figuring this out. For reference, I was able to accomplish this by volume mounting my users home directory and passing the HOME and DISPLAY env vars to the container. Note, home is passed to the container for the ~/.Xauthority file.

For example, after I SSH to Linux server using MobaXTerm, I run something along the lines of this to open the GUI:

docker run --user=$(id -u):$(id -g) --interactive $TTY --rm \
  --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --network=host \
  -e HOME=$HOME \
  -e DISPLAY=$DISPLAY
  -v $HOME:$HOME \
  ... \
  <image> <command>

where command might be python3 run.py -g. It might be good to add this to the USE_CASES since it took me a lot of digging to get it working right. Probably not very secure, though.

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

1 participant