May 2017
Beginner
552 pages
28h 47m
English
To run an graphical application on a remote server, you need to set the $DISPLAY variable to force the application to connect to the X server on your local machine:
ssh user@host "export DISPLAY=:0 ; command1; command2"""
This will launch the graphical output on the remote machine.
If you want to show the graphical output on your local machine, use SSH's X11 forwarding option:
ssh -X user@host "command1; command2"
This will run the commands on the remote machine, but it will display graphics on your machine.