Make all GUI stuff show up on the display connected to the computer (when you're logged in via SSH)

Make all GUI stuff show up on the display connected to the computer (when you're logged in via SSH): "$ DISPLAY=:0.0; export DISPLAY

If you have multiple displays or monitors the DISPLAY environment variable will tell X where to send the output. This is very handy for setting up a mediacenter at home. You can plugin the computer to the TV and then ssh to the computer and set the DISPLAY as above, then run your program and it will show up on the TV.



commandlinefu.com


by David Winterbottom (codeinthehole.com)

"