Closed tmozgach closed 6 years ago
For MAC:
Steps:
*Open new terminal in Xquartz
ssh -AY docker02.bcgsc.ca
*The following block we should put in the file that runs during the authorization: But now, I just type them in the command line:
SESSIONXAUTH=${XAUTHORITY:-$HOME/.Xauthority}
DOCKER_XAUTH=${SESSIONXAUTH}.docker
cp --preserve=all $SESSIONXAUTH $DOCKER_XAUTH
USER=$(id –un)
*Run the container:
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $DOCKER_XAUTH:$DOCKER_XAUTH:ro -e XAUTHORITY=$DOCKER_XAUTH -e DISPLAY=$DISPLAY -u $(id -u):$(id -g) -w /home/$USER -v $HOME:/home/$USER --net host --name igv36 igv
*try igv
igv
*Open new terminal in Xquartz
ssh -AY docker02.bcgsc.ca
SESSIONXAUTH=${XAUTHORITY:-$HOME/.Xauthority}
DOCKER_XAUTH=${SESSIONXAUTH}.docker
cp --preserve=all $SESSIONXAUTH $DOCKER_XAUTH
USER=$(id –un)
*Run that container again
docker exec -it -u $(id -u):$(id -g) igv36 /bin/bash -c "export DISPLAY=${DISPLAY} && /bin/bash”
*try igv second terminal
igv
*Close the first terminal
*try again igv in the second terminal
igv
@sjackman Could you please look at it and think about possible insecure situations if you are familiar with that topic?
Please enclose shell commands in triple back ticks. See https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code
Thanks for the instructions to reproduce the issue, Tanya.
For linux: In the terminal:
ssh -AY docker02.bcgsc.ca
Perform all above steps (For Mac).
For Windows:
Run Xming
Run Putty
:
Log in using your normal IU username and passphrase Perform all above steps (For Mac).
Works!
Example: igv Dockerfile:
How do I run graphical programs remotely from a Linux server for different OS: https://uisapp2.iu.edu/confluence-prd/pages/viewpage.action?pageId=280461906