Skip to content

Instantly share code, notes, and snippets.

@rsanheim
Created February 20, 2012 21:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rsanheim/1871433 to your computer and use it in GitHub Desktop.
Save rsanheim/1871433 to your computer and use it in GitHub Desktop.
ec2_display.sh
#!/bin/bash
export DISPLAY=":$(ps -ef|grep '.*nxagent.*-[D].*' | cut -d':' -f5).0"
xhost +SI:localuser:pair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment