Run a GUI app on remote computer from SSH
I want to run a GUI application on my Ubuntu computer, but it should started by a shell script on my Debian server trought SSH.
Is this possible?
Solution 1:
Something like this should work:
#on your desktop
xhost + #not secure, make sure your X isn't listening on any tcp ports.
echo 'export DISPLAY=:0; x-command-you-want &' > ~/run-command
chmod +x ~/run-command
#on your server
ssh user@desktop '~/run-command'
Solution 2:
This works for me once I'm ssh'd in:
export DISPLAY=:0; nohup iceweasel &>/dev/null &