LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Run application on *monitor* of remote machine via SSH? (https://www.linuxquestions.org/questions/linux-networking-3/run-application-on-%2Amonitor%2A-of-remote-machine-via-ssh-544047/)

DiBosco 04-07-2007 10:40 AM

Run application on *monitor* of remote machine via SSH?
 
I have machine set-up that is without keyboard and mouse, that is plugged in to my plasma TV via its VGA input.

I would like to SSH into the machine from my laptop and play a movie on the remote PC, but not the laptop. If I ssh in and use mplayer it plays the movie on my laptop of course!

Is there anyway to play the movie on this remote pc and show the film on the plasma rather than the laptop?

I do not want to run VNC on the machine driving the plasma, it's an old machine and the fewer apps running on it the better!

Many thanks.

jiml8 04-07-2007 03:08 PM

for instance:
mplayer -v -display :0 myvideo.avi

will work if you have one video card. If you have more than one card, then something like this might be needed:

mplayer -v -adapter 0 -display :0 myvideo.avi

This command will start it fullscreen on the default display:

mplayer -fs -v -display :0 myvideo.avi

DiBosco 04-08-2007 10:53 AM

Hi Jim,

Thanks for that, but that still opens mplayer on my laptop. I want it to be displayed on the monitor on the machine which I have connected to over SSH. I probably didn't explain that very well.

cseanburns 04-09-2007 01:27 AM

Maybe you could give us more information:

1. What ssh command are you giving; is it as simple as 'ssh user@computer' or are you using options we should know about.
2. What command did you use to start the movie?
3. Where is the movie located: the laptop or the remote machine?

DiBosco 04-09-2007 04:49 AM

Hmmm, that is very odd, I've just gone through it all step by step and done it here to confirm all the steps and now it works. I tried it over and over again with slightly different implementations and it resolutely refused to work. Now I did just as Jim said and it opens on the remote machine.

mplayer -v -display :0 filename.mpg

I definitely tried that yesterday and it wouldn't have it! This time it works on the remote screen. :confused:

Thanks very much for the help.

jiml8 04-09-2007 08:57 AM

I know I did it here before I told you it would work and it did exactly what was desired.


All times are GMT -5. The time now is 08:17 AM.