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?
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?
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'
This works for me once I'm ssh'd in:
export DISPLAY=:0; nohup iceweasel &>/dev/null &
Yes, this is possible. You will just need to forward X traffic through the SSH connection. For example, connect like this:
debian-computer:$ ssh -X username@ubuntu-computer
Then, just start the application from the SSH prompt. The GUI window will appear on your debian box (which you are logged into locally). All processing will be done by the remote computer (the ubuntu one).
Note that this will only work if you have an X window server running on your local computer. This will definitely be the case if you have a desktop linux/unix installation, and you can also install X servers on Mac OS and Windows, but they are not installed by default.
Thanks for your responses. In the mean time I've tried a couple other things and one of those things was to make a SSH connection to the Ubuntu computer and run a script on that machine.
On one of the first lines of that script I defined the EXPORT display. The player knows right now what display he should use..
Thanks again.